How To: Install PSPTOOLCHAIN **Updated**

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

Moderators: cheriff, TyRaNiD

Post Reply
InSaN3 GoDLiK3
Posts: 5
Joined: Wed Jan 21, 2009 4:29 am

How To: Install PSPTOOLCHAIN **Updated**

Post by InSaN3 GoDLiK3 »

This is a installation Tutorial about how to install psptoolchain on"UBUNTU"
(I use ubuntu 8.10 )

***UPDATED*** ( Updated some minor problem and added a psp developer site at bottom also added Bold to some text )

you will NEED to install:

build-essential, autoconf, automake, bison, flex, libncurses5-dev, libreadline-dev, libusb-dev, texinfo, libmpfr-dev,
libgmp3-dev

if you dont know how to install open termianl and type
sudo apt-install then type one of those names

First off -- go to your home/username folder <(username)> = your ubuntu login name...so anyways go to your home/username folder and you should see folders like Desktop, Documents, Examples, etc now press ctrl + H (this shows your hidden folders) now scroll down and find a txt folder called .bashrc and open that up and paste these at the bottom of the text file

export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"

Then save that and exit text editor now back to your username folder press ctrl + H to hide your hidden folders now open Synaptic Package Manager System - Administration - Synaptic Package Manager now search for libgmp3-dev and install that now open your terminal
Applications - Accessories - Terminal and type this or paste

Code: Select all

svn checkout svn&#58;//svn.ps2dev.org/psp/trunk/psptoolchain
Now this folder should be in your home/username folder called psptoolchain
now type this in terminal

Code: Select all

cd /home/YOUR USER NAME GOES HERE/psptoolchain
Now in terminal again type this

Code: Select all

sudo ./toolchain-sudo.sh
now if you get and error to install something then go to your Synaptic Package Manager and search for it.....and now the find begins psptoolchain will install and it will take an hour or so. So just it back and eat some popcorn:popcorn:

when your done hopefully no error then congrats you have psptoolchain ;)

****************************** Update Below**********************************************************
When You Get This Installed Start Learning Here

Code: Select all

http&#58;//www.psp-programming.com/tutorials/c/lesson02.htm
**************************************************************************
SOME INFO ABOUT PSPTOOLCHAIN

This program will automatically build and install a compiler and other
tools used in the creation of homebrew software for the Sony Playstation
Portable handheld videogame system.
Basically It makes eboot.pbp's from main.c, main.cpp ect read the tutorials on psp-programming

**************************************************************************
Last edited by InSaN3 GoDLiK3 on Fri Jan 23, 2009 5:45 am, edited 4 times in total.
jsharrad
Posts: 100
Joined: Thu Oct 20, 2005 3:06 am

Post by jsharrad »

Nice, thanks. Now I can finally dev for PSP!
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

Hi! :)

This is the readme-ubuntu.txt file found in the psptoolchain directory...it's not very different... :)

Code: Select all

 ## Install the required packages.
 sudo apt-get install build-essential autoconf automake bison flex \
  libncurses5-dev libreadline-dev libusb-dev texinfo libgmp3-dev   \
  libmpfr-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&#58;$PSPDEV/bin&#58;$PSPSDK/bin"

 ## Load the environment changes.
 source ~/.bashrc

 ## Build and install the toolchain + sdk.
 sudo ./toolchain-sudo.sh
Ciaooo
Sakya
InSaN3 GoDLiK3
Posts: 5
Joined: Wed Jan 21, 2009 4:29 am

Post by InSaN3 GoDLiK3 »

if you go by what they say and dont install some stuff 80% of the time people get errors search google for psptoolchain and almost all the links are from errors thats why i made this guide
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

You'll need to rework a lot of things for people to understand this properly.

To me, it seems you rushed it.
xantares
Posts: 16
Joined: Tue Dec 30, 2008 4:09 am

Post by xantares »

Hi, I made (I didn't do much actually) a similar script to automatically do this + install the libs
the hello world from the tutorial is provided :

http://my-trac.assembla.com/ayn5-84BSr3BJRab7jnrAJ

Hope this could help some beginners.
Last edited by xantares on Tue Jan 27, 2009 9:54 pm, edited 1 time in total.
DylanNIRVANA
Posts: 7
Joined: Thu Jan 03, 2008 7:52 am

Post by DylanNIRVANA »

I'm running Ubuntu 8.10

Just started to run toolchain-sudo.sh and:
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.
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Its now shaped up to be a very comprehensive tutorial =)

Nice job.
DylanNIRVANA
Posts: 7
Joined: Thu Jan 03, 2008 7:52 am

Post by DylanNIRVANA »

Wow, so the actual tutorial in 1st post, doesn't work for me, but...

http://my-trac.assembla.com/ayn5-84BSr3BJRab7jnrAJ

does. :S

It's going fine now!
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

You know, looking at the previous post got me to thinking... there seem to be a lot of folks giving this stuff root rights to do its thing. This is very dangerous. The linux tutorial really ought to be changed and the toolchain put in ~/pspdev instead of /usr/local/pspdev. It will work just as well since we use $PSPDEV for everything, and you never need any kind of root privileges. Then you could eliminate toolchain-sudo.sh and only have one script.
Swissidle
Posts: 16
Joined: Thu Jan 29, 2009 12:37 am

Post by Swissidle »

ls: cannot access /usr/include/gmp.h: No such file or directory
ERROR: Install gmp before continuing.
../depends/check-gmp.sh: Failed.


anyone can help me with this? after running ./toolchain.sh

im using fedora 10.

thanks in advance
<><><><><>>>NOOB<><><><><<>
xantares
Posts: 16
Joined: Tue Dec 30, 2008 4:09 am

Post by xantares »

you need install the package equivalent to the debian one named 'libgmp3-dev'
does this work ? it will be too easy i think, i don't know fedora nor red hat systems.

Code: Select all

yum install libgmp3-dev
>DylanNIRVANA
thanks

>J.F.
i agree to the fact it is dangerous to let a script with root rights,

- main argument : it's only to be the more convenient as possible
- it's 'cleaner' to add binaries to the usual /usr/local directory, the same for the libs,
- other users can access it also, for example
- still have too enter the password

still you need rights to install software packages toolchain needs in order to compile
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

What other users? I've never seen a computer with more than one user account that wasn't at a college... and you weren't allowed to install anything on those computers.
:)
xantares
Posts: 16
Joined: Tue Dec 30, 2008 4:09 am

Post by xantares »

so, if there is only one user logging as root is not a security matter

as I said, the main focus was convenience ; the user has just to download the script, run it and enter his password when admin rights are required
Post Reply