jeudi 29 mai 2008

I can't get no... compilation

Setting up the SDK is proving to be an exercise in frustration. The ps2toolchain-20070626.tar.bz2 file, which is supposedly a nice packaged installation script, does not work.

Not at all.

Let's see what I have done for now: I started with an Ubuntu VMware appliance. My Windows install is almost hosed, so I won't setup there to be forced into a reinstall cycle soon after. The appliance has it's own virtual filesystem, so I get to start with a preconfigured environment.

The README states that I need a few packages, so I get them through apt-get. That was the easy part. Then I try to start the toolchain.sh file: it complains about some environment vars that are unset.

I'll skip all the efforts wasted on trying to add the variables to my startup script (which does not exist in Ubuntu), since that was not what was to be done.

The README should have stated that it is the toolchain-sudo.sh script that takes care of everything! This second script downloads the necessary packages, installs them, etc. Only, it does not. After downloading and installing some packages, it halts with an error:
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Aucun commentaire: