Hi !
I’m trying to use SDL_image lib (ver 1.2.1) with cygwin.
The first problem I encountered while compiling was that the following
headers could’t be found, although associated packages were installed:
jpeglib.h
jconfig.h
jmorecfg.h
png.h
zlib.h
pngconf.h
zconf.h
I solved this by ‘ln’-ing above files into /usr/include/mingw
from /usr/include
The corrrect solution is probably to add appropriate flags somewhere in
the make file, but that is currently beyound my skills.
After that everything compiled correctly except that I got the
following warning message:
*** Warning: This library needs some functionality provided by -lmingw32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: This library needs some functionality provided by -lmingw32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
Which is a bit strange as SDL compiled without any complaints, and as
far as I can see SDL also uses mingw32 in a simular way.
Anyway, then I compiled showimage.c with
gcc -o si showimage.c sdl-config --cflags
sdl-config --libs
-lmingw32
-lSDL_image
which compiled without any error/warning but crashes if I try to launch
the resulted binary. Here’s what gdb had to say about that:
Program received signal SIGSEGV, Segmentation fault.
0x61060692 in _libwinmm_a_iname ()
I also tried to compile my own dummy program and it crashes too when I
make a call to IMG_Load()
Does Anyone understand what is going on ? What am I doing wrong ?
T.I.A.
Boris J