Cross compiled OpenGL apps crash on startup

I cross compile with mingw from linux to win32.

With SDL version 1.2.4 it works fine.

Since SDL 1.2.6, OpenGL applications fail.
(They crash with a segmentation fault/SDL parachute on startup)

My test case is the testgl in the test directory.
(The other test programs work)

failed SDL versions: 1.2.6, 1.2.7 (I did not test 1.2.5 - AFAIR)
I tried my own cross compiled version
(and out of curiosity the 1.2.7 win32 .dll from the sdl hp)
Btw. I can’t find the web-pages related to cross compilation on
libsdl.org anymore.

I don’t know much about the win32 linking dll/declspec/…
my main platform is linux and I am just happy if I get my stuff
compiled for win32.

A strange effect:
My cross-compiled OpenGL apps running under wine:
SDL 1.2.4: program runs - but displays nothing
SDL 1.2.6/7: program runs just fine
(=> it works with wine but not with win32)

mingw version:
i586-mingw32msvc-gcc (GCC) 3.3.1 (mingw special 20030804-1)

this is a slightly modified version of the debian mingw package
mingw32 3.3.1.20030804.1-1
mingw32-binutils 2.14.90.20030807.1-1
mingw32-runtime 3.2-1

Any help?
Does it only happen to me?

Thanks
karme

With SDL version 1.2.4 it works fine.

Since SDL 1.2.6, OpenGL applications fail.
(They crash with a segmentation fault/SDL parachute on startup)

My test case is the testgl in the test directory.

Have you tried on several PCs? It might be a driver-related problem. My
SDL 1.2.6 game crashes like that during the SDL_SetVideoMode() call
with the drivers that were supplied with my Radeon 9200 SE. It works
fine after updating the drivers.On 17/04/2004, Jens Thiele, you wrote:


Please remove “.ARGL.invalid” from my email when replying.
Incoming HTML mails are automatically deleted.

I already posted this message via gmane news but it was not yet accepted.

I cross compile with mingw from linux to win32.

With SDL version 1.2.4 it works fine.

Since SDL 1.2.6, OpenGL applications fail.
(They crash with a segmentation fault/SDL parachute on startup)

My test case is the testgl in the test directory.
(The other test programs work)

failed SDL versions: 1.2.6, 1.2.7 (I did not test 1.2.5 - AFAIR)
I tried my own cross compiled version
(and out of curiosity the 1.2.7 win32 .dll from the sdl hp)
Btw. I can’t find the web-pages related to cross compilation on
libsdl.org anymore.

I don’t know much about the win32 linking dll/declspec/…
my main platform is linux and I am just happy if I get my stuff
compiled for win32.

I tried to debug it:
the gl pointers are initialized with wrong values
this->gl_data->wglCreateContext is wrong
and the other wgl…, too
this happens in video/wincommon/win_gl.c

i backed out the changes to
wingl_c.h
wingl.c
(i am using 1.2.4 versions of them)
and it works again

I think this is because mingw uses an opengl wrapper
and the dynamic symbol lookup fails

Have you tried on several PCs? It might be a driver-related problem. My
SDL 1.2.6 game crashes like that during the SDL_SetVideoMode() call
with the drivers that were supplied with my Radeon 9200 SE. It works
fine after updating the drivers.
i only tested this on my pc win98 with some nvidia drivers
(not up to date)
if i have got the time i will try newer drivers
but i don’t think this is the problem

i could try a native build version of SDL and testgl first
is there a build for win32 including the compiled test programs?

Have you tried on several PCs? It might be a driver-related problem. My
SDL 1.2.6 game crashes like that during the SDL_SetVideoMode() call
with the drivers that were supplied with my Radeon 9200 SE. It works
fine after updating the drivers.
did you cross-compile SDL/testgl ?