Hello.
I need some Instructions to get SDL, SDL_image, SDL_mixer and SDL_net
work under Windows, with some gcc-environment. But under both, Cygwin
and MSYS (mingw32) i have problems:
Under Cygwin:
I can install SDL correctly. My Programs run.
SDL_mixer seems to install correctly, but no sounds are Played.
SDL_image doesnt install, because it cannot find the png.h-file, if i
turn off jpeg and tiff-support. If i turn on jpeg-support, it doesnt
find the jpeg.h or something. Trying to change the include-Path in the
Makefile manually, i get strange Error-Messages like
$ make
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2
-I/usr/local/include/SDL -I/usr/include/mingw -mno-cygwin
-Dmain=SDL_main -o libSDL_image.la -rpath /usr/local/lib
-no-undefined -release 1.2 -version-info 1:4:1 IMG.lo IMG_bmp.lo
IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo
IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo IMG_xv.lo
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mno-cygwin -mwindows
rm -fr .libs/libSDL_image.dll.a
gcc -shared .libs/IMG.o .libs/IMG_bmp.o .libs/IMG_gif.o
.libs/IMG_jpg.o .libs/IMG_lbm.o .libs/IMG_pcx.o .libs/IMG_png.o
.libs/IMG_pnm.o .libs/IMG_tga.o .libs/IMG_tif.o .libs/IMG_xcf.o
.libs/IMG_xpm.o .libs/IMG_xv.o -L/usr/local/lib -lmingw32 -lSDLmain
/usr/local/lib/libSDL.dll.a -L/usr/lib -mno-cygwin -mno-cygwin
-mwindows -o .libs/SDL_image.dll -Wl,–enable-auto-image-base -Xlinker
–out-implib -Xlinker .libs/libSDL_image.dll.a
.libs/IMG_pnm.o: In function ReadNumber': /usr/include/mingw/ctype.h:158: undefined reference to
__imp___pctype_dll’
/usr/include/mingw/ctype.h:158: undefined reference to __imp____mb_cur_max_dll' /usr/include/mingw/ctype.h:153: undefined reference to
__imp___pctype_dll’
/usr/include/mingw/ctype.h:153: undefined reference to __imp____mb_cur_max_dll' .libs/IMG_xpm.o: In function
load_xpm’:
/usr/include/mingw/ctype.h:158: undefined reference to __imp____mb_cur_max_dll' /usr/include/mingw/ctype.h:158: undefined reference to
__imp___pctype_dll’
.libs/IMG_xpm.o: In function load_xpm': /home/christoph/sdl_image/SDL_image-1.2.5/IMG_xpm.c:397: undefined reference to
__imp____mb_cur_max_dll’
.libs/IMG_xpm.o: In function load_xpm': /usr/include/mingw/ctype.h:158: undefined reference to
__imp___pctype_dll’
/usr/include/mingw/ctype.h:158: undefined reference to __imp____mb_cur_max_dll' /usr/include/mingw/ctype.h:158: undefined reference to
__imp___pctype_dll’
/usr/include/mingw/ctype.h:158: undefined reference to __imp____mb_cur_max_dll' /usr/include/mingw/ctype.h:158: undefined reference to
__imp___pctype_dll’
/usr/include/mingw/ctype.h:158: undefined reference to `__imp____mb_cur_max_dll’
Creating library file: .libs/libSDL_image.dll.a
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Fehler 1
Under MSYS:
SDL seems to be installed correctly… SDL_mixer doesnt… Programs
compiled with SDL_mixer-use are crashing my System, but
install-instructions dont tell anything about MinGW32…
I compiled the JPEG-Library using ./configure; make; make test; make
install… (as the readme sayed). It ran correctly, and i thoght it
wold be installed correctly. But the SDL_image-Configure-Script didnt
find the jpeg-library.
I compiled zlib and installed it. But trying to compile pnglib, it
also tells me that zlib is not found. Using makefile.mingw doesnt
solve the problem. I get the same error-messages. Changing the Paths
manually seemed to make it compile, but trying to install it, the
makefile produced an endless loop repeatingly telling
make[5]: Entering directory /home/christoph/installers/LIBPNG/libpng-1.2.14' makefile:45: You haven't specified a 'prefix=' location. Defaulting to "/usr" make[5]: *** No rule to make target
check’. Stop.
make[5]: Leaving directory /home/christoph/installers/LIBPNG/libpng-1.2.14' make[5]: Entering directory
/home/christoph/installers/LIBPNG/libpng-1.2.14’
makefile:45: You haven’t specified a ‘prefix=’ location. Defaulting to "/usr"
install -m 644 ./png.h ./pngconf.h /usr/include/libpng12
./install: Installing: command not found
./install: On: command not found
(while the number - here 5 - is increasing… which tells me its an
endless loop).
I am sure I did something wrong, but I dont know, what. Under cygwin,
it should work in that way - nothing else is said.
Please help me.
Thanks a lot.