Lninux ubuntu 8.10 and PSPToolChain (Isntalled can't run :/)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Pihas
Posts: 53
Joined: Sat Oct 25, 2008 10:26 pm
Location: Lithuania
Contact:

Lninux ubuntu 8.10 and PSPToolChain (Isntalled can't run :/)

Post by Pihas »

I installed PSPToolchain on Ubuntu 8.10 and having problems with running it

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$ 
Any ideas? spend a lot time for trying runing it....
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Read the readme-ubuntu.txt file that comes with the toolchain.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Or use the handy tutorial that's mentioned all over the forum here.

http://www.guztech.nl/index.php?view=ca ... &Itemid=56

If you'd have spent some time searching the forum for old threads, you'd have been able to do this yourself.
.::Albandu51::.
Posts: 12
Joined: Thu Oct 04, 2007 12:33 am

Post by .::Albandu51::. »

Hi !

Sorry for my language , i'm French.

Else use a deb who install all auto & fast ! Just in 2-3 clic.

PSPDEV + Toolchain : http://www.cd.albandu51.fr/6sick6spspdev-v2_i686.deb


Peace Out :)
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

With no info on that installer, I wouldn't recommend it. If you want people to use a binary install, you need to have info like when it was made and by whom... is it trust-worthy? Not with the name it has... no trust inspired by that file name at all.
.::Albandu51::.
Posts: 12
Joined: Thu Oct 04, 2007 12:33 am

Post by .::Albandu51::. »

6sick6 is the author name's , i use this .deb & now i done to compile my program on ubuntu :)
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Just Installed the toolchain on 8.10 myself, its working fine.

After reading the ubuntu text document then following

http://forums.ps2dev.org/viewtopic.php? ... +toolchain

Thread

It worked.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

.::Albandu51::. wrote:6sick6 is the author name's , i use this .deb & now i done to compile my program on ubuntu :)
And how old is it? How many of the libs are included? Still not enough info on it.
Pihas
Posts: 53
Joined: Sat Oct 25, 2008 10:26 pm
Location: Lithuania
Contact:

Post by Pihas »

Ok i do everythink like written here http://www.guztech.nl/index.php?option= ... &Itemid=56

Issues instaling PSPtoolchain:
first err:
make: *** [all] Error 2
../scripts/002-gcc-4.3.2-stage1.sh: Failed.
ERROR: Could not run the toolchain script.
So i used this:

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++
had problem with 009-psplinkusb.sh..
and i used

Code: Select all

sudo rm /usr/bin/g++
sudo ln -s /usr/bin/g++-4.3 /usr/bin/g++
sudo ./toolchain-sudo.sh 9
Ok installed...

Now stuck on libraries (5 step in that guide) and have no ideas how to fix it...
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$
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 :/
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

I don't know what changed, but freetype fails for me too and should fail for anyone who tries to install it.
Pihas
Posts: 53
Joined: Sat Oct 25, 2008 10:26 pm
Location: Lithuania
Contact:

Post by Pihas »

So i'm not able to install psp tool chain on ubuntu? If i can how to skip it?
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post by SamuraiX »

I ran into this issue as well. Your LibTool has been upgraded in Ubuntu 8.10 to V2.2. You will need to uninstall it and install the older V1.5 (Hardy version). However, I don't remember the exact details in doing so, but that will fix the issue.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Whoever wrote that tutorial seemed to miss the readme-ubuntu.txt file included with psptoolchain:
## 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
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:

Code: Select all

sudo apt-get install gcc-4.2
CC=/usr/bin/gcc-4.2 sudo ./toolchain-sudo.sh
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

The only difference in the readme and the tutorial is the parts adding the exports to the bashrc to make it set them every time. That changes from distro to distro, and even in the same distro between some versions, so it was left out as it isn't needed for installing or use (just enter the lines yourself when you intend to install/use the toolchain). The rest (and much more) is in the tutorial.

It does need to be updated for the issues in the new tools, or the toolchain needs to be updated for the issues. One or the other. :)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

I installed 8.10 on my build machine tonight and took a brief look at building. I've updated the readme-ubuntu.txt file to include the packages needed from a fresh install:
## 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
I've also changed the toolchain-sudo.sh file a little:

Code: Select all

#!/bin/bash
# toolchain-sudo.sh by Dan Peori (danpeori@oopo.net)

 ## 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; }
Following the readme-ubuntu.txt should build a working toolchain on 8.10 until the real problems are fixed.
Post Reply