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 

After installing the PSP toolchain, what do I do?

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



Joined: 15 Sep 2005
Posts: 32

PostPosted: Thu Sep 15, 2005 8:33 am    Post subject: After installing the PSP toolchain, what do I do? Reply with quote

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!
Back to top
View user's profile Send private message
BlackDragon777



Joined: 15 Sep 2005
Posts: 32

PostPosted: Thu Sep 15, 2005 9:31 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Sep 15, 2005 2:04 pm    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message
BlackDragon777



Joined: 15 Sep 2005
Posts: 32

PostPosted: Thu Sep 15, 2005 10:40 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
urchin



Joined: 02 Jun 2005
Posts: 121

PostPosted: Thu Sep 15, 2005 10:47 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
BlackDragon777



Joined: 15 Sep 2005
Posts: 32

PostPosted: Fri Sep 16, 2005 12:50 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Sep 16, 2005 12:53 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
BlackDragon777



Joined: 15 Sep 2005
Posts: 32

PostPosted: Fri Sep 16, 2005 2:32 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Sep 16, 2005 3:30 pm    Post subject: Reply with quote

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 :).
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Sep 16, 2005 3:35 pm    Post subject: Reply with quote

<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...
Back to top
View user's profile Send private message
StouffR



Joined: 15 Sep 2005
Posts: 11

PostPosted: Fri Sep 16, 2005 7:03 pm    Post subject: Reply with quote

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>).
Back to top
View user's profile Send private message MSN Messenger
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