forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How To: Install PSPTOOLCHAIN **Updated**

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
InSaN3 GoDLiK3



Joined: 21 Jan 2009
Posts: 5

PostPosted: Thu Jan 22, 2009 11:48 pm    Post subject: How To: Install PSPTOOLCHAIN **Updated** Reply with quote

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:
svn checkout svn://svn.ps2dev.org/psp/trunk/psptoolchain


Now this folder should be in your home/username folder called psptoolchain
now type this in terminal

Code:
cd /home/YOUR USER NAME GOES HERE/psptoolchain


Now in terminal again type this

Code:
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:
http://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
Back to top
View user's profile Send private message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Fri Jan 23, 2009 5:06 am    Post subject: Reply with quote

Nice, thanks. Now I can finally dev for PSP!
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Fri Jan 23, 2009 5:50 am    Post subject: Reply with quote

Hi! :)

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

Code:
 ## 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:$PSPDEV/bin:$PSPSDK/bin"

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

 ## Build and install the toolchain + sdk.
 sudo ./toolchain-sudo.sh


Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
InSaN3 GoDLiK3



Joined: 21 Jan 2009
Posts: 5

PostPosted: Fri Jan 23, 2009 5:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Fri Jan 23, 2009 9:24 pm    Post subject: Reply with quote

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

To me, it seems you rushed it.
Back to top
View user's profile Send private message AIM Address
xantares



Joined: 30 Dec 2008
Posts: 16

PostPosted: Fri Jan 23, 2009 10:40 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
DylanNIRVANA



Joined: 03 Jan 2008
Posts: 7

PostPosted: Mon Jan 26, 2009 11:10 pm    Post subject: Reply with quote

I'm running Ubuntu 8.10

Just started to run toolchain-sudo.sh and:

Quote:
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.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Mon Jan 26, 2009 11:14 pm    Post subject: Reply with quote

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

Nice job.
Back to top
View user's profile Send private message AIM Address
DylanNIRVANA



Joined: 03 Jan 2008
Posts: 7

PostPosted: Tue Jan 27, 2009 1:09 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jan 27, 2009 12:23 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
Swissidle



Joined: 29 Jan 2009
Posts: 16

PostPosted: Thu Jan 29, 2009 12:45 am    Post subject: Reply with quote

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<><><><><<>
Back to top
View user's profile Send private message Yahoo Messenger
xantares



Joined: 30 Dec 2008
Posts: 16

PostPosted: Wed Feb 04, 2009 6:38 pm    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Feb 04, 2009 7:32 pm    Post subject: Reply with quote

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.
:)
Back to top
View user's profile Send private message AIM Address
xantares



Joined: 30 Dec 2008
Posts: 16

PostPosted: Wed Feb 04, 2009 9:26 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group