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
Cross compile guidelines
Re: Cross compile guidelines
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
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm