Setting up PSPSDK, probably problem with paths.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Barts_706
Posts: 38
Joined: Tue Jan 24, 2006 2:21 pm
Contact:

Setting up PSPSDK, probably problem with paths.

Post by Barts_706 »

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 :
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 :
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.
charliex
Posts: 16
Joined: Thu Jan 26, 2006 4:03 pm

Post by charliex »

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.
User avatar
Barts_706
Posts: 38
Joined: Tue Jan 24, 2006 2:21 pm
Contact:

Post by Barts_706 »

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.
User avatar
Barts_706
Posts: 38
Joined: Tue Jan 24, 2006 2:21 pm
Contact:

Post by Barts_706 »

/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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

For extra fun, put the lines into your /etc/profile file and it'll be ready to go every time you open a window.
User avatar
Barts_706
Posts: 38
Joined: Tue Jan 24, 2006 2:21 pm
Contact:

Post by Barts_706 »

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? ]
Post Reply