QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

psptoolchain on ubuntu fiesty

This is a discussion on psptoolchain on ubuntu fiesty within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; so i recently installed ubuntu fiesty and to continue my learining of C i now need to install the pspdev ...

Reply
 
LinkBack Thread Tools
Old 08-08-2007, 08:33 PM   #1
 
wrcsti's Avatar
 
Join Date: Oct 2006
Location: under the big rock
Posts: 485
Trader Feedback: 0
Default psptoolchain on ubuntu fiesty

so i recently installed ubuntu fiesty and to continue my learining of C i now need to install the pspdev to my computer to test that any test programs i make actually work. now heres the catch, i dont want to waste more space on my hardrives and time installing it on win XP and would like to use my linux to install this. now i have the psptoolchain folder downloaded but wheneever i type ./toolchain.sh into a terminal i get some wierd things like
Code:
 ERROR: Set $PSPDEV before continuing
../depends/check-pspdev.sh: FAILED.
any help or guides/tuts to managing to install this would be greatly appreciated.
thanks in advance. and yes im a linux no0b XD
wrcsti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2007, 08:46 PM   #2
 
3vi1's Avatar
 
Join Date: May 2007
Posts: 81
Trader Feedback: 0
Default

Quote:
Originally Posted by wrcsti
so i recently installed ubuntu fiesty and to continue my learining of C i now need to install the pspdev to my computer to test that any test programs i make actually work. now heres the catch, i dont want to waste more space on my hardrives and time installing it on win XP and would like to use my linux to install this. now i have the psptoolchain folder downloaded but wheneever i type ./toolchain.sh into a terminal i get some wierd things like
Code:
 ERROR: Set $PSPDEV before continuing
../depends/check-pspdev.sh: FAILED.
any help or guides/tuts to managing to install this would be greatly appreciated.
thanks in advance. and yes im a linux no0b XD
See what it's saying about PSPDEV? Do it! Hehe

Add a line to the end of your .bashrc file (in your home directory) that points to the directory of the pspsdk. For example, on my system, I put it inside of my ~/src directory, so the command is:

export PSPDEV=/home/evil/src/pspsdk

If you add that path (remember to logout/in!) you should be able to proceed.
3vi1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2007, 08:53 PM   #3
 
wrcsti's Avatar
 
Join Date: Oct 2006
Location: under the big rock
Posts: 485
Trader Feedback: 0
Default

i cant find such bashrc file, i looked in home, usr and other places but i cant find it. where is yours and should i include that i have beryl runing or does it make no interferancee
thanks
edit:
so i serached for .bashrc in my filesystem and found this

which one is it?
thanks again
wrcsti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2007, 08:59 PM   #4

It's good to be free...
 
Archaemic's Avatar
 
Join Date: Feb 2007
Posts: 2,440
Trader Feedback: 0
Default

ls -al ~/.bashrc
should list it
E] Actually, the a option is unneeded when singling out the file.
__________________
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
Archaemic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2007, 09:07 PM   #5
 
3vi1's Avatar
 
Join Date: May 2007
Posts: 81
Trader Feedback: 0
Default

Quote:
Originally Posted by wrcsti
i cant find such bashrc file,
try "gedit ~/.bashrc". I use kubuntu, but that should work. If not, use another editor, like nano. I can't imagine you don't have a .bashrc file. I couldn't view your screenshot, it gave me an error about logging in.
3vi1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-08-2007, 09:07 PM   #6
 
wrcsti's Avatar
 
Join Date: Oct 2006
Location: under the big rock
Posts: 485
Trader Feedback: 0
Default

when i put that in a terminal it finds the file, but when i go to that location on a window it doesnt have it. ill just try to see if i can find an invissible needle in a haystack
edit:
so i found the file, and added what you said to add at the end but still i get a

ERROR: Add /home/aaaa/src/pspsdk/bin to your path before continuing.
../depends/check-pspdev.sh: failed.

so i just add that to the same file continuing?

Last edited by wrcsti; 08-08-2007 at 09:28 PM..
wrcsti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2007, 01:17 PM   #7
 
wrcsti's Avatar
 
Join Date: Oct 2006
Location: under the big rock
Posts: 485
Trader Feedback: 0
Default

ok so now everytime i add the bin at the end it asks for another bin to be added in like a huge loop, im up to my fourth bin, can i just use a precompiled pspdev? and were do i put it in?
wrcsti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2007, 01:30 PM   #8
 
Join Date: Jul 2007
Posts: 296
Trader Feedback: 0
Default

Wow.

.bashrc is a hidden file, so it doesn't show in the file system.

The PSPToolchain comes with a readme. If you were smart enough to read it, you would know that you have to export PATH as well as PSPDEV.
_dysfunctional is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-09-2007, 02:51 PM   #9
 
wrcsti's Avatar
 
Join Date: Oct 2006
Location: under the big rock
Posts: 485
Trader Feedback: 0
Default

got it to run, hope it installs now, turns out i justt needed to install those nurses and other things and those were messing up how it loaded it
wrcsti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-24-2008, 05:53 PM   #10
 
Join Date: Mar 2008
Posts: 3
Trader Feedback: 0
Default

I know this thread is old but I need some help on this. Whenever I try to run
Code:
./toolchain.sh
I get the following error

ERROR: Add /usr/local/pspdev/bin to your path before continuing.
../depends/check-pspdev.sh: Failed.

I have set
Code:
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
in .bashrc, but it still says I need to add that to my path. I am still fairly new to Linux, so I'm not sure exactly what that means, or how to fix it. Can anyone tell me what is going wrong?
Waynhim is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-24-2008, 05:57 PM   #11

It's good to be free...
 
Archaemic's Avatar
 
Join Date: Feb 2007
Posts: 2,440
Trader Feedback: 0
Default

Restart your terminal.
__________________
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
Archaemic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-24-2008, 06:21 PM   #12
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

also you can try ~/.bash_profile (incase you may have a different version of bash installed)
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-24-2008, 07:00 PM   #13
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

Also try the file ".profile". instead of ".bashrc".
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-24-2008, 09:09 PM   #14
 
Join Date: Mar 2008
Posts: 37
Trader Feedback: 0
Default

download this http://forum.psp.free.fr/public/psp/...gcc410.tar.bz2
its a pre-compiled version of the PSP SDK (with gcc-410) by zx81
its about 50mb

then extract then move the folders of pspdev(bin,include,info,l ib, etc etc) folder to your /usr/local/

done.
sanctifi3d is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-24-2008, 11:49 PM   #15
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

thats most likely assuming you have a intel based computer. You might want to read what architecture its compiled for before downloading. Plus comiling the toolchain yourself is always the best bet and you get the newest version.
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 07:28 AM   #16
 
Join Date: Mar 2008
Posts: 3
Trader Feedback: 0
Default

When I had those lines in .bash_profile I still got the error I had before putting them anywhere,
ERROR: Set $PSPDEV before continuing.
../depends/check-pspdev.sh: Failed.
When I put them in .bashrc, the error changed to the error from my previous post, and putting them in .profile didn't change the error.

Still being fairly new to linux I didn't know what was going on there, so I decided to figure out what those commands do. Now that I know what export actually does I checked to see what it output when I used just export, and /usr/local/pspdev/bin is in my path, so why is it failing.

Last edited by Waynhim; 03-25-2008 at 07:41 AM..
Waynhim is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 07:51 AM   #17
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Default

in the terminal you have to be the admin

type

sudo -nautilus

that will give you admin rights then do it

i think that is the command, but i do know for sure that it is nautilus that you need so do some searching for that
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference.
My Website: is down for a while ... I'll bring a new one back soon.

Currently working on:
(0) PGE Gears Of War - On hold (Very large project).
(0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 09:34 AM   #18
 
Join Date: Mar 2008
Posts: 37
Trader Feedback: 0
Default

Quote:
Originally Posted by FaT3oYCG
in the terminal you have to be the admin

type

sudo -nautilus

that will give you admin rights then do it

i think that is the command, but i do know for sure that it is nautilus that you need so do some searching for that
its
Code:
nautilus
no need for sudo
sanctifi3d is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 10:10 AM   #19
 
Join Date: Mar 2008
Posts: 3
Trader Feedback: 0
Default

I've got it now, between my last post and now I went to a class where the professor is a Linux guru, presented the situation to him and he figured it out for me. If I'd remembered nautilus though that would've simplified the situation. I didn't realize that
Code:
sudo ./toolchain.sh
would change the PATH.

It's taking longer to run than I thought it would. At this rate I might have to leave my laptop in here during the next class so it can keep running.
Waynhim is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 10:36 AM   #20

Developer
 
placo23's Avatar
 
Join Date: Aug 2007
Posts: 726
Trader Feedback: 0
Default

try ./toolchain_sudo.sh

I'm sure that will do.

cheers
__________________
Placo23

Spoiler for Wanna see my Apps?:
Why not donate and become part of this selected list?
Spoiler for Donators:
DarkSeveN - 5.100.000
--DylanDangles--2.000.000
Zuiver - 100.000
AlwaysAmiYumi - 10.338.63
placo23 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 12:07 PM   #21
 
 
Join Date: Nov 2007
Posts: 920
Trader Feedback: 0
Default

i have a question, does the toolchain take as long as it does on windows to install?
ifiwere1337 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 04:33 PM   #22

It's good to be free...
 
Archaemic's Avatar
 
Join Date: Feb 2007
Posts: 2,440
Trader Feedback: 0
Default

No, it doesn't take nearly as long to install on Linux.
__________________
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
Archaemic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 04:34 PM   #23
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Default

mine took like 4 hours on windows and 30 mins on linux, same pc and everything
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference.
My Website: is down for a while ... I'll bring a new one back soon.

Currently working on:
(0) PGE Gears Of War - On hold (Very large project).
(0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 04:50 PM   #24
 
 
Join Date: Nov 2007
Posts: 920
Trader Feedback: 0
Default

Quote:
Originally Posted by FaT3oYCG
mine took like 4 hours on windows and 30 mins on linux, same pc and everything
thanks for the answer, i wondered when i installed and it took only 30 min, i thought i did it wrong
ifiwere1337 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 07:01 PM   #25
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

I installed the toolchain on andLinux (Ubuntu running under a Linux kernel in Windows) and it was about four times as fast as in Cygwin. Pretty sad...
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 07:54 PM   #26
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

1.86ghz Pentium M (lol laptop I got right before c2ds became standard) with 1gb RAM takes about 5 hours on Cygwin and about an hour on ubuntu (and WELL over half that time is downloading stuff, my internet is rather slow)
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 10:25 PM   #27

It's good to be free...
 
Archaemic's Avatar
 
Join Date: Feb 2007
Posts: 2,440
Trader Feedback: 0
Default

Apparently the reason Cygwin is so slow is because there's a lot of overhead in starting processes, which isn't really all that surprising. This affects the toolchain a lot because the compilation consists of scores of small programs being launched continuously, so a good deal is lost to this overhead. Or at least that's what I heard.
__________________
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
Archaemic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-25-2008, 10:37 PM   #28
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

its faster to just run linux in a virtual pc , but truely if you are gonna dev just install *nix.
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-26-2008, 01:48 AM   #29
 
Join Date: Mar 2008
Posts: 37
Trader Feedback: 0
Default

Quote:
Originally Posted by a_noob
but truely if you are gonna dev just install *nix.
totally agree

in my view
dev=*nix
multimedia/gfx=mac
trouble=windoze..

:P
sanctifi3d is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-26-2008, 02:28 PM   #30
 
 
Join Date: Nov 2007
Posts: 920
Trader Feedback: 0
Default

Quote:
Originally Posted by sanctifi3d
totally agree

in my view
dev=*nix
multimedia/gfx=mac
trouble=windoze..

:P
well said
ifiwere1337 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
fiesty , psptoolchain , ubuntu

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 01:32 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us