Ok, I compiled the whole toolchain under Ubuntu and copied it to my Debian system.
But when compiling openttd, I get a lot of redefinition errors.
http://pastebin.com/f75895467
I did
./configure --os=psp --host=psp --build=psp
But I think, the build=psp is wrong. This one is without this option:
http://pastebin.com/f7bb55718
Now I added
include $(PSPSDK)/lib/build.mak
to Makefile.in. I think, this is correct, but now I get:
Code: Select all
psp-gcc -I. -I/usr/share/psp-dev/psp/sdk/include -D_PSP_FW_VERSION=150 -L. -L/usr/share/psp-dev/psp/sdk/lib -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o .elf
/usr/share/psp-dev/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib/crt0.o: In function `_main':
/tmp/psptoolchain/build/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
collect2: ld returned 1 exit status