Cygwin & SDL, can't find SDL.h

OK, I’m almost ready to give up…

I have installed Cygwin and am able to compile a simple program (just to
make sure that the installation went OK).

I have placed the SDL development libraries and includes are in
"/usr/local/cross-tools/i386-mingw32msvc".
The “prefix” in the “sdl-config” file reads
"prefix=/usr/local/cross-tools/i386-mingw32msvc" , which matches where the
SDL development files are placed.

I encounter a problem when I attempt to build applications in the ./test
directory.******************
$ ./configure
loading cache ./config.cache
checking host system type… i686-pc-cygwin
checking target system type… i686-pc-cygwin
checking for a BSD compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking whether make sets ${MAKE}… yes
checking for working aclocal… found
checking for working autoconf… found
checking for working automake… found
checking for working autoheader… found
checking for working makeinfo… missing
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
checking for working const… yes
checking for sdl-config… /usr/bin/sdl-config
checking for SDL - version >= 1.2.3… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for
the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter case,
you
*** may want to edit the sdl-config script: /usr/bin/sdl-config
configure: error: *** SDL version 1.2.3 not found!


The “config.log” file contains the following…


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:562: checking host system type
configure:583: checking target system type
configure:613: checking for a BSD compatible install
configure:666: checking whether build environment is sane
configure:723: checking whether make sets ${MAKE}
configure:769: checking for working aclocal
configure:782: checking for working autoconf
configure:795: checking for working automake
configure:808: checking for working autoheader
configure:821: checking for working makeinfo
configure:839: checking for gcc
configure:952: checking whether the C compiler (gcc ) works
configure:968: gcc -o conftest conftest.c 1>&5
configure:994: checking whether the C compiler (gcc ) is a cross-compiler
configure:999: checking whether we are using GNU C
configure:1008: gcc -E conftest.c
configure:1027: checking whether gcc accepts -g
configure:1061: checking for working const
configure:1115: gcc -c -g -O2 conftest.c 1>&5
configure:2124: checking for sdl-config
configure:2159: checking for SDL - version >= 1.2.3
configure:2244: gcc -o
conftest -g -O2 -I/usr/local/cross-tools/i386-mingw32msvc/include -I/usr/loc
al/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main

conftest.c -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmai
n -lSDL -mwindows 1>&5
configure:2188: SDL.h: No such file or directory
configure: failed program was:
#line 2183 “configure”
#include “confdefs.h”

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include “SDL.h”

char*
my_strdup (char *str)
{


Which leads me to believe that gcc can’t find the SDL includes directory.

Can anyone help?

-Luke

Do you have the very latest cygwin version? I had similar problems. I also had
to look closely at which versions the cygwin setup program wanted to install, I
think it’s not very good yet.
Another problem might be, that the SDL.h file is really at SDL/SDL.h. Try to
copy it one directory down.

Florian> ----- Original Message -----

From: luke.crook@usa.net (Luke J Crook)
To:
Sent: Saturday, March 23, 2002 1:13 AM
Subject: [SDL] Cygwin & SDL, can’t find SDL.h

OK, I’m almost ready to give up…

I have installed Cygwin and am able to compile a simple program (just to
make sure that the installation went OK).

I have placed the SDL development libraries and includes are in
"/usr/local/cross-tools/i386-mingw32msvc".
The “prefix” in the “sdl-config” file reads
"prefix=/usr/local/cross-tools/i386-mingw32msvc" , which matches where the
SDL development files are placed.

I encounter a problem when I attempt to build applications in the ./test
directory.


$ ./configure
loading cache ./config.cache
checking host system type… i686-pc-cygwin
checking target system type… i686-pc-cygwin
checking for a BSD compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking whether make sets ${MAKE}… yes
checking for working aclocal… found
checking for working autoconf… found
checking for working automake… found
checking for working autoheader… found
checking for working makeinfo… missing
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
checking for working const… yes
checking for sdl-config… /usr/bin/sdl-config
checking for SDL - version >= 1.2.3… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for
the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter case,
you
*** may want to edit the sdl-config script: /usr/bin/sdl-config
configure: error: *** SDL version 1.2.3 not found!


The “config.log” file contains the following…


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:562: checking host system type
configure:583: checking target system type
configure:613: checking for a BSD compatible install
configure:666: checking whether build environment is sane
configure:723: checking whether make sets ${MAKE}
configure:769: checking for working aclocal
configure:782: checking for working autoconf
configure:795: checking for working automake
configure:808: checking for working autoheader
configure:821: checking for working makeinfo
configure:839: checking for gcc
configure:952: checking whether the C compiler (gcc ) works
configure:968: gcc -o conftest conftest.c 1>&5
configure:994: checking whether the C compiler (gcc ) is a cross-compiler
configure:999: checking whether we are using GNU C
configure:1008: gcc -E conftest.c
configure:1027: checking whether gcc accepts -g
configure:1061: checking for working const
configure:1115: gcc -c -g -O2 conftest.c 1>&5
configure:2124: checking for sdl-config
configure:2159: checking for SDL - version >= 1.2.3
configure:2244: gcc -o
conftest -g -O2 -I/usr/local/cross-tools/i386-mingw32msvc/include -I/usr/loc
al/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main

conftest.c -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmai
n -lSDL -mwindows 1>&5
configure:2188: SDL.h: No such file or directory
configure: failed program was:
#line 2183 “configure”
#include “confdefs.h”

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include “SDL.h”

char*
my_strdup (char *str)
{


Which leads me to believe that gcc can’t find the SDL includes directory.

Can anyone help?

-Luke


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl