I am a complete novice when it comes to this. I am using Cygwin.
I have installed SDL2 (2.0.3) config.log end says exit: 0 so I’m guessing that’s good.
When configuring SDL2_mixer (2.0.0) it comes to the part where it checks for SDL2 version 2 or higher. it then states that it can’t find it, and ends the configuration.
It tells me to check the sdl2-config in /usr/local/bin which says that version is 2.0.3
The config.log file from SDL2_mixer is posted below:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
---------
Platform.
---------
hostname = Jimothey-PC
uname -m = i686
uname -r = 1.7.30(0.272/5/3)
uname -s = CYGWIN_NT-6.0
uname -v = 2014-05-23 10:36
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /cygdrive/c/Program Files/NVIDIA Corporation/PhysX/Common
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/hp/bin/Python
PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared
PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/9.0/DLLShared
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /usr/lib/lapack
PATH: /usr/openwin/bin
-----------
Core tests.
-----------
configure:2484: checking build system type
configure:2498: result: i686-pc-cygwin
configure:2518: checking host system type
configure:2531: result: i686-pc-cygwin
configure:2599: checking for gcc
configure:2615: found /usr/bin/gcc
configure:2626: result: gcc
configure:2855: checking for C compiler version
configure:2864: gcc --version >&5
gcc (GCC) 4.8.3
Copyright © 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2875: $? = 0
configure:2864: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.8.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.3-1/src/gcc-4.8.3/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.3-1/src/gcc-4.8.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --libexecdir=/usr/lib
Thread model: posix
gcc version 4.8.3 (GCC)
configure:2875: $? = 0
configure:2864: gcc -V >&5
gcc: error: unrecognized command line option '-V’
gcc: fatal error: no input files
compilation terminated.
configure:2875: $? = 1
configure:2864: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion’
gcc: fatal error: no input files
compilation terminated.
configure:2875: $? = 1
configure:2895: checking whether the C compiler works
configure:2917: gcc conftest.c >&5
configure:2921: $? = 0
configure:2969: result: yes
configure:2972: checking for C compiler default output file name
configure:2974: result: a.exe
configure:2980: checking for suffix of executables
configure:2987: gcc -o conftest.exe conftest.c >&5
configure:2991: $? = 0
configure:3013: result: .exe
configure:3035: checking whether we are cross compiling
configure:3043: gcc -o conftest.exe conftest.c >&5
configure:3047: $? = 0
configure:3054: ./conftest.exe
configure:3058: $? = 0
configure:3073: result: no
configure:3078: checking for suffix of object files
configure:3100: gcc -c conftest.c >&5
configure:3104: $? = 0
configure:3125: result: o
configure:3129: checking whether we are using the GNU C compiler
configure:3148: gcc -c conftest.c >&5
configure:3148: $? = 0
configure:3157: result: yes
configure:3166: checking whether gcc accepts -g
configure:3186: gcc -c -g conftest.c >&5
configure:3186: $? = 0
configure:3227: result: yes
configure:3244: checking for gcc option to accept ISO C89
configure:3307: gcc -c -g -O2 conftest.c >&5
configure:3307: $? = 0
configure:3320: result: none needed
configure:3340: checking for a sed that does not truncate output
configure:3404: result: /usr/bin/sed
configure:3422: checking for grep that handles long lines and -e
configure:3480: result: /usr/bin/grep
configure:3485: checking for egrep
configure:3547: result: /usr/bin/grep -E
configure:3552: checking for fgrep
configure:3614: result: /usr/bin/grep -F
configure:3649: checking for ld used by gcc
configure:3716: result: /usr/i686-pc-cygwin/bin/ld.exe
configure:3723: checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld
configure:3738: result: yes
configure:3750: checking for BSD- or MS-compatible name lister (nm)
configure:3799: result: /usr/bin/nm -B
configure:3917: checking the name lister (/usr/bin/nm -B) interface
configure:3924: gcc -c -g -O2 conftest.c >&5
configure:3927: /usr/bin/nm -B "conftest.o"
configure:3930: output
00000000 b .bss
00000000 d .data
00000000 N .debug_abbrev
00000000 N .debug_aranges
00000000 N .debug_info
00000000 N .debug_line
00000000 r .rdata$zzz
00000000 t .text
00000000 B some_variable
configure:3937: result: BSD nm
configure:3940: checking whether ln -s works
configure:3944: result: yes
configure:3952: checking the maximum length of command line arguments
configure:4078: result: 8192
configure:4095: checking whether the shell understands some XSI constructs
configure:4105: result: yes
configure:4109: checking whether the shell understands "+="
configure:4115: result: yes
configure:4150: checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files
configure:4157: result: -r
configure:4226: checking for objdump
configure:4242: found /usr/bin/objdump
configure:4253: result: objdump
configure:4282: checking how to recognize dependent libraries
configure:4480: result: pass_all
configure:4540: checking for ar
configure:4556: found /usr/bin/ar
configure:4567: result: ar
configure:4645: checking for strip
configure:4661: found /usr/bin/strip
configure:4672: result: strip
configure:4744: checking for ranlib
configure:4760: found /usr/bin/ranlib
configure:4771: result: ranlib
configure:4861: checking command to parse /usr/bin/nm -B output from gcc object
configure:4979: gcc -c -g -O2 conftest.c >&5
configure:4982: $? = 0
configure:4986: /usr/bin/nm -B conftest.o | sed -n -e ‘s/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]([_A-Za-z][_A-Za-z0-9])$/\1 \2 \2/p’ > conftest.nm
configure:4989: $? = 0
cannot find nm_test_var in conftest.nm
configure:4979: gcc -c -g -O2 conftest.c >&5
configure:4982: $? = 0
configure:4986: /usr/bin/nm -B conftest.o | sed -n -e 's/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]*([_A-Za-z][_A-Za-z0-9])$/\1 _\2 \2/p’ > conftest.nm
configure:4989: $? = 0
configure:5043: gcc -o conftest.exe -g -O2 conftest.c conftstm.o >&5
configure:5046: $? = 0
configure:5084: result: ok
configure:5893: checking how to run the C preprocessor
configure:5924: gcc -E conftest.c
configure:5924: $? = 0
configure:5938: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:5938: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:5963: result: gcc -E
configure:5983: gcc -E conftest.c
configure:5983: $? = 0
configure:5997: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:5997: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| / end confdefs.h. */
| #include <ac_nonexistent.h>
configure:6026: checking for ANSI C header files
configure:6046: gcc -c -g -O2 conftest.c >&5
configure:6046: $? = 0
configure:6119: gcc -o conftest.exe -g -O2 conftest.c >&5
configure:6119: $? = 0
configure:6119: ./conftest.exe
configure:6119: $? = 0
configure:6130: result: yes
configure:6143: checking for sys/types.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for sys/stat.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for stdlib.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for string.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for memory.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for strings.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for inttypes.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for stdint.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6143: checking for unistd.h
configure:6143: gcc -c -g -O2 conftest.c >&5
configure:6143: $? = 0
configure:6143: result: yes
configure:6157: checking for dlfcn.h
configure:6157: gcc -c -g -O2 conftest.c >&5
configure:6157: $? = 0
configure:6157: result: yes
configure:6218: checking for as
configure:6234: found /usr/bin/as
configure:6245: result: as
configure:6310: checking for dlltool
configure:6326: found /usr/bin/dlltool
configure:6337: result: dlltool
configure:6402: checking for objdump
configure:6429: result: objdump
configure:6639: checking for objdir
configure:6654: result: .libs
configure:6950: checking if gcc supports -fno-rtti -fno-exceptions
configure:6968: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C [enabled by default]
configure:6972: $? = 0
configure:6985: result: no
configure:7005: checking for gcc option to produce PIC
configure:7277: result: -DDLL_EXPORT -DPIC
configure:7289: checking if gcc PIC flag -DDLL_EXPORT -DPIC works
configure:7307: gcc -c -g -O2 -DDLL_EXPORT -DPIC -DPIC conftest.c >&5
configure:7311: $? = 0
configure:7324: result: yes
configure:7348: checking if gcc static flag -static works
configure:7376: result: yes
configure:7391: checking if gcc supports -c -o file.o
configure:7412: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:7416: $? = 0
configure:7438: result: yes
configure:7446: checking if gcc supports -c -o file.o
configure:7493: result: yes
configure:7526: checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries
configure:8512: result: yes
configure:8549: checking whether -lc should be explicitly linked in
configure:8554: gcc -c -g -O2 conftest.c >&5
configure:8557: $? = 0
configure:8572: gcc -shared conftest.o -v -o ./conftest -Wl,–enable-auto-image-base -Xlinker --out-implib -Xlinker conftest 2>&1 | /usr/bin/grep -lc >/dev/null 2>&1
configure:8575: $? = 1
configure:8587: result: yes
configure:8751: checking dynamic linker characteristics
configure:9404: result: Win32 ld.exe
configure:9506: checking how to hardcode library paths into programs
configure:9531: result: immediate
configure:10051: checking whether stripping libraries is possible
configure:10056: result: yes
configure:10091: checking if libtool supports shared libraries
configure:10093: result: yes
configure:10096: checking whether to build shared libraries
configure:10117: result: yes
configure:10120: checking whether to build static libraries
configure:10124: result: yes
configure:10250: checking for gcc
configure:10277: result: gcc
configure:10506: checking for C compiler version
configure:10515: gcc --version >&5
gcc (GCC) 4.8.3
Copyright © 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:10526: $? = 0
configure:10515: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.8.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.3-1/src/gcc-4.8.3/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.3-1/src/gcc-4.8.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --libexecdir=/usr/lib
Thread model: posix
gcc version 4.8.3 (GCC)
configure:10526: $? = 0
configure:10515: gcc -V >&5
gcc: error: unrecognized command line option '-V’
gcc: fatal error: no input files
compilation terminated.
configure:10526: $? = 1
configure:10515: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion’
gcc: fatal error: no input files
compilation terminated.
configure:10526: $? = 1
configure:10530: checking whether we are using the GNU C compiler
configure:10558: result: yes
configure:10567: checking whether gcc accepts -g
configure:10628: result: yes
configure:10645: checking for gcc option to accept ISO C89
configure:10721: result: none needed
configure:10755: checking for a BSD-compatible install
configure:10823: result: /usr/bin/install -c
configure:10834: checking whether make sets $(MAKE)
configure:10856: result: yes
configure:10874: checking for windres
configure:10890: found /usr/bin/windres
configure:10901: result: windres
configure:10941: checking for an ANSI C-conforming const
configure:11007: gcc -c -g -O2 -I/usr/include/mingw -mno-cygwin -I/usr/include/mingw -mno-cygwin conftest.c >&5
gcc: error: unrecognized command line option '-mno-cygwin’
gcc: error: unrecognized command line option '-mno-cygwin’
configure:11007: $? = 1
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR “.libs/”
| / end confdefs.h. /
|
| int
| main ()
| {
|
| #ifndef __cplusplus
| / Ultrix mips cc rejects this sort of thing. /
| typedef int charset[2];
| const charset cs = { 0, 0 };
| / SunOS 4.1.1 cc rejects this. /
| char const const pcpcc;
| char ppc;
| / NEC SVR4.0.2 mips cc rejects this. /
| struct point {int x, y;};
| static struct point const zero = {0,0};
| / AIX XL C 1.02.0.0 rejects this.
| It does not let you subtract one const X pointer from another in
| an arm of an if-expression whose if-part is not a constant
| expression /
| const char g = “string”;
| pcpcc = &g + (g ? g-g : 0);
| / HPUX 7.0 cc rejects these. /
| ++pcpcc;
| ppc = (char) pcpcc;
| pcpcc = (char const const ) ppc;
| { / SCO 3.2v4 cc rejects this sort of thing. /
| char tx;
| char t = &tx;
| char const s = 0 ? (char ) 0 : (char const ) 0;
|
| t++ = 0;
| if (s) return 0;
| }
| { / Someone thinks the Sun supposedly-ANSI compiler will reject this. /
| int x[] = {25, 17};
| const int foo = &x[0];
| ++foo;
| }
| { / Sun SC1.0 ANSI compiler rejects this – but not the above. /
| typedef const int iptr;
| iptr p = 0;
| ++p;
| }
| { / AIX XL C 1.02.0.0 rejects this sort of thing, saying
| “k.c”, line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. /
| struct s { int j; const int ap[3]; } bx;
| struct s b = &bx; b->j = 5;
| }
| { / ULTRIX-32 V3.1 (Rev 9) vcc rejects this /
| const int foo = 10;
| if (!foo) return 0;
| }
| return !cs[0] && !zero.x;
| #endif
|
| ;
| return 0;
| }
configure:11014: result: no
configure:11032: checking for GCC -MMD -MT option
configure:11050: gcc -c -g -O2 -I/usr/include/mingw -mno-cygwin -I/usr/include/mingw -mno-cygwin conftest.c >&5
gcc: error: unrecognized command line option '-mno-cygwin’
gcc: error: unrecognized command line option '-mno-cygwin’
configure:11050: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR “.libs/”
| #define const /**/
| / end confdefs.h. /
|
| #if !defined(GNUC) || GNUC < 3
| #error Dependency tracking requires GCC 3.0 or newer
| #endif
|
| int
| main ()
| {
|
|
| ;
| return 0;
| }
configure:11056: result: no
configure:11210: checking for pkg-config
configure:11228: found /usr/bin/pkg-config
configure:11240: result: /usr/bin/pkg-config
configure:11265: checking pkg-config is at least version 0.9.0
configure:11268: result: yes
configure:11306: checking for SDL
configure:11314: $PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version"
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing sdl2.pc' to the PKG_CONFIG_PATH environment variable No package 'sdl2' found configure:11317: $? = 1 configure:11332: $PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version" Package sdl2 was not found in the pkg-config search path. Perhaps you should add the directory containing
sdl2.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘sdl2’ found
configure:11335: $? = 1
No package ‘sdl2’ found
configure:11363: result: no
configure:11401: checking for sdl2-config
configure:11419: found /usr/local/bin/sdl2-config
configure:11432: result: /usr/local/bin/sdl2-config
configure:11441: checking for SDL - version >= 2.0.0
configure:11529: gcc -o conftest.exe -g -O2 -I/usr/include/mingw -mno-cygwin -I/usr/local/include/SDL2 -I/usr/include/mingw -Dmain=SDL_main -I/usr/include/mingw -mno-cygwin -mno-cygwin conftest.c -L/usr/local/lib -lcygwin -lSDL2main -lSDL2 -mwindows >&5
gcc: error: unrecognized command line option '-mno-cygwin’
gcc: error: unrecognized command line option '-mno-cygwin’
gcc: error: unrecognized command line option '-mno-cygwin’
configure:11529: $? = 1
configure: program exited with status 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR “.libs/”
| #define const /**/
| / end confdefs.h. /
|
| #include <stdio.h>
| #include <stdlib.h>
| #include <string.h>
| #include “SDL.h”
|
| char
| my_strdup (char str)
| {
| char new_str;
|
| if (str)
| {
| new_str = (char )malloc ((strlen (str) + 1) * sizeof(char));
| strcpy (new_str, str);
| }
| else
| new_str = NULL;
|
| return new_str;
| }
|
| int main (int argc, char argv[])
| {
| int major, minor, micro;
| char tmp_version;
|
| / This hangs on some systems (?)
| system (“touch conf.sdltest”);
| /
| { FILE fp = fopen(“conf.sdltest”, “a”); if ( fp ) fclose(fp); }
|
| / HP/UX 9 (%@#!) writes to sscanf strings /
| tmp_version = my_strdup(“2.0.0”);
| if (sscanf(tmp_version, “%d.%d.%d”, &major, &minor, µ) != 3) {
| printf("%s, bad version string\n", “2.0.0”);
| exit(1);
| }
|
| if ((2 > major) ||
| ((2 == major) && (0 > minor)) ||
| ((2 == major) && (0 == minor) && (3 >= micro)))
| {
| return 0;
| }
| else
| {
| printf("\n ‘sdl2-config --version’ returned %d.%d.%d, but the minimum version\n", 2, 0, 3);
| printf(" of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
| printf(" best to upgrade to the required version.\n");
| printf(" If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
| printf(" to point to the correct copy of sdl2-config, and remove the file\n");
| printf(" config.cache before re-running configure\n");
| return 1;
| }
| }
|
|
configure:11547: result: no
configure:11586: gcc -o conftest.exe -g -O2 -I/usr/include/mingw -mno-cygwin -I/usr/local/include/SDL2 -I/usr/include/mingw -Dmain=SDL_main -I/usr/include/mingw -mno-cygwin -mno-cygwin conftest.c -L/usr/local/lib -lcygwin -lSDL2main -lSDL2 -mwindows >&5
gcc: error: unrecognized command line option '-mno-cygwin’
gcc: error: unrecognized command line option '-mno-cygwin’
gcc: error: unrecognized command line option '-mno-cygwin’
configure:11586: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR “.libs/”
| #define const /**/
| / end confdefs.h. */
|
| #include <stdio.h>
| #include “SDL.h”
|
| int main(int argc, char *argv[])
| { return 0; }
| #undef main
| #define main K_and_R_C_main
|
| int
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:11611: error: *** SDL version 2.0.0 not found!
----------------
Cache variables.
----------------
ac_cv_build=i686-pc-cygwin
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=no
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MODPLUG_CFLAGS_set=
ac_cv_env_MODPLUG_CFLAGS_value=
ac_cv_env_MODPLUG_LIBS_set=
ac_cv_env_MODPLUG_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SDL_CFLAGS_set=
ac_cv_env_SDL_CFLAGS_value=
ac_cv_env_SDL_LIBS_set=
ac_cv_env_SDL_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=.exe
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-cygwin
ac_cv_objext=o
ac_cv_path_EGREP=’/usr/bin/grep -E’
ac_cv_path_FGREP=’/usr/bin/grep -F’
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SDL2_CONFIG=/usr/local/bin/sdl2-config
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install=’/usr/bin/install -c’
ac_cv_prog_CPP=‘gcc -E’
ac_cv_prog_WINDRES=windres
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_AS=as
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_DLLTOOL=dlltool
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd=func_win32_libid
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface=‘BSD nm’
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/i686-pc-cygwin/bin/ld.exe
lt_cv_path_NM=’/usr/bin/nm -B’
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe=‘sed -n -e ‘’‘s/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]_([_A-Za-z][_A-Za-z0-9])$/\1 _\2 \2/p’’’‘
lt_cv_sys_global_symbol_to_c_name_address=‘sed -n -e ‘’‘s/^: ([^ ]) $/ {"\1", (void ) 0},/p’’’ -e ‘’'s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"\2", (void ) &\2},/p’’’'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e ‘’'s/^: ([^ ]) $/ {"\1", (void ) 0},/p’’’ -e ‘’'s/^[ABCDGIRSTW] ([^ ]) (lib[^ ])$/ {"\2", (void ) &\2},/p’’’ -e ‘’'s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {“lib\2”, (void ) &\2},/p’’’'
lt_cv_sys_global_symbol_to_cdecl='sed -n -e ‘’'s/^T . (.)$/extern int \1();/p’’’ -e ‘’‘s/^[ABCDGIRSTW]* .* (.*)$/extern char \1;/p’’’'
lt_cv_sys_max_cmd_len=8192
-----------------
Output variables.
-----------------
AR=‘ar’
AS=‘as’
BINARY_AGE=‘0’
BUILD_CFLAGS=’-g -O2 ‘
BUILD_LDFLAGS=’‘
CC=‘gcc’
CFLAGS=’-g -O2 -I/usr/include/mingw -mno-cygwin’
CPP=‘gcc -E’
CPPFLAGS=’ -I/usr/include/mingw -mno-cygwin’
DEFS=’‘
DLLTOOL=‘dlltool’
DSYMUTIL=’‘
DUMPBIN=’‘
ECHO_C=’‘
ECHO_N=’-n’
ECHO_T=’‘
EGREP=’/usr/bin/grep -E’
EXE=’.exe’
EXEEXT=’.exe’
EXTRA_CFLAGS=’ -I/usr/include/mingw -mno-cygwin’
EXTRA_LDFLAGS=’-mno-cygwin’
FGREP=’/usr/bin/grep -F’
GREP=’/usr/bin/grep’
INSTALL_DATA=’${INSTALL} -m 644’
INSTALL_PROGRAM=’${INSTALL}‘
INSTALL_SCRIPT=’${INSTALL}‘
INTERFACE_AGE=‘0’
LD=’/usr/i686-pc-cygwin/bin/ld.exe’
LDFLAGS=’ -mno-cygwin’
LIBMIKMOD_CONFIG=’‘
LIBOBJS=’‘
LIBS=’‘
LIBTOOL=’$(SHELL) $(top_builddir)/libtool’
LIPO=’'
LN_S=‘ln -s’
LTLIBOBJS=’'
LT_AGE='0’
LT_CURRENT='0’
LT_RELEASE='2.0’
LT_REVISION='0’
MAJOR_VERSION='2’
MICRO_VERSION=‘0’
MINOR_VERSION=‘0’
MODPLUG_CFLAGS=’‘
MODPLUG_LIBS=’‘
NM=’/usr/bin/nm -B’
NMEDIT=’‘
OBJDUMP=‘objdump’
OBJECTS=’‘
OBJEXT=‘o’
OTOOL64=’‘
OTOOL=’‘
PACKAGE_BUGREPORT=’‘
PACKAGE_NAME=’‘
PACKAGE_STRING=’‘
PACKAGE_TARNAME=’‘
PACKAGE_URL=’‘
PACKAGE_VERSION=’‘
PATH_SEPARATOR=’:‘
PKG_CONFIG=’/usr/bin/pkg-config’
PLAYMUS_OBJECTS=’‘
PLAYWAVE_OBJECTS=’‘
RANLIB=‘ranlib’
SDL2_CONFIG=’/usr/local/bin/sdl2-config’
SDL_CFLAGS=’‘
SDL_LIBS=’‘
SDL_VERSION=‘2.0.0’
SED=’/usr/bin/sed’
SET_MAKE=’‘
SHELL=’/bin/sh’
SMPEG_CFLAGS=’‘
SMPEG_CONFIG=’‘
SMPEG_LIBS=’'
STRIP='strip’
VERSION=‘2.0.0’
VERSION_OBJECTS=’‘
WINDRES=‘windres’
ac_aux_dir=’./build-scripts’
ac_ct_CC=‘gcc’
ac_ct_DUMPBIN=’‘
bindir=’${exec_prefix}/bin’
build=‘i686-pc-cygwin’
build_alias=’‘
build_cpu=‘i686’
build_os=‘cygwin’
build_vendor=‘pc’
datadir=’${datarootdir}‘
datarootdir=’${prefix}/share’
docdir=’${datarootdir}/doc/${PACKAGE}‘
dvidir=’${docdir}‘
exec_prefix=‘NONE’
host=‘i686-pc-cygwin’
host_alias=’‘
host_cpu=‘i686’
host_os=‘cygwin’
host_vendor=‘pc’
htmldir=’${docdir}‘
includedir=’${prefix}/include’
infodir=’${datarootdir}/info’
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localedir=’${datarootdir}/locale’
localstatedir=’${prefix}/var’
lt_ECHO=‘echo’
mandir=’${datarootdir}/man’
oldincludedir=’/usr/include’
pdfdir=’${docdir}‘
prefix=‘NONE’
program_transform_name=‘s,x,x,‘
psdir=’${docdir}‘
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
sysconfdir=’${prefix}/etc’
target_alias=’’
-----------
confdefs.h.
-----------
/* confdefs.h */
#define PACKAGE_NAME “”
#define PACKAGE_TARNAME “”
#define PACKAGE_VERSION “”
#define PACKAGE_STRING “”
#define PACKAGE_BUGREPORT “”
#define PACKAGE_URL “”
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR “.libs/”
#define const /**/
configure: exit 1
I found sdl2 folder under usr/local/include, so thought it maybe not looking in the right place, so copied it to /usr/include with the other folders. The same thing happened.
I am posting here because I have not found an answer on a Google search.
If anyone can help, I would be most greatful.
On a side note the INSTALL file for the source code I’m compiling also requires GL headers and libraries.