After installing the PSP toolchain, what do I do?

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

Moderators: cheriff, TyRaNiD

Post Reply
BlackDragon777
Posts: 32
Joined: Thu Sep 15, 2005 8:26 am

After installing the PSP toolchain, what do I do?

Post by BlackDragon777 »

Hello everyone. I want to install the PSP SDK on my Windows Xp platform. I searched the forums, and I found a post that said I should go here

http://wiki.pspdev.org/psp:programming_faq

I read it and followed each intruction correctly.
My envirnment is setup. I ran some tests like

psp-gcc -v, and I got a reply back. So i know my build is ok.

However it says that I can compile sdktest to check to make sure it works. I tried that however I searched my entire cygwin directory and found that I don't have an sdktest folder anywhere.

So how do I go about compiling a test demo? I downloaded the PSPSDK seperately and installed it. However I guess I didn't install that correctly because when I run ./configure , everything works ok. But when I run the make command in the directory, I get two errors that look like so,

else rm -f ".deps/pspaudiolib.Tpo"; exit 1; \
fi
pspaudiolib.c:14:20: error: stdlib.h: No such file or directory
pspaudiolib.c:15:20: error: string.h: No such file or directory
pspaudiolib.c: In function 'pspAudioInit':
pspaudiolib.c:113: warning: implicit declaration of function 'strcpy'
pspaudiolib.c:113: warning: incompatible implicit declaration of built-in function 'strcpy'
pspaudiolib.c:116: warning: passing argument 6 of 'sceKernelCreateThread' makes
integer from pointer without a cast
make[3]: *** [pspaudiolib.o] Error 1
make[3]: Leaving directory `/home/blackdragon/pspsdk-1.0+beta/sdk/audio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/blackdragon/pspsdk-1.0+beta/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/blackdragon/pspsdk-1.0+beta'
make: *** [all] Error 2

The only directory in which i can successfully compile anything is the PSPSDK's tool directory.

What am I doing wrong?

Thanks in advance!
BlackDragon777
Posts: 32
Joined: Thu Sep 15, 2005 8:26 am

Post by BlackDragon777 »

Ok, I guess my psp tool chain was updated compared to the wiki.

We now have new examples. However when I do a make, this is what happens

/usr/local/pspdev/psp/sdk/samples/controller/basic
$ 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.

blackdragon@blackdragonpc ~
$ cd $PSPSDK

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk
$ ls
include lib samples

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk
$ cd samples

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples
$ ls
audio controller debug gu ir kernel me power prx usb utility wlan

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples
$ cd controller/

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples/controller
$ ls
basic

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples/controller
$ cd basic

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples/controller/basic
$ ls
Makefile main.c

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples/controller/basic
$ 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.

blackdragon@blackdragonpc /usr/local/pspdev/psp/sdk/samples/controller/basic
$

Any ideas?

Thanks!
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

BlackDragon777 wrote:We now have new examples. However when I do a make, this is what happens

/usr/local/pspdev/psp/sdk/samples/controller/basic
$ 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.
You need to add /usr/local/pspdev/bin to your PATH. psp-config is responsible for locating where you've installed PSPSDK anywhere on your system, as long as the /usr/local/pspdev/bin is in your PATH. Once it is, you don't need a PSPSDK environment variable (you don't need it anyway).
BlackDragon777
Posts: 32
Joined: Thu Sep 15, 2005 8:26 am

Post by BlackDragon777 »

I tried that but it still doesn't work. Same error.

blackdragon@blackdragonpc ~
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/ActiveStat
e Perl Dev Kit 6.0/bin/:/cygdrive/c/Perl/bin/:/cygdrive/c/WINDOWS/system32:/cygd
rive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/MySQL
/MySQL Server 4.1/bin:/usr/bin:/OpenSSH/binC:/Program Files/Sonic/MyDVD:/cygdriv
e/c/QUAKE3/BIN_NT:/usr/bin:/usr/local/pspdev/bin:/usr/local/pspdev/psp/sdk:/usr/
local/pspdev/psp/bin:/usr/local/pspdev/bin:/usr/local/pspdev/bin:/usr/local/pspd
ev/psp/sdk/bin
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

Just enter "psp-config" on the command line. If that doesn't work, then try "/usr/local/pspdev/bin/psp-config" (or whatever location it should be) to check it is where it should be. You then need to configure your path so that it can be found.
BlackDragon777
Posts: 32
Joined: Thu Sep 15, 2005 8:26 am

Post by BlackDragon777 »

Hmm.... this is weird.



blackdragon@blackdragonpc /usr/local/pspsdk-1.0+beta/tools
$ ls
Makefile bin2c.exe bin2o.o mksfo.c pack-pbp.exe psp-config.o
Makefile.am bin2c.o bin2s.c mksfo.exe pack-pbp.o unpack-pbp.c
Makefile.in bin2o.c bin2s.exe mksfo.o psp-config.c unpack-pbp.exe
bin2c.c bin2o.exe bin2s.o pack-pbp.c psp-config.exe unpack-pbp.o

blackdragon@blackdragonpc /usr/local/pspsdk-1.0+beta/tools
$ psp-config.exe
bash: psp-config.exe: command not found
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

BlackDragon777 wrote:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/ActiveStat
e Perl Dev Kit 6.0/bin/:/cygdrive/c/Perl/bin/:/cygdrive/c/WINDOWS/system32:/cygd
rive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/MySQL
/MySQL Server 4.1/bin:/usr/bin:/OpenSSH/binC:/Program Files/Sonic/MyDVD:/cygdriv
e/c/QUAKE3/BIN_NT:/usr/bin:/usr/local/pspdev/bin:/usr/local/pspdev/psp/sdk:/usr/
local/pspdev/psp/bin:/usr/local/pspdev/bin:/usr/local/pspdev/bin:/usr/local/pspd
ev/psp/sdk/bin
I don't know how good Cygwin is in handling spaces in the PATH, so you may want to put the /usr/local/pspdev/bin directory at the beginning of the list.
BlackDragon777
Posts: 32
Joined: Thu Sep 15, 2005 8:26 am

Post by BlackDragon777 »

I put it at the beginning of my path as you suggested mrbrown however I still get the same error.

Is there any other build or setup doc I could go through to get my envirnment working write. All the compilers are working, just when I try to make something, I get that build error.

Any other suggestions?

Thanks!
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

The only other thing I can think of right now is that psp-config.exe isn't executable (+x bit), but if that were the case I think you'd get a "Permission denied" error instead of "Command not found". You could still try doing a "chmod +x /usr/local/pspdev/bin/psp-config.exe" to see if that helps...

Hmm, also, if this is the same terminal that you've been using the entire time you can try to do "export PATH" or a "hash -r" ... but at this point I'm really clutching at straws :).
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

<Slapping forehead> Dude, where did you "install" PSPSDK? Reading over all of your posts, do you actually have psp-config.exe sitting in /usr/local/pspdev/bin or not? You should be using "toolchain.sh -p" to install PSPSDK...
StouffR
Posts: 11
Joined: Thu Sep 15, 2005 11:43 pm

Post by StouffR »

Do you have these files on your system ?
stdlib.h, string.h ?

You can find with : find / | grep stdlib.h$

If your command doesn't return a line, the main libs files missed, you must install them ;)

Else, you can change your PATH var with the correct path to these files.
However, you can specify this path within the compilation (optiion -L<libpath>).
Post Reply