missing header files building PSPSDK
-
- Posts: 6
- Joined: Thu Jul 28, 2005 11:12 am
missing header files building PSPSDK
running the toolchain script has seemed to be a bit more difficult than just typing ./toolchain.sh :P at least for this linux n00b. I've looked around and not seen this same error, so sorry if it's been discussed and I just missed it.
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'
make[3]: *** [pspaudiolib.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/sdk/audio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
make: *** [all] Error 2
ERROR BUILDING PSPSDK
even though I'm completely retarded, I realize that pspaudiolib.c has stdlib.h and string.h as header files but can't find them. No clue why. Anyone have any suggestions as to how to fix this? Thnx for helping a n00b :)
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'
make[3]: *** [pspaudiolib.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/sdk/audio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
make: *** [all] Error 2
ERROR BUILDING PSPSDK
even though I'm completely retarded, I realize that pspaudiolib.c has stdlib.h and string.h as header files but can't find them. No clue why. Anyone have any suggestions as to how to fix this? Thnx for helping a n00b :)
If you guys do not have the string.h and stdlib.h, then you must reinstall something. I am not sure of which cygwin package is necesasry, but I would recommend doing it to the T as described by this link: http://wiki.pspdev.org/psp:programming_faq Don't skip a step or skim over something, because the slightest miss will make it not work.
Lego of my Ago!
-
- Posts: 6
- Joined: Thu Jul 28, 2005 11:12 am
just to clarify, I was on debian so I'm not sure about cygwin, but I managed to locate the problem. I scrolled up in my history and found while it was doing some checks that it did not have psp g++. It had somehow skipped g++ while I was running the toolchain script from the start and went fine all the way up until it was building the SDK. I would just make sure you have the latest automake and autoconf and restart the script from the beginning, that's basically what I did.
-
- Posts: 2
- Joined: Wed Oct 19, 2005 11:23 pm
I also have this problem.
I have installed cygwin with all of the development headers / libraries etc and stdlib.h and string.h are available within /usr/include.
I have built psp-gcc, but when I subsequently try to build pspsdk it fails with the following:
I have the verbose output from psp-gcc, which shows me the following:
Does this mean that /usr/include is not in the include path?
Is the configure script failing to pick this up for some reason?
Should I expect to see the include files in /usr/local/pspdev/psp/sys-include?
I am trying to build this in a cygwin environment and psp-gcc was built with these options:
which is the defaults as per the toolchain script.
Sorry for these stupid questions, I've already searched through the forums and google etc, and could figure it out.
I have installed cygwin with all of the development headers / libraries etc and stdlib.h and string.h are available within /usr/include.
I have built psp-gcc, but when I subsequently try to build pspsdk it fails with the following:
Code: Select all
pspaudiolib.c:14:20: error: stdlib.h: No such file or directory
pspaudiolib.c:15:20: error: string.h: No such file or directory
Code: Select all
ignoring nonexistent directory "/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/sys-include"
ignoring nonexistent directory "/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/include"
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
.
../..
../../sdk/base
../../sdk/user
/usr/local/pspdev/lib/gcc/psp/4.0.1/include
Is the configure script failing to pick this up for some reason?
Should I expect to see the include files in /usr/local/pspdev/psp/sys-include?
I am trying to build this in a cygwin environment and psp-gcc was built with these options:
Code: Select all
Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-languages=c --with-newlib --without-headers"
Sorry for these stupid questions, I've already searched through the forums and google etc, and could figure it out.
-
- Posts: 2
- Joined: Wed Oct 19, 2005 11:23 pm
Thanks for that.
I think the problem stems from the fact that the toolchain script failed initially as I couldn't access the subversion server, as I'm behind a firewall at work.
I had then just run toolchain -p to download and build the pspsdk, assuming that the other libraries had been built correctly.
Now that I've actually gone back and checked toolchain.sh it would have failed before building newlib etc.
Hopefully running the full toolchain script when I have access to subversion will sort all this out.
I think the problem stems from the fact that the toolchain script failed initially as I couldn't access the subversion server, as I'm behind a firewall at work.
I had then just run toolchain -p to download and build the pspsdk, assuming that the other libraries had been built correctly.
Now that I've actually gone back and checked toolchain.sh it would have failed before building newlib etc.
Hopefully running the full toolchain script when I have access to subversion will sort all this out.
-
- Posts: 10
- Joined: Sun Nov 06, 2005 9:48 am
I have the same problem... [SOLVED]
Hi, I'm using Ubuntu and I have the same problem:
Before this I got this (I only post what I think could be usesful:
I'm using autoconf 2.59 and automake 1.9.5 and the lastest toolchains (I downloaded it from http://oopo.net/consoledev/ ), gcc is 4.0.2.
What could be the problem?
EDIT: I solved this only with svn co svn://svn.pspdev.org/psp/trunk/psptoolchain and building everything again (./toolchain.sh -b -g -n -p -e).
Thank you.
Code: Select all
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: En la función ‘pspAudioInit’:
pspaudiolib.c:117: aviso: declaración implícita de la función ‘strcpy’
pspaudiolib.c:117: aviso: declaración implícita incompatible de la función interna ‘strcpy’
make[3]: *** [pspaudiolib.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/sdk/audio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
make: *** [all] Error 2
ERROR BUILDING PSPSDK
Code: Select all
checking for pspsdk version... 1.0+beta
checking for pspdev... /usr/local/pspdev
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
.....
checking for psp-g++... no
.....
checking whether we are cross compiling... no
.....
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
.....
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
.....
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for stdlib.h... (cached) yes
.....
checking for strchr... yes
checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation
checking for perl... /usr/bin/perl
configure: creating ./config.status
What could be the problem?
EDIT: I solved this only with svn co svn://svn.pspdev.org/psp/trunk/psptoolchain and building everything again (./toolchain.sh -b -g -n -p -e).
Thank you.
Hack your mind
Okupa tu mente.
Okupa tu mente.