SDL_image, SDL_mixer on MinGW, MSYS, VISTA64

Hello,

I’ve got SDL installed and I’m using it. However,

I’m having a host of problems with SDL_image, SDL_mixer libraries.
I’m using a slightly modified Vista 64-fixed MinGW/MSYS. (Slightly
modified as per Vista install instructions).

sdl-config reports
CFLAGS:
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main

LIBS:
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows

SDL_image–> i’ve managed to install some of the libs required by this
library, but it is unable to detect them during ./configure – using
the ‘copy method’ – and, the jpeg library is not one of the libraries
that seems to work. Although I have managed to get this to install at
least once in the past, if someone has some useful information about
this it would be great.

SDL_mixer—>

First, I tried installing by using the ‘copy install’ instructions
that are around on the web, once I had modified “SDL.h” in the
SDL_mixer tutorial mixer1.c to be <SDL.h> some of the errors went
away, I also had to change “SDL_mixer.h” to <SDL/SDL_mixer.h> so it
could find the file, however, the compile reported undefined symbols.
Then, I read that someone had built it on mingw, but…

./configure reports “C compiler not able to build executables” –
after detecting gcc – someone recommended blanking out LIB and
INCLUDE environment variables, but I don’t have any of those variables
set. I’ve tried it with --prefix=/mingw and get the same issue.

Solving both of these issues would be great! Here’s the config.log
from SDL_mixer 1.2.8

$ cat config.log
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.59. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = h3-PC
uname -m = i686
uname -r = 1.0.11(0.46/3/2)
uname -s = MINGW32_NT-6.0
uname -v = 2007-12-05 00:35

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/Program Files (x86)/ActiveState Komodo Edit 4/
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static
PATH: /mingw/bin
PATH: /c/cygwin/bin

-----------

Core tests.

-----------

configure:1585: checking build system type
configure:1603: result: i686-pc-mingw32
configure:1611: checking host system type
configure:1625: result: i686-pc-mingw32
configure:1782: checking for gcc
configure:1798: found /mingw/bin/gcc
configure:1808: result: gcc
configure:2052: checking for C compiler version
configure:2055: gcc --version </dev/null >&5
gcc.exe (GCC) 3.4.5 (mingw special)
Copyright © 2004 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:2058: $? = 0
configure:2060: gcc -v </dev/null >&5
Reading specs from C:/mingw/lib/gcc/mingw32/3.4.5/specs
Configured with: …/gcc-3.4.5/configure --with-gcc --with-gnu-ld
–with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
–enable-threads --disable-nls
–enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
–disable-shared --enable-sjlj-exceptions --enable-libgcj
–disable-java-awt --without-x --enable-java-gc=boehm
–disable-libgcj-debug --enable-interpreter
–enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
configure:2063: $? = 0
configure:2065: gcc -V </dev/null >&5
gcc.exe: -V' option must have argument configure:2068: $? = 1 configure:2091: checking for C compiler default output file name configure:2094: gcc -D_GNU_SOURCE=1 -D_GNU_SOURCE=1 conftest.c >&5 gcc.exe: installation problem, cannot execcc1’: No such file or directory
configure:2097: $? = 1
configure: failed program was:
| /* confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2136: error: C compiler cannot create executables
See `config.log’ for more details.

----------------

Cache variables.

----------------

ac_cv_build=i686-pc-mingw32
ac_cv_build_alias=i686-pc-mingw32
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_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_host=i686-pc-mingw32
ac_cv_host_alias=i686-pc-mingw32
ac_cv_prog_ac_ct_CC=gcc

-----------------

Output variables.

-----------------

AR=’‘
AS=’‘
BINARY_AGE=‘8’
BUILD_CFLAGS=’ ‘
BUILD_LDFLAGS=’‘
CC=‘gcc’
CFLAGS=’ -D_GNU_SOURCE=1’
CPP=’‘
CPPFLAGS=’ -D_GNU_SOURCE=1’
CXX=’‘
CXXCPP=’‘
CXXFLAGS=’‘
DEFS=’‘
DLLTOOL=’‘
ECHO=‘echo’
ECHO_C=’‘
ECHO_N=’-n’
ECHO_T=’‘
EGREP=’‘
EXE=’‘
EXEEXT=’‘
EXTRA_CFLAGS=’ -D_GNU_SOURCE=1’
EXTRA_LDFLAGS=’‘
F77=’‘
FFLAGS=’‘
INSTALL_DATA=’‘
INSTALL_PROGRAM=’‘
INSTALL_SCRIPT=’'
INTERFACE_AGE=‘6’
LDFLAGS=’ ‘
LIBMIKMOD_CONFIG=’‘
LIBOBJS=’‘
LIBS=’‘
LIBTOOL=’‘
LN_S=’‘
LTLIBOBJS=’'
LT_AGE='2’
LT_CURRENT='2’
LT_RELEASE='1.2’
LT_REVISION='6’
MAJOR_VERSION=‘1’
MICRO_VERSION=‘8’
MINOR_VERSION=‘2’
OBJDUMP=’‘
OBJECTS=’‘
OBJEXT=’‘
PACKAGE_BUGREPORT=’‘
PACKAGE_NAME=’‘
PACKAGE_STRING=’‘
PACKAGE_TARNAME=’‘
PACKAGE_VERSION=’‘
PATH_SEPARATOR=’:‘
RANLIB=’‘
SDL_CFLAGS=’‘
SDL_CONFIG=’/usr/local/bin/sdl-config-console’
SDL_LIBS=’‘
SET_MAKE=’‘
SHELL=’/bin/sh’
SMPEG_CFLAGS=’‘
SMPEG_CONFIG=’‘
SMPEG_LIBS=’‘
SOURCES=’‘
STRIP=’‘
VERSION=‘1.2.8’
WINDRES=’‘
ac_aux_dir=’./build-scripts’
ac_ct_AR=’‘
ac_ct_AS=’‘
ac_ct_CC=‘gcc’
ac_ct_CXX=’‘
ac_ct_DLLTOOL=’‘
ac_ct_F77=’‘
ac_ct_OBJDUMP=’‘
ac_ct_RANLIB=’‘
ac_ct_STRIP=’‘
bindir=’${exec_prefix}/bin’
build=‘i686-pc-mingw32’
build_alias=’‘
build_cpu=‘i686’
build_os=‘mingw32’
build_vendor=‘pc’
datadir=’${prefix}/share’
exec_prefix=‘NONE’
host=‘i686-pc-mingw32’
host_alias=’‘
host_cpu=‘i686’
host_os=‘mingw32’
host_vendor=‘pc’
includedir=’${prefix}/include’
infodir=’${prefix}/info’
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localstatedir=’${prefix}/var’
mandir=’${prefix}/man’
oldincludedir=’/usr/include’
prefix=‘NONE’
program_transform_name=‘s,x,x,‘
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
sysconfdir=’${prefix}/etc’
target_alias=’’

-----------

confdefs.h.

-----------

#define PACKAGE_BUGREPORT “”
#define PACKAGE_NAME “”
#define PACKAGE_STRING “”
#define PACKAGE_TARNAME “”
#define PACKAGE_VERSION “”

configure: exit 77–
H. E. Gilliland III

“Astronomy compels the soul to look upwards and leads us from this
world to another.”
? Plato