Problems compiling SDL with CYGWIN

Hello !

I have a problem compiling SDL and Helper Libs. with CYGWIN.
I am using the latest stable CYGWIN with all the latest stable
Packages.

./autogen.sh
./configure
make
make install

I had to use --enable-nasm=no.

SDL compiled without problems. The testprogramms
that came with SDL worked without any problems.
Then i compiled the other Helperlibs like SDL_image,
SDL_mixer etc.

Then i tried the showimage programm that came with SDL_mixer
with no parameters at the command line and it crashed
with the following error :

http://www.synolution.com/~wizard/tmp/Error_SDL.gif

Then i tried the playmus programm that came with SDL_mixer
with no parameters and get the same error.

PS: I normally had never any bigger problems compiling SDL.

Thanks.

CU

cx0000005 is a code that you get when trying to access invalid memory.

Look for a NULL pointer or invalid address somewhere. Try compiling
everything you’re using(SDL, SDL_image, SDL_mixer) with debugging
support(I use -ggdb3 for gcc). Then run the program in gdb (gdb
program.exe) and run it when you’re in gdb( (gdb) run ).

It should tell you where the invalid access is being made.

I compiled two versions of SDL, optimized and debug in separate
directories. I ran 'CFLAGS="-ggdb3" ’ ./configure for the debug version.
This allowed me to find where a crash was occuring in a threaded program
I was writing. The bug is still in the 1.2.6 version of the DLL that is
distributed online so I have to compile and use the latest from CVS that
has the fix in it.

~ Philip D.S. Thoren

Torsten Giebl wrote:>Hello !

I have a problem compiling SDL and Helper Libs. with CYGWIN.
I am using the latest stable CYGWIN with all the latest stable
Packages.

./autogen.sh
./configure
make
make install

I had to use --enable-nasm=no.

SDL compiled without problems. The testprogramms
that came with SDL worked without any problems.
Then i compiled the other Helperlibs like SDL_image,
SDL_mixer etc.

Then i tried the showimage programm that came with SDL_mixer
with no parameters at the command line and it crashed
with the following error :

http://www.synolution.com/~wizard/tmp/Error_SDL.gif

Then i tried the playmus programm that came with SDL_mixer
with no parameters and get the same error.

PS: I normally had never any bigger problems compiling SDL.

Thanks.

CU


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

E3-I: This message has been scanned for viruses and dangerous content by UML’s antivirus scanning services.

Hello !

First thanks for your mail. The problem is that it is not a problem
with my code :slight_smile:

I tried to execute playmus and showimage from the SDL
Helper Libs. and both times get exactly the same error.
When i replace my compiled SDL*.dll s with the ones from
the libsdl.org site the programms run without any problem.

When compiling SDL and add. libs i always use the latest CVS versions.

I will try it with gdb.

CU

Hello !

First thanks for your mail. The problem is that it is not a problem
with my code :slight_smile:

I tried to execute playmus and showimage from the SDL
Helper Libs. and both times get exactly the same error.
When i replace my compiled SDL*.dll s with the ones from
the libsdl.org site the programms run without any problem.

Apparently SDL’s libtool support and the latest MinGW are not compatible,
and result in the error you’re seeing. Somebody sent me a workaround, and
I’m going to check it out when I get a chance.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hello !

Apparently SDL’s libtool support and the latest MinGW are not compatible,
and result in the error you’re seeing. Somebody sent me a workaround, and
I’m going to check it out when I get a chance.

Cool. Then it is not a problem of
my computer or the Win Installation :slight_smile:

CU