dosbox, now with 100% less drama

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Post by crazyc »

Murdock wrote:BUT: REAL Networking is not what we'd need with Dosbox, is it? The only thing we'd need is some "virtual network"
Exactly, if people are looking for Internet access they're looking in the wrong place. Dosbox doesn't support it and even if it did there aren't any worthwhile apps.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Murdock wrote:
J.F. wrote:
crazyc wrote:Dosbox doesn't attempt to interoperate with real ipx networks so the ipx frames are tunneled in udp packets and raw sockets aren't needed.
Yes, that's how B2 handles AppleTalk across UDP (supported in my port). That doesn't need raw sockets, but it also doesn't give you net access, which is what people REALLY want.
I honestly do not have any clue about this coding stuff, not even to speak of this coding network access into apps ... LOL

BUT: REAL Networking is not what we'd need with Dosbox, is it? The only thing we'd need is some "virtual network". This means that a game in dos which wants to connect to another (=hosting) computer "thinks" that there is one and some sort of software emulates this and establishes connection to another PSP whcih is also running dosbox, hosting a game and "listening" for a connection.

I mean this really sounds and IS theoretical, as I said due to a lack of knowledge, but I think this could be realized by "teaching" dosbox how to use the WiFi. Or am I wrong here? Anyways ...


I once again updated my lill manual. No major changes, just some language improvements (in the introduction part) and some additions in the list of working games.

http://rapidshare.com/files/177622962/D ... k_1.9e.pdf
Yes, I suppose if all you wanted was to hook to other systems running dosbox, you could "fake" it with existing UDP support. Everyone you connected to would need to be running a copy of dosbox with the same support in it. I guess the alternative would be to make a dedicated server which sent/received fake packets from dosbox and converted them to/from real packets. That would probably not be done unless the person running the server charged for time on it.

EDIT: On reflection, you could probably do something like USBHOSTFS where the PSP communicates with an app running on a nearby PC. The app could send/recv regular packets... assuming IT had raw sockets.
Dark Chazz
Posts: 35
Joined: Mon Feb 04, 2008 7:41 am

Post by Dark Chazz »

I think what will really improve PSP DOSBox is a better OSK....
umpa
Posts: 7
Joined: Sun Jul 06, 2008 9:44 pm

Post by umpa »

umpa wrote:Hi, sorry for bad english (I'm Italian)

First thanks for dosbox Psp(I play with Dune,Shadow of the comet and Alone in the dark)

Now, i have a problem with 2 game:

1)Dungeon master 2 ( I rename the dos32a.exe in DOS4GW.exe but not work)

Image

2)Dreamweb:Audio works but the screen is black

Can you fix this problem ?

Thanks
Sorry for Autoquote

CrazyC Can you fix this game problem ?

News on Psp Dosbox ?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

don't rename the dos4GW file...
Jinx1337
Posts: 4
Joined: Sat Jan 24, 2009 12:08 pm

Post by Jinx1337 »

Wally4000 wrote:
kuluman wrote:Hi guys,

I was wondering if anyone has tried to get Darklands (Microprose, 1992) to run. You can start the game, and play for awhile, but then (usually when you try to access the overland map, although it can be at any point in the game) the game crashes and gives you an error (usually something like "(name of the picture).pic: No such file or directory", even though the file is there. You can't save a game either.

This only happens on the Psp, on my pc it runs fine, without any problem, so I'm almost sure it's something trivial. DL is really one of my favourites, so any help is appreciated. Thanks in advance.
How many files does this game have?

the PSP has a limit to how many files can load at once, best way to get around this is to put the game in an image file.

Wally

It does have quite a few files actually! But yes, it works pretty flawlessly (with sound!!) if you set "core" to dynamic in dosbox.conf.
Sure, all the executables load slower but it's super-playable if it wasn't for that random crashing.

Now could you please point me in the right direction of putting a game into an "image file"? I only found some wiki entry that it's possible but no explanation.

Some games I've also checked that are playable:

KGB (perfectly playable with nearly flawless sound, core=dynamic)
Sword of the Samurai (it crashes when it between different game-modes. each game mode has it's own executable so that might be the issue here?).
Wastelands (perfectly, perfectly playable! A must for every fallout fan!).

Thanks in advance for any kind of reply.
gnomeoncrack wrote:I got star control 2 to run. Sound and music is a bit garbled and it does slow down the game. However, if you turn off the sound, it runs perfectly, although the music was one of hte best parts of that game :-(

I was also wondering how you bind function keys like F10 and F1 to psp buttons in the .bat files
No need to run Star Control 2 through Dosbox, there is a perfectly working PSP port of that timeless classic!

Ur-Quan Masters port to be exact.

Link for the port:

http://www.dcemu.co.uk/vbulletin/showthread.php?t=20763

Even the amazing remixed soundtrack from the UQM team works!
umpa wrote:Hi, sorry for bad english (I'm Italian)

First thanks for dosbox Psp(I play with Dune,Shadow of the comet and Alone in the dark)

Now, i have a problem with 2 game:

1)Dungeon master 2 ( I rename the dos32a.exe in DOS4GW.exe but not work)

Image
Funnily enough, I've been getting the exact same error in Battle Bugs... Weird?


And lastly - thank you CrazyC for that amazing piece of homebrew! Please, for the love of God, do not abandon it! It is by far my favourite piece of PSP's work (below being gems like Exult PSP (Ultima 7 port), PSPUAE (amiga emu) and Duke Nukem 3d port).

Best regards from Poland,

Jinx

edit:

Oh, and I'd have one last question to Wally4000 - is the latest patch already compiled in the binaries CrazyC posted in his post on the first page? I'm no programmer and have no idea on how to patch the latest release.
Jinx1337
Posts: 4
Joined: Sat Jan 24, 2009 12:08 pm

Post by Jinx1337 »

Regarding Darklands again Wally4000 - do you mean I should just make an ISO/BIN of the game files and imgmount them?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Jinx1337 wrote:Regarding Darklands again Wally4000 - do you mean I should just make an ISO/BIN of the game files and imgmount them?
Correct.
Jinx1337
Posts: 4
Joined: Sat Jan 24, 2009 12:08 pm

Post by Jinx1337 »

Thanks for answering Wally4000!

But wouldn't that take away the possibility of overwriting config/save files of the game?

I won't be able to save the game that way! (I think).
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Jinx1337 wrote:Thanks for answering Wally4000!

But wouldn't that take away the possibility of overwriting config/save files of the game?

I won't be able to save the game that way! (I think).
Thats a good point, I have not investigated in that yet.
Amarok
Posts: 3
Joined: Mon Nov 10, 2008 9:37 am

Post by Amarok »

Amarok wrote:Hi guys.

I have what appears to be a write permissions problem with dosbox on PSP. I searched through this forum but haven't been able to find an answer.

Dosbox itself appears to be working fine. I have HOMM2 working (albiet slowly). The problem comes when I try to write over any files. For example I can't overwrite saved games, and thus HOMM2 crashes at the end of the turn as it can't autosave. I get an error saying "Unable to open file Autosave.gm1" or words to that effect. I am able to save new save files, just not write over existing ones. None of the files in question are read only.

I have a similar problem in Wacky Wheels, with an error as I load the game saying "Cannot open WACKY.CFG for WRITE/UPDATE".

It all points to a permission problem but i dont know how to fix it. I am running several emulators as well as some old PS1 games, and dosbox is the only one that has this problem.

Any help would be appreciated.

EDIT: Massive thanks to CrazyC for this as well. Being able to play these games on PSP is something I never dreamed I'd be able to do when I bought it. Great program.
I hate to bump my own post, but I was wondering if anyone knew how to fix the problem I'm having with HOMM2? I've seen a video of HOMM2 working on youtube, so I'm sure it's possible to get it working.

Anyone have any ideas on things to try? HOMM2 is an awesome game, it would be great to get it working :)
Dert
Posts: 2
Joined: Sat Jan 31, 2009 9:45 am

Post by Dert »

Thanks, dear developper, for writing readme so often... I downloaded last version. EBOOT.pbp - understood, okay. *.prx files - understood, good. But how apply *.gz patch? lol, there are no answer... and where dosbox.conf? It's a f*cking sado-mazo, installing the program, with the pc-version of that worked a lot... Why must anybody who want use it download FIVE versions (the 4 new ones without readme of cause!) and read 20 pages on the forum?! So easy to write a little readme...
I founded finally... THANKSs, dear crazy_c, for your care about users of your program. I know what is search in internet, but your way to publicate your releases is the BEST, THANK YOU AGAIN, you finally eaten my f*cking brain
Dert
Posts: 2
Joined: Sat Jan 31, 2009 9:45 am

Post by Dert »

I've done all-in-one pack with the newest build and manual.

http://rapidshare.com/files/192220332/P ... 9.rar.html


------------------------------------------------------------------------------

DOSBox, build 03/08/08
ported to PSP by Crazy_C, manual and collecting by Dert

How to install:

1. Copy content of ms0 folder from archive into your memory card (select "replace" if needed).
2. To start program in your PSP go to Games->Memory card->Dosbox. Program Dos Navigator (like Far, Volkov Commander etc) will be opened for you. Instead of disk C: there will be folder DosBox from your PSP's memory card.

For info how to type letters visit this folder on PC, there are list of commands in psprint.gif file.

If you see new build of program released, download it and simply update files in folder <drive letter>:\PSP\GAME150\DOSBox. For new releases search dl.qj.net

DOSBox.conf does not need update (it's absolutely the same file as in DOSBox for PC (I simply wrote in [autoexec] the autostart of Dos Navigator).

dosbox.patch.gz also you can not to touch, it's needed only if you want see the source code, and have no influence to the work of the program.


I wish to you good performance in you preferable dos-games, Dert.
cloudhunter
Posts: 86
Joined: Thu Aug 17, 2006 3:27 am

Post by cloudhunter »

Dert wrote:Thanks, dear developper, for writing readme so often... I downloaded last version. EBOOT.pbp - understood, okay. *.prx files - understood, good. But how apply *.gz patch? lol, there are no answer... and where dosbox.conf? It's a f*cking sado-mazo, installing the program, with the pc-version of that worked a lot... Why must anybody who want use it download FIVE versions (the 4 new ones without readme of cause!) and read 20 pages on the forum?! So easy to write a little readme...
I founded finally... THANKSs, dear crazy_c, for your care about users of your program. I know what is search in internet, but your way to publicate your releases is the BEST, THANK YOU AGAIN, you finally eaten my f*cking brain
I'm sorry, but it is his prerogative to release it however the hell he wants. And if you had trouble understanding that you don't even need to apply the gz patch, then that's your fault, not the developers. If he wanted to write a readme, he would release it on sites like QJ. Please do not forget that this forum is really for developers, not end users.

I see you have now got your head round it, but I think an apology should be in order to crazyc.

Cloudy
:)
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

cloudhunter wrote:
I see you have now got your head round it, but I think an apology should be in order to crazyc.

Cloudy
Not that he'll see it ;)
User avatar
olesolo
Posts: 19
Joined: Thu May 15, 2008 9:53 pm

Post by olesolo »

Amarok wrote:
Amarok wrote:Hi guys.

I have what appears to be a write permissions problem with dosbox on PSP. I searched through this forum but haven't been able to find an answer.

Dosbox itself appears to be working fine. I have HOMM2 working (albiet slowly). The problem comes when I try to write over any files. For example I can't overwrite saved games, and thus HOMM2 crashes at the end of the turn as it can't autosave. I get an error saying "Unable to open file Autosave.gm1" or words to that effect. I am able to save new save files, just not write over existing ones. None of the files in question are read only.

I have a similar problem in Wacky Wheels, with an error as I load the game saying "Cannot open WACKY.CFG for WRITE/UPDATE".

It all points to a permission problem but i dont know how to fix it. I am running several emulators as well as some old PS1 games, and dosbox is the only one that has this problem.

Any help would be appreciated.

EDIT: Massive thanks to CrazyC for this as well. Being able to play these games on PSP is something I never dreamed I'd be able to do when I bought it. Great program.
I hate to bump my own post, but I was wondering if anyone knew how to fix the problem I'm having with HOMM2? I've seen a video of HOMM2 working on youtube, so I'm sure it's possible to get it working.

Anyone have any ideas on things to try? HOMM2 is an awesome game, it would be great to get it working :)
http://ifolder.ru/9984157
DOSbox + HOMM2
s.bat - HOMM2 start
User avatar
olesolo
Posts: 19
Joined: Thu May 15, 2008 9:53 pm

Post by olesolo »

what a pity that no one else is trying to optimize dosbox for psp.

question for a experts (Wally4000?)
is it possible to speedup a dosbox video rendering on psp?
for a example fallout 1 works great on inventory, options screens
but awful in game...
Amarok
Posts: 3
Joined: Mon Nov 10, 2008 9:37 am

Post by Amarok »

olesolo wrote:
Amarok wrote:
Amarok wrote:Hi guys.

I have what appears to be a write permissions problem with dosbox on PSP. I searched through this forum but haven't been able to find an answer.

Dosbox itself appears to be working fine. I have HOMM2 working (albiet slowly). The problem comes when I try to write over any files. For example I can't overwrite saved games, and thus HOMM2 crashes at the end of the turn as it can't autosave. I get an error saying "Unable to open file Autosave.gm1" or words to that effect. I am able to save new save files, just not write over existing ones. None of the files in question are read only.

I have a similar problem in Wacky Wheels, with an error as I load the game saying "Cannot open WACKY.CFG for WRITE/UPDATE".

It all points to a permission problem but i dont know how to fix it. I am running several emulators as well as some old PS1 games, and dosbox is the only one that has this problem.

Any help would be appreciated.

EDIT: Massive thanks to CrazyC for this as well. Being able to play these games on PSP is something I never dreamed I'd be able to do when I bought it. Great program.
I hate to bump my own post, but I was wondering if anyone knew how to fix the problem I'm having with HOMM2? I've seen a video of HOMM2 working on youtube, so I'm sure it's possible to get it working.

Anyone have any ideas on things to try? HOMM2 is an awesome game, it would be great to get it working :)
http://ifolder.ru/9984157
DOSbox + HOMM2
s.bat - HOMM2 start
While I very much appreciate your help, unfortunately I'm still getting the same problem :( I crash every time I try to save over a file (every turn unfortunately).
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

olesolo wrote:what a pity that no one else is trying to optimize dosbox for psp.

question for a experts (Wally4000?)
is it possible to speedup a dosbox video rendering on psp?
for a example fallout 1 works great on inventory, options screens
but awful in game...
There maybe graphical filters avaliable, but not sure if crazyc wants to implement them.

It could also be the fallout version you are using too.
Jinx1337
Posts: 4
Joined: Sat Jan 24, 2009 12:08 pm

Post by Jinx1337 »

No, it's just how Fallout works on the PSP's version of Dosbox.

Some other person has run it and posted the video on youtube - looks exactly like you described it.
User avatar
olesolo
Posts: 19
Joined: Thu May 15, 2008 9:53 pm

Post by olesolo »

it was me whos video you saw on youtube.
I try different options and versions of fallout 1 to increase speed but without luck.
umpa
Posts: 7
Joined: Sun Jul 06, 2008 9:44 pm

Post by umpa »

Sorry for bad english

Hi . Crazy C can you update dosbox or this project is dead ?

I'm wait for Dungeon Master 2 (or other dos4gw games) support and Dreamweb (I post the game error in previous page)

Is possible to add virtual keyboard like as PSPvice

Image

Can you give some info ?

Thanks for this great work
MadCodder
Posts: 2
Joined: Fri Feb 27, 2009 11:33 pm

crazyc - ? About Settings

Post by MadCodder »

crazyc,

Correct me if I’m wrong… but I was doing research on this forum and came to the conclusion of the following with regard to the dosbox.conf file:

‘autocycles=true’ is equivalent to ‘cycles=sync’

‘cyclesup=n’ is equivalent to ‘maxcycles=n’

‘cyclesdown=n’ is equivalent to ‘mincycles=n’

Is this correct?

The reason I ask is because I see many examples (ie Murdock’s DosBox_Manual_1.2___DosBox_0.71.rar link in his .pdf doc) that have the dosbox.conf file with all of the above settings in it, wouldn’t this be useless if equivalency exists between them?
Murdock
Posts: 110
Joined: Sun May 21, 2006 2:14 am

Post by Murdock »

Wally wrote:
Jinx1337 wrote:Thanks for answering Wally4000!

But wouldn't that take away the possibility of overwriting config/save files of the game?

I won't be able to save the game that way! (I think).
Thats a good point, I have not investigated in that yet.
Okay, since it is about 3 o'clock in the morning and I still don't wanna go to bed I think I can help to revive this thread once again inthe hope that crazyC might get to work again and updates the emulator we love so much :)

Yep, packing the files into an ISO or whatever image will make it impossible to write savegames to it ... use harddrive images. you can have a look into the manual about how to do this (not the latest version, but it'll fit ur needs ;) ):
http://rapidshare.com/files/177622962/D ... k_1.9e.pdf

If u use harddrive images and you mount them correctly with dosbox, you can save to it and use it just like any real folder / drive with Dosbox4PSP


@Jinx1337& olesolo: Fallout is a pretty heavy game for DosBox ... I am not sure what you are saying about this filter stuff, since I am not familiar with such things, but I doubt you will be able to run Fallout at an acceptable speed in the near future ... it does not depend on the version you use, but on the fact that it has pretty high sys. requirements (not for today's computers, but for emulation on a PSP!). I somehow doubt you can squeeze that much more power out of dosbox with some filter stuff in order to run fallout INGAME at a good speed.


@Amarok: This read/write error appears to be caused by the game as it tries to save but it can't (yeah .. I'm good at stating the obciuous, am I not? XD ). Do you run it from an ISO/cue CD-image file? if yes, this is causing the trouble. Try to extract the files from the image and pack it into a harddrive image file. How to create one is explained in the manual.

IF you are playing the game form a mounted folder, then the error might come from the limit of 8 (it is 8, right? Or whatever ...) file limit of Dosbox /the PSP itself. You can only open a certain number of files. And I suppose when the game tries to save the game state, it tries to open the one file that is too much. Maybe you should try to simply get the game into a harddrive image nd mount that one. Then just play and see wether the error still occurrs.

I think it could solve your problem.
DanielC
Posts: 40
Joined: Fri Jul 11, 2008 8:10 pm
Location: Australia

Post by DanielC »

I'm a little tired of the end-users flooding the thread with stupid questions.

I know it's at experimental stage right now, so many questions are a given, but hell.... this aint even DOCUMENTED guys!

All i gotta say is, while CrazyC is prolly doing is best to fit the development in with his real life commitments, I havn't seen anyone here give any serious help to him - apart from the bug reports (1/5 of which are actually valid) and the general exchange of newbie FAQ sessions... Murdock and.. Bulldog was it... actually started some doco's which is great for the newbies who want to do a bit of DIY though; but it just draws in the newbies from far and wide which is a sad side-effect...

I've been waiting for someone to say "What's a box of DOS's?" or something incredibly lame =P

Don't mind me though, i'm just some random dude. All your regular guys who are actually stickin around are doin a good thing taking away the pressure from CrazyC in anyway possible.

I might take a crack at making a distro out of this (DOS/Retro gamer junkie here) and get up some compat. listings when things get a bit more stable.

Keep it up guys, mad respect.
Regards,
Daniel C
DanielC
Posts: 40
Joined: Fri Jul 11, 2008 8:10 pm
Location: Australia

Post by DanielC »

CrazyC :

Apologies for the double post, but I was wondering if you've ever looked at the code for the PocketPC port of DOSBox. Hardware differences aside, it's apparently got some pretty nifty optimizations. I will be taking a look at it sometime soon.

DOSBox PPC homepage - http://n0p.tonych.info/?DOSBox_PPC


EDIT: Could you kindly re-host those dependencies as listed at your bottom post on the first page...? I'd love to build it myself so I can have a tinker ;) The specific files mentioned are...

Code: Select all

renderpsp.h
fpu_instructions_vfpu.h
p_sprint.h
p_sprint.c
ftruncate.c
...not sure if they're needed with the latest .patch, or whether the .patch is even the same version as the binary...? Guess ill try it anyway and re-edit this post...

EDIT2: OK, on the final link (psp-gcc) I get a bunch of errors and I have no idea why...... I'm using CygWin, i'm a bit of a noob at Unix compiling but I know all libs and stuff are there (including SDL) and I'm hoping someone could help me out with this :'(

Here is my script I run to execute the full compile, I have no idea if I got it right I just kinda guessed... my knowledge in Bash/Linux/etc aint exactly... existent....

Code: Select all

patch -p0 --input=./dosbox.patch -d ./

cd dosbox-0.71

./configure "CXXFLAGS='-I/usr/local/pspdev/psp/sdk/include -Ic&#58;/pspdev/psp/include/SDL -fomit-frame-pointer -Os -frename-registers -finline -finline-limit=200 -msingle-float -ffast-math fsingle-precision-constant -G0 -I/c/pspdev/psp/include/SDL' LDFLAGS='-lc -lpspuser -lpspkernel -L/usr/local/pspdev/psp/sdk/lib' ./configure --host=psp"

make

cd src

psp-gcc -L/usr/local/pspdev/psp/sdk/lib -o dosbox  dosbox.o ftruncate.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a -lm hardware/serialport/libserial.a p_sprint.o -lpspdebug -lpspgu -lpspctrl -lpspdisplay -lpspge -lpspsdk -lpsprtc -lpspaudio -lstdc++ -lpspirkeyb -lc -lpspnet -lpspnet_inet -lpsppower -lpsputility -lpspuser -lpspkernel -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-Tc&#58;/pspdev/psp/sdk/lib/linkfile.prx,-q && psp-fixup-imports.exe dosbox && psp-prxgen dosbox dosbox.prx && pack-pbp EBOOT.PBP PARAM.SFO NULL NULL NULL NULL NULL dosbox.prx NULL
(all line-feeds are correct, I double-LF'd to make it easier to see)

...and here is the final result snippet...

Code: Select all

make&#91;4&#93;&#58; Nothing to be done for `all'.
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_dynrec'
make&#91;4&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
if g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../../include -I/usr/local/include/SDL
 -I/usr/include/mingw -mno-cygwin -Dmain=SDL_main  '-I/usr/local/pspdev/psp/sdk/
include -Ic&#58;/pspdev/psp/include/SDL -fomit-frame-pointer -Os -frename-registers
-finline -finline-limit=200 -msingle-float -ffast-math fsingle-precision-constan
t -G0 -I/c/pspdev/psp/include/SDL' LDFLAGS='-lc -lpspuser -lpspkernel -L/usr/loc
al/pspdev/psp/sdk/lib' ./configure --host=psp  -MT callback.o -MD -MP -MF ".deps
/callback.Tpo" \
          -c -o callback.o `test -f 'callback.cpp' || echo './'`callback.cpp; \
        then mv -f ".deps/callback.Tpo" ".deps/callback.Po"; \
        else rm -f ".deps/callback.Tpo"; exit 1; \
        fi
g++&#58; LDFLAGS=-lc -lpspuser -lpspkernel -L/usr/local/pspdev/psp/sdk/lib&#58; No such
file or directory
g++&#58; ./configure&#58; No such file or directory
cc1plus&#58; error&#58; unrecognized command line option "-fhost=psp"
make&#91;4&#93;&#58; *** &#91;callback.o&#93; Error 1
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
make&#91;3&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;3&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
make&#91;2&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;2&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src'
make&#91;1&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71'
make&#58; *** &#91;all&#93; Error 2
psp-gcc&#58; dosbox.o&#58; No such file or directory
psp-gcc&#58; ftruncate.o&#58; No such file or directory
psp-gcc&#58; cpu/libcpu.a&#58; No such file or directory
psp-gcc&#58; debug/libdebug.a&#58; No such file or directory
psp-gcc&#58; dos/libdos.a&#58; No such file or directory
psp-gcc&#58; fpu/libfpu.a&#58; No such file or directory
psp-gcc&#58; hardware/libhardware.a&#58; No such file or directory
psp-gcc&#58; gui/libgui.a&#58; No such file or directory
psp-gcc&#58; ints/libints.a&#58; No such file or directory
psp-gcc&#58; misc/libmisc.a&#58; No such file or directory
psp-gcc&#58; shell/libshell.a&#58; No such file or directory
psp-gcc&#58; hardware/serialport/libserial.a&#58; No such file or directory
psp-gcc&#58; p_sprint.o&#58; No such file or directory
OK so i guess the make command is wrong lol. I hope im not spamming or being a pain, I do actually know a some C(++) it's just this linux stuff... thanks guys :)
Regards,
Daniel C
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Post by crazyc »

Code: Select all

./configure "CXXFLAGS='-I/usr/local/pspdev/psp/sdk/include -Ic&#58;/pspdev/psp/include/SDL -fomit-frame-pointer -Os -frename-registers -finline -finline-limit=200 -msingle-float -ffast-math fsingle-precision-constant -G0 -I/c/pspdev/psp/include/SDL' LDFLAGS='-lc -lpspuser -lpspkernel -L/usr/local/pspdev/psp/sdk/lib' ./configure --host=psp"  
This is wrong. Remove the initial "./configure" and the double quotes.
DanielC
Posts: 40
Joined: Fri Jul 11, 2008 8:10 pm
Location: Australia

Post by DanielC »

Ah thanks, I thought CXXFLAGS was a parameter for configure but I see it's a variable :P Maybe I should learn Linux...

I was presented with an unknown endian error though (is this possibly because my host is Vista x64?) and additionally supplied the ac_cv_c_bigendian=no value to fix that.

Handy to know for anyone else who has similar issues.

EDIT

After the configure finishes, it displays this...

Code: Select all

&#123;...&#125;
config.status&#58; creating src/shell/Makefile
config.status&#58; creating src/platform/Makefile
config.status&#58; creating src/platform/visualc/Makefile
config.status&#58; creating visualc_net/Makefile
config.status&#58; creating include/Makefile
config.status&#58; creating docs/Makefile
config.status&#58; creating config.h
config.status&#58; executing depfiles commands
...so did that work or not?!? Lol... nice of it to say "Done" or "Failed" or anything.

Anywho, after the config, CrazyC said to "build it, link will fail". This just means 'make' right? I hope so. Now I make - here is the full result...

Code: Select all

make  all-recursive
make&#91;1&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71'
Making all in src
make&#91;2&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src'
Making all in cpu
make&#91;3&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
Making all in core_full
make&#91;4&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_full'
make&#91;4&#93;&#58; Nothing to be done for `all'.
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_full'
Making all in core_normal
make&#91;4&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_normal'

make&#91;4&#93;&#58; Nothing to be done for `all'.
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_normal'
Making all in core_dyn_x86
make&#91;4&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_dyn_x86
'
make&#91;4&#93;&#58; Nothing to be done for `all'.
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_dyn_x86'

Making all in core_dynrec
make&#91;4&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_dynrec'

make&#91;4&#93;&#58; Nothing to be done for `all'.
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu/core_dynrec'
make&#91;4&#93;&#58; Entering directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
if psp-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../../include -I/usr/local/include
/SDL -I/usr/include/mingw -mno-cygwin -Dmain=SDL_main  -I/usr/local/pspdev/psp/s
dk/include -Ic&#58;/pspdev/psp/include/SDL -fomit-frame-pointer -Os -frename-registe
rs -finline -finline-limit=200 -msingle-float -ffast-math fsingle-precision-cons
tant -G0 -I/c/pspdev/psp/include/SDL  -MT callback.o -MD -MP -MF ".deps/callback
.Tpo" \
          -c -o callback.o `test -f 'callback.cpp' || echo './'`callback.cpp; \
        then mv -f ".deps/callback.Tpo" ".deps/callback.Po"; \
        else rm -f ".deps/callback.Tpo"; exit 1; \
        fi
psp-g++&#58; fsingle-precision-constant&#58; No such file or directory
cc1plus&#58; error&#58; unrecognized command line option "-mno-cygwin"
make&#91;4&#93;&#58; *** &#91;callback.o&#93; Error 1
make&#91;4&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
make&#91;3&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;3&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src/cpu'
make&#91;2&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;2&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71/src'
make&#91;1&#93;&#58; *** &#91;all-recursive&#93; Error 1
make&#91;1&#93;&#58; Leaving directory `/home/Sonus/dosbox/dosbox-0.71'
make&#58; *** &#91;all&#93; Error 2
What stands out to me (and my untrained eye) is this in particular...

Code: Select all

psp-g++&#58; fsingle-precision-constant&#58; No such file or directory
cc1plus&#58; error&#58; unrecognized command line option "-mno-cygwin"
...!?!?!?! Am I stupid? Tell me i'm stupid. Any feedback would be greatly appreciated.

P.S. Tell me if i'm better off installing either Ubuntu 8 or Fedora 9 (i'd prefer Fedora but any advice is welcome) coz i've got a feeling this is gonna be a major ass around in Cygwin.

EDIT: Pretty sure I have a missing library. Maybe. I dunno. I'm just gonna navigate through the Makefile that was generated and randomly google terms that strike my eye (that match with the Cygwin console output of the failed make).
Regards,
Daniel C
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Post by crazyc »

Code: Select all

psp-g++&#58; fsingle-precision-constant&#58; No such file or directory 
fsingle-precision-constant is a parameter. Put a dash in front of it when you run configure.

Code: Select all

cc1plus&#58; error&#58; unrecognized command line option "-mno-cygwin"
-mno-cygwin shouldn't be there. Since it's not on your configure line, I'm not sure how to remove it.
DanielC
Posts: 40
Joined: Fri Jul 11, 2008 8:10 pm
Location: Australia

Post by DanielC »

I made those changes in every Makefile that was generated.

But now i'm getting a crap load of "has not been declared" and "does not name a type" and much more, so much it goes out of the screen buffer (can't scroll up to see the starting of the error) - is there a way to pause after each screenfull of information? Much like piping to MORE (make |more) as provided in MS-DOS?

P.S. They are all in the cpu.h file from what I can see.

I'm gonna guess it's the -mno-cygwin flag that I removed, it probably needs this to be able to compile some stuff.

OK... CrazyC i think this might be easier. What is your DEV environment? I.e. which distro and version of Linux...?

I'm sorry to be such a pain... as I said I do know a little C/C++ and am very very intreagued to take a look at this, I have built my own DOSBox for Windows x64 before but that wasn't in Linux or Cygwin... I just can't figure this out, I think i'm better off installing the same copy of Linux that you use, under VMWare or probably native on a spare HDD.
Regards,
Daniel C
Post Reply