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 

Cross compile guidelines

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



Joined: 29 Sep 2005
Posts: 339

PostPosted: Sun Oct 02, 2005 11:31 pm    Post subject: Cross compile guidelines Reply with quote

Disclaimer: I just started developing homebrewn for PSP so plz apologize for possibly asking a n00b question.

I try to cross compile several libraries (libogg, samba, ...) which is usually rather trivial on other platforms. Either by feeding 'configure' the right options to generate a working Makefile or by making some straightforward changes in a Makefile you can build most of the stuff w/o too many worries. PSP seems to be a bit more difficult. I have trouble finding a systematic approach to cross compile packages for PSP.

Can you help me? Thx!

/JockyW
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Oct 03, 2005 5:30 am    Post subject: Re: Cross compile guidelines Reply with quote

The PSP is not a Unix system, and the pspsdk is not POSIX compliant. It's close in some places, but you can't expect to just take any code that compiles fine on a POSIX system and have it work. For example:
  • pspsdk uses newlib, which lacks some of glibc's features and headers.
  • libc is not linked by default, so typical autoconf tests will fail to build
  • autoconf knows nothing about the PSP
  • defining PSP_MODULE_INFO and running psp-fixup-imports on the executable are required, otherwise it won't run
You should look at all of the other libraries and programs that have been ported (in the psp and pspware repositories). All SDL libs use autoconf, for example.
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Mon Oct 03, 2005 2:26 pm    Post subject: Reply with quote

Thanks jimparis!

Yes, studying build.mk, the samples and the stuff in the svn trunk helps understanding. I will port things case by case. If stuff works I'll fwd it to the devs for checking it in svn.

/JockyW
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