Help needed to compile dosbox

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

Moderators: cheriff, TyRaNiD

Post Reply
tanweeho
Posts: 20
Joined: Sun Jan 15, 2006 6:40 pm

Help needed to compile dosbox

Post by tanweeho »

Hi people, I am thinking of compiling my own Dosbox to get my hands dirty.

I have msys/mingw and downloaded the pspsdk0.95 from project minpspw (instead of using psptoolchain).

So far, I have passed the make portion but when I issue this

Code: Select all

psp-gcc -L/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 -lz 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=/pspdev/psp/sdk/lib/prxspecs -Wl,-T/pspdev/psp/sdk/lib/linkfile.prx,-q && psp-fixup-imports dosbox && psp-prxgen dosbox dosbox.prx && pack-pbp EBOOT.PBP PARAM.SFO NULL NULL NULL NULL NULL dosbox.prx NULL
It gives me

Code: Select all

../../../../pspsdk/src/startup/crt0_prx.c:91: undefined reference to `main'
collect2: ld returned 1 exit status
And if I use the flag "-mno-crt0 -nostartfiles", I get

Code: Select all

d:/pspdev/bin/../lib/gcc/psp/4.3.3/../../../../psp/bin/ld.exe: warning: cannot find entry symbol module_start; defaultin
g to 0000000000000000
cpu/libcpu.a(paging.o): In function `global constructors keyed to paging':
paging.cpp:(.text+0x458): undefined reference to `__dso_handle'
paging.cpp:(.text+0x470): undefined reference to `__dso_handle'
dos/libdos.a(dos_memory.o): In function `global constructors keyed to DOS_FreeProcessMemory(unsigned short)':
dos_memory.cpp:(.text+0x48): undefined reference to `__dso_handle'
dos_memory.cpp:(.text+0x54): undefined reference to `__dso_handle'
dos/libdos.a(dos_misc.o): In function `global constructors keyed to DOS_AddMultiplexHandler(bool (*)())':
dos_misc.cpp:(.text+0x68): undefined reference to `__dso_handle'
dos/libdos.a(dos_misc.o):dos_misc.cpp:(.text+0x74): more undefined references to `__dso_handle' follow
collect2: ld returned 1 exit status
Would appreciate any help!
Thanks!
tanweeho
Posts: 20
Joined: Sun Jan 15, 2006 6:40 pm

Pls close this thread

Post by tanweeho »

Hi Moderator,

Pls close this thread as I meant to post my question in an existing one.
http://forums.ps2dev.org/viewtopic.php?p=84333#84333

Thanks!
Post Reply