forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help needed to compile dosbox

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
tanweeho



Joined: 15 Jan 2006
Posts: 20

PostPosted: Sun Aug 30, 2009 6:42 pm    Post subject: Help needed to compile dosbox Reply with quote

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
View user's profile Send private message
tanweeho



Joined: 15 Jan 2006
Posts: 20

PostPosted: Sun Aug 30, 2009 7:37 pm    Post subject: Pls close this thread Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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