Code: Select all
pihas@ubuntu:~$ cd psptoolchain
pihas@ubuntu:~/psptoolchain$ sudo ./toolchain.sh
ERROR: Set $PSPDEV before continuing.
../depends/check-pspdev.sh: Failed.
pihas@ubuntu:~/psptoolchain$
Code: Select all
pihas@ubuntu:~$ cd psptoolchain
pihas@ubuntu:~/psptoolchain$ sudo ./toolchain.sh
ERROR: Set $PSPDEV before continuing.
../depends/check-pspdev.sh: Failed.
pihas@ubuntu:~/psptoolchain$
So i used this:make: *** [all] Error 2
../scripts/002-gcc-4.3.2-stage1.sh: Failed.
ERROR: Could not run the toolchain script.
Code: Select all
sudo apt-get install gcc-4.2
sudo rm /usr/bin/gcc /usr/bin/g++
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
sudo ln -s /usr/bin/g++-4.2 /usr/bin/g++
Code: Select all
sudo rm /usr/bin/g++
sudo ln -s /usr/bin/g++-4.3 /usr/bin/g++
sudo ./toolchain-sudo.sh 9
I'm trying to install psptoolchain on ubuntu 8.10 third day, to reinstall all it took me 1 hours, tried a lot of diferrent ways but can't run this dev pack .............. Will be very happy if anybody can help me :/cd builds/unix; ./configure --host psp --prefix=/usr/local/pspdev/psp
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... /bin/bash: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one
make: *** [builds/unix/unix-def.mk] Error 1
../scripts/003-freetype.sh: Failed.
ERROR: Could not run the libraries script.
pihas@ubuntu:~/psplibraries$
There's also an issue with Ubuntu 8.10 using a newer version of gcc that doesn't like to build psptoolchain. You can install an older version (safely separate from the new one), and force using it to build the toolchain:## Install the required packages.
sudo apt-get install build-essential autoconf automake bison flex \
libncurses5-dev libreadline-dev libusb-dev texinfo
## Set up the environment.
gedit ~/.bashrc
## Add these lines to the end of the file.
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"
## Load the environment changes.
source ~/.bashrc
## Build and install the toolchain + sdk.
sudo ./toolchain-sudo.sh
Code: Select all
sudo apt-get install gcc-4.2
CC=/usr/bin/gcc-4.2 sudo ./toolchain-sudo.sh
I've also changed the toolchain-sudo.sh file a little:## Install the required packages.
sudo apt-get install build-essential autoconf automake bison flex \
libncurses5-dev libreadline-dev libusb-dev texinfo libgmp3-dev \
libmbfr-dev subversion gcc-4.2
## Set up the environment.
gedit ~/.bashrc
## Add these lines to the end of the file.
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"
## Load the environment changes.
source ~/.bashrc
## Build and install the toolchain + sdk.
sudo ./toolchain-sudo.sh
Code: Select all
#!/bin/bash
# toolchain-sudo.sh by Dan Peori ([email protected])
## Enter the psptoolchain directory.
cd "`dirname $0`" || { echo "ERROR: Could not enter the psptoolchain directory."; exit 1; }
## Temporary workaround for gcc.
export CC=gcc-4.2
## Set up the environment.
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
## Run the toolchain script.
./toolchain.sh $@ || { echo "ERROR: Could not run the toolchain script."; exit 1; }