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 

Setting up PSPSDK, probably problem with paths.

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



Joined: 24 Jan 2006
Posts: 38

PostPosted: Thu Jan 26, 2006 10:31 pm    Post subject: Setting up PSPSDK, probably problem with paths. Reply with quote

I have set up the toolchain under Linux.

Since I have 2.50 PSP, I have tried to first check the homebrew dev kit by Fanjita and compile the Tetris program for use with GTA.

I get the following errors :
Quote:
make: psp-config: Command not found
/bin/psp-gcc -I /include -O2 -W -Wall -G0 -fno-pic -mno-abicalls -w -S main.c -o main.s
make: /bin/psp-gcc: Command not found
make: *** [all] Error 127


So apparently there is something wrong with paths. But I have set the paths with the following commands :

Quote:
set path=/usr/local/pspdev/bin
set PSPSDK=/usr/local/pspdev


I am afraight that I am just asking a very lame question, but what do I do wrong? What step did I miss setting PSPSDK up?

Sorry for the trouble and thank you for any suggestions.
Back to top
View user's profile Send private message Visit poster's website
charliex



Joined: 26 Jan 2006
Posts: 16

PostPosted: Fri Jan 27, 2006 6:03 am    Post subject: Reply with quote

after you do the set , type set on its own and see if the path is correct, depending on the shell you may neeed to use export instead of set.

presumably its the right location ?

if you do
/usr/local/pspdev/bin/psp-gcc
does it work ?

what about
which psp-gcc

if the later works then the path is ok and its the PSPSDK var thats not getting through, which shell are you using.
Back to top
View user's profile Send private message
Barts_706



Joined: 24 Jan 2006
Posts: 38

PostPosted: Fri Jan 27, 2006 11:32 am    Post subject: Reply with quote

My shell is bash (distribution : Ubuntu).

I will check the things you suggested when I get back home from work and post the results.

I think that /usr/local/pspdev/bin/psp-gcc should work, since pspsdk has been correctly installed and it is in that directory. Same goes for which, but I'll check it to be sure and show the results.
Back to top
View user's profile Send private message Visit poster's website
Barts_706



Joined: 24 Jan 2006
Posts: 38

PostPosted: Sat Jan 28, 2006 9:56 am    Post subject: Reply with quote

/usr/local/pspdev/bin/psp-gcc works as predicted.

The problem is with 'set' command - when I type set, I can see that no paths were added! Tried doing it via sudo - nothing, nada, nul, rien, nic.

As I mentioned before - shell is bash under Ubuntu. Anyone has any suggestions?

-=======[ EDIT : It is okay now. ]===========-

Disregard the above questions. Indeed the export command works, so after a few trial-and-errors (no man page for that command) my environment is set.
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jan 28, 2006 2:35 pm    Post subject: Reply with quote

For extra fun, put the lines into your /etc/profile file and it'll be ready to go every time you open a window.
Back to top
View user's profile Send private message Visit poster's website
Barts_706



Joined: 24 Jan 2006
Posts: 38

PostPosted: Sun Jan 29, 2006 12:00 am    Post subject: Reply with quote

Okay, thank ooPo, I was just asking myself a question how to set it up for good, since after reboot the path was gone.

Anyhow, I didn't have the time to experiment more today, but after setting up the path I managed to compile Fanjita's Tetris! I know it is nothing compared to what you guys do here, but it is my second step on the way to my own homebrew (first being installing PSPSDK), so I am damn happy about it. I have bought GTA today, and tomorrow morning I will put Tetris in the savegame directory and we'll see what happens...

[ As far as I know there is no way of bricking my PSP with that Tetris thing? ]
Back to top
View user's profile Send private message Visit poster's website
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