![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
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$ |
|
|
|
|
|
#2 |
![]() ![]() AKA Homer
|
You do have a makefile in the hello folder right? That error says you don't.
|
|
|
|
|
|
#4 |
![]() ![]() sceKernelExitGame();
|
Make sure you dont have an extension on ur makefile
__________________
|
|
|
|
|
|
#5 |
![]() |
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 |
|
|
|
|
|
#6 |
![]() ![]() AKA Homer
|
Write this in the bash:
Code:
export PATH=$PATH:/usr/local/pspdev/bin export PSPSDK=/usr/local/pspdev |
|
|
|
|
|
#8 |
![]() ![]() Developer
|
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 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: 4) Again, in the console, type: Code:
sudo gedit ~/.bashrc Code:
sudo vi ~/.bashrc 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/ Code:
PATH=$PATH:/usr/local/pspdev/bin/:/usr/local/pspdev/ 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/ 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 |
|
|
|
![]() |
| Tags |
| paths , setting , ubuntu |
| Thread Tools | |
|
|