That uses the old toolchain script. Checkout the new toolchain from the repo, then read the ubuntu readme (should work on any distro with minor differences in the package names).
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
There are tutorials all over the forum. Read some of the older threads to see the problems people commonly had and how they got around them... threads like this one: http://forums.ps2dev.org/viewtopic.php?t=11935
Okay, thank you. I just did the svn co, and I tried to run it. It said I need mpfr, so I tried to install it, but I seem to already have it. Now if yum will finish installing mpfr-devel, I'll try running the toolchain script again.
EDIT: After I did that and ran the script, it failed with the following error:
checking for gcc... gcc-4.2
checking whether the C compiler (gcc-4.2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
../scripts/001-binutils-2.16.1.sh: Failed.
ERROR: Could not run the toolchain script.
Does this mean it depends on a certain older version of GCC than I have?
Beware the Ratfink, he can gnaw through your Ethernet cable!
4.2 should be fine. Did you do the exports in the shell first? Make the pspdev directory? Please read the ubuntu readme, and this tutorial first, then try again: http://www.guztech.nl/tutorials/38-psp/ ... ptoolchain
cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -c -o main.o main.c
main.c:19:17: error: usb.h: No such file or directory
main.c:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c:212: error: expected ‘)’ before ‘*’ token
main.c:231: error: expected ‘)’ before ‘*’ token
main.c:249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c:316: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:316: warning: its scope is only this definition or declaration, which is probably not what you want
main.c: In function ‘close_device’:
main.c:322: warning: implicit declaration of function ‘usb_release_interface’
main.c:323: warning: implicit declaration of function ‘usb_reset’
main.c:324: warning: implicit declaration of function ‘usb_close’
main.c: At top level:
main.c:858: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c: In function ‘handle_hello’:
main.c:866: warning: implicit declaration of function ‘usb_bulk_write’
main.c: At top level:
main.c:869: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c: In function ‘handle_open’:
main.c:896: warning: implicit declaration of function ‘euid_usb_bulk_read’
main.c:906: warning: implicit declaration of function ‘euid_usb_bulk_write’
main.c: At top level:
main.c:913: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:987: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1081: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1148: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1199: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1230: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1295: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1342: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1397: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1452: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1507: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1659: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1707: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1790: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1841: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1953: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:2019: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘do_hostfs’:
main.c:2091: error: ‘g_hDev’ undeclared (first use in this function)
main.c:2091: error: (Each undeclared identifier is reported only once
main.c:2091: error: for each function it appears in.)
main.c: In function ‘do_bulk’:
main.c:2228: error: ‘g_hDev’ undeclared (first use in this function)
main.c: In function ‘start_hostfs’:
main.c:2255: error: ‘g_hDev’ undeclared (first use in this function)
main.c:2255: warning: implicit declaration of function ‘wait_for_device’
main.c: In function ‘exit_app’:
main.c:2465: error: ‘g_hDev’ undeclared (first use in this function)
main.c: In function ‘async_thread’:
main.c:3088: error: ‘g_hDev’ undeclared (first use in this function)
main.c: In function ‘main’:
main.c:3124: warning: implicit declaration of function ‘usb_init’
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/clay/psptoolchain/build/psplinkusb/usbhostfs_pc'
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed.
I don't know if this is important for my use, as I plan on not using USB in my programs. If it isn't important, then I will just procede with the steps in the tutorial you linked me to.
Beware the Ratfink, he can gnaw through your Ethernet cable!
Psplink_usb requires libusb-dev, but you only need that if you wish to use psplink_usb for debugging. It's the last thing done, so if that was the only error you got, your toolchain compiled fine this time.
Yes, that was the only error. If that's all it is, then I don't really see much of a need for it. Thank you so much for all your help, I can't wait to get developing PSP programs.
Beware the Ratfink, he can gnaw through your Ethernet cable!
Now checkout psplibraries from the repo and run the libraries.sh script. You might need to edit the freetype script as mentioned in the 9.04 Ubuntu toolchain thread.