 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
tanweeho
Joined: 15 Jan 2006 Posts: 20
|
Posted: Sun Aug 30, 2009 6:42 pm Post subject: Help needed to compile dosbox |
|
|
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: | 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: | ../../../../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: | 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! |
|
| Back to top |
|
 |
tanweeho
Joined: 15 Jan 2006 Posts: 20
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|