| View previous topic :: View next topic |
| Author |
Message |
breakfastcereal
Joined: 28 Jul 2005 Posts: 6
|
Posted: Tue Aug 02, 2005 5:10 pm Post subject: 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 :) |
|
| Back to top |
|
 |
cable16
Joined: 22 Mar 2005 Posts: 22
|
Posted: Wed Aug 03, 2005 3:44 am Post subject: |
|
|
| I'm getting the same error, too. I've got the latest (august 1) toolchain, and a full cygwin install. |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Wed Aug 03, 2005 4:12 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
cable16
Joined: 22 Mar 2005 Posts: 22
|
Posted: Wed Aug 03, 2005 6:49 am Post subject: |
|
|
| Where should stdlib.h and string.h be? I looked through svn and only found stdlib.c and string.c, inside /pspsdk/sdk/libc/. |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Wed Aug 03, 2005 7:01 am Post subject: |
|
|
they should be in your standard include directory (hell if i know where cygwin puts that). I would check your cygwin install, and make sure that you have developer checked, otherwise you probably wont have these. _________________ Lego of my Ago! |
|
| Back to top |
|
 |
breakfastcereal
Joined: 28 Jul 2005 Posts: 6
|
Posted: Wed Aug 03, 2005 7:14 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
cable16
Joined: 22 Mar 2005 Posts: 22
|
Posted: Sun Aug 07, 2005 3:47 am Post subject: |
|
|
| I just finished completely reinstalling cygwin, and running the script ( took 4 hours :( ). Works perfectly now. |
|
| Back to top |
|
 |
goldf1ng3r
Joined: 19 Oct 2005 Posts: 2
|
Posted: Wed Oct 19, 2005 11:33 pm Post subject: |
|
|
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:
| Code: | pspaudiolib.c:14:20: error: stdlib.h: No such file or directory
pspaudiolib.c:15:20: error: string.h: No such file or directory
|
I have the verbose output from psp-gcc, which shows me the following:
| Code: | 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 |
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:
| Code: | | Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-languages=c --with-newlib --without-headers" |
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. |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Thu Oct 20, 2005 12:12 am Post subject: |
|
|
| You don't have newlib (libc) installed, so your best bet is to use toolchain.sh directly, or follow each of the steps in turn if you want to build it by hand. |
|
| Back to top |
|
 |
goldf1ng3r
Joined: 19 Oct 2005 Posts: 2
|
Posted: Thu Oct 20, 2005 1:28 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
F.J. Sánchez
Joined: 06 Nov 2005 Posts: 10
|
Posted: Sun Nov 06, 2005 10:03 am Post subject: I have the same problem... [SOLVED] |
|
|
Hi, I'm using Ubuntu and I have the same problem:
| Code: | 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
|
Before this I got this (I only post what I think could be usesful:
| Code: | 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
|
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. _________________ Hack your mind
Okupa tu mente. |
|
| Back to top |
|
 |
|