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!

setting the paths in ubuntu

This is a discussion on setting the paths in ubuntu within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I have searched this forum, but I cannot seem to find an answer. I have fully ran the toolchain script ...

Reply
 
LinkBack Thread Tools
Old 09-09-2006, 05:20 PM   #1
 
FrozenOverflow's Avatar
 
Join Date: Aug 2006
Posts: 64
Trader Feedback: 0
Default setting the paths in ubuntu

I have searched this forum, but I cannot seem to find an answer. I have fully ran the toolchain script etc. but I need to know what paths I need to add, because otherwise when i go to my hello world source folder and hit "make" I get:

frozenoverflow@GENESIS-ONE:~$ cd psp
frozenoverflow@GENESIS-ONE:~/psp$ cd hello
frozenoverflow@GENESIS-ONE:~/psp/hello$ make
make: *** No targets specified and no makefile found. Stop.
frozenoverflow@GENESIS-ONE:~/psp/hello$
FrozenOverflow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 05:22 PM   #2

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

You do have a makefile in the hello folder right? That error says you don't.
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 05:39 PM   #3
 
FrozenOverflow's Avatar
 
Join Date: Aug 2006
Posts: 64
Trader Feedback: 0
Default

yup, the very makefile from yeldarbs tutorial
FrozenOverflow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 05:45 PM   #4

sceKernelExitGame();
 
Bronx's Avatar
 
Join Date: Jan 2006
Location: New York
Posts: 3,125
Trader Feedback: 0
Default

Make sure you dont have an extension on ur makefile
Bronx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 05:48 PM   #5
 
FrozenOverflow's Avatar
 
Join Date: Aug 2006
Posts: 64
Trader Feedback: 0
Default

Nope, there's no extension, I think I may have got it sorted,but now I get this instead..
frozenoverflow@GENESIS-ONE:~/project/helloworld$ make
make: psp-config: Command not found
Makefile:16: /lib/build.mak: No such file or directory
make: *** No rule to make target `/lib/build.mak'. Stop.
frozenoverflow@GENESIS-ONE:~/project/helloworld$

Can anybody please tell me how to fix this? thanks
FrozenOverflow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 05:56 PM   #6

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

Write this in the bash:
Code:
export PATH=$PATH:/usr/local/pspdev/bin
export PSPSDK=/usr/local/pspdev
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 06:02 PM   #7
 
FrozenOverflow's Avatar
 
Join Date: Aug 2006
Posts: 64
Trader Feedback: 0
Default

ah! thank you! It now works.

Also, I would like to thank both of you for taking some of your time to both read this thread, and for being kind enough to help out.

FrozenOverflow
FrozenOverflow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2006, 06:14 PM   #8
mEo

Developer
 
mEo's Avatar
 
Join Date: Feb 2006
Posts: 486
Trader Feedback: 0
Default

i found that just exporting wasn't working for me, so try this. I had a similar problem, but managed to fix it (i use ubuntu dapper 6.06)

1) Run the toolchain and make sure that finishes successfully (i was not able to compile yet)

2) Set the directory (cd) to:
Code:
/usr/local/pspdev/bin
If you are able to do this, all is going well so far.

3) In the concole, type $PATH. It should output something like this:
Code:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:
Mine did not mention anything about psp tools or directories. We are going to have to edit the $PATH variable to tell it where the compiler is located.

4) Again, in the console, type:
Code:
sudo gedit ~/.bashrc
and enter your password. Alternatively, type
Code:
sudo vi ~/.bashrc
but I find the in-console text editor 'vi' hard to use.

5) Go all the way down to the bottom. You may find that you already have some varioable listed, which would look like this: EXAMPLE=/home/example

6) If PATH is already listed, then add onto the end of the variable (with the two dots : as well)
Code:
:/usr/local/pspdev/bin/:/usr/local/pspdev/
7) If path is not listed, add this:
Code:
PATH=$PATH:/usr/local/pspdev/bin/:/usr/local/pspdev/
8) You also need to add these variables (if they already exist, modify / add to them so they include any extras you are missing.
Code:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/bin/pkg-config/:/usr/lib/gtk-2.0/:/usr/share/doc/libgtk2.0-0/:/usr/share/doc/libgtk2.0-bin/
PROJECTS=/home/meo/.PSP/Projects/L
TRUNK=/home/meo/.PSP/psptoolchain/trunk/
9)Note:It is very important that PATH still contains $PATH. This basically means that when the variable PATH is 'set' when ubuntu starts, it sets PATH=PATH and whatever follows. Make sure you save afterwards, if you aren't able to, it's probably because you need to be root and you either didn't use the sudo command, or you don't have root privillages (or can't gain them through sudo)

10)Although it is optional, I recommend restarting your computer, or at least doing a CTRL+ALT+DELETE and relogging in.

11)Now that you have all the variables setup and the toolchain installed, try compiling a program. Don't try any games or complicated applications, as they are likely to need extra libraries not already installed. (Try the screenshot prx module, or WifiController). Compiling is just setting the directory to where the source is, and typing make but im sure you already knew that.

12)Now that you are installed, adding extra libraries is easy. Follow instructions on www.psp-programming.com. I downlaoded all the libraries (by removing the library specific folder from the svn url, look on the website to see what i mean) to .pspprojects in my home folder, so I could easily install them and it would be hidden normally. you shouldn't have any problems installing them.

Note: After restarting, try typing $PATH in the console again. it should include pspdev. Also, after setting the path, try typing psp-config. it should find the program, rather than say command not found.

Good Luck! I hope this has been helpful! It took me a while to get the toolchain fully installed and functional as well, it was just the variables that did it for me.

Go Ubuntu!
__________________
[mEo!]
My Apps: Slider PSP | Slime Volleyball PSP | PSP TV Setup Helper
Guides: Stream TV to your PSP
Firmware: 2.5 - 1.5 :D - 1.5 Casual 3 - 2.0 (Thank god for recovery mode) - 1.5 - 1.5 Casual 3 - 2.71 SE-A (Wooohooo!) - 3.03 OE - 3.10 OE - 3.30 OE - 3.40 OE-A - 3.51 M33
UMD Games: GTA: Liberty City Stories, SSX On Tour, FIFA World Cup 2006, GTA: Vice City Stories
UMD Movies: Speed
Looking Forward To: Full Speed Daedalus, FF Tactics PSP
mEo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
paths , setting , 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 09:00 PM.



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