SDL1.1.3 runtime (maybe opengl) problem

Hello!

I upgraded to Linux SDL 1.1.3 from an older version (that came with SuSE 6.3)
and have a problem. SDL won’t choose the correct screenmode, but always
800x600. I have 800x600, 640x480 and 320x240 configured in my X-Server.
This wasn’t a problem with the SDL I had previously installed!
When pressing a key in fullscreen mode, the associated program (XMMS plugin
for example) will crash/exit and then my mousepointer freezes in the middle of
the screen, so that I need to restart the X-Server (svga).

Another problem occurs, when I compile the “testgl” in the test directory, all
other tests work fine. When compiling testgl I get those messages:

gcc -g -O2 -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT -DHAVE_OPENGL -o testgl testgl.o -L/usr/X11R6/lib -lGL -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread
testgl.o: In function RunGLTest': /root/xmms_archives/SDL-1.1.3/test/testgl.c:100: undefined reference toglGetString’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:101: undefined reference to glGetString' /root/xmms_archives/SDL-1.1.3/test/testgl.c:102: undefined reference toglGetString’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:103: undefined reference to glGetString' /root/xmms_archives/SDL-1.1.3/test/testgl.c:120: undefined reference toglViewport’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:121: undefined reference to glMatrixMode' /root/xmms_archives/SDL-1.1.3/test/testgl.c:122: undefined reference toglLoadIdentity’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:124: undefined reference to glOrtho' /root/xmms_archives/SDL-1.1.3/test/testgl.c:126: undefined reference toglMatrixMode’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:127: undefined reference to glLoadIdentity' /root/xmms_archives/SDL-1.1.3/test/testgl.c:129: undefined reference toglEnable’
… and so on

Is it maybe a problem with my OpenGL version?
Compiling & installing the SDL 1.1.3 package works fine, thats the strange
thing! I have a Matrox G100 Productiva and an Voodoo2 Accelerator and with the
older SDL (on the SuSE CD’s) everything worked fine…

thanks & greetings
Ralph

Hello!

I upgraded to Linux SDL 1.1.3 from an older version (that came with SuSE 6.3)
and have a problem. SDL won’t choose the correct screenmode, but always
800x600. I have 800x600, 640x480 and 320x240 configured in my X-Server.

Have you tried the latest CVS version:
http://www.libsdl.org/cvs.html

This wasn’t a problem with the SDL I had previously installed!

What version was previously installed?

Is it possible for me to log in and debug the mode detection code?

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

The troubles with the undefined references appear that it can’t find the
gl libraries. I would check to see if the GL library is in an appropriate
directory (in /etc/ld.so.conf or LD_LIBRRAY_PATH).
Hope this helps :slight_smile:
Sam ReynoldsOn Thu, 27 Jul 2000, Ralph wrote:

Hello!

I upgraded to Linux SDL 1.1.3 from an older version (that came with SuSE 6.3)
and have a problem. SDL won’t choose the correct screenmode, but always
800x600. I have 800x600, 640x480 and 320x240 configured in my X-Server.
This wasn’t a problem with the SDL I had previously installed!
When pressing a key in fullscreen mode, the associated program (XMMS plugin
for example) will crash/exit and then my mousepointer freezes in the middle of
the screen, so that I need to restart the X-Server (svga).

Another problem occurs, when I compile the “testgl” in the test directory, all
other tests work fine. When compiling testgl I get those messages:

gcc -g -O2 -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT -DHAVE_OPENGL -o testgl testgl.o -L/usr/X11R6/lib -lGL -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread
testgl.o: In function RunGLTest': /root/xmms_archives/SDL-1.1.3/test/testgl.c:100: undefined reference toglGetString’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:101: undefined reference to glGetString' /root/xmms_archives/SDL-1.1.3/test/testgl.c:102: undefined reference toglGetString’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:103: undefined reference to glGetString' /root/xmms_archives/SDL-1.1.3/test/testgl.c:120: undefined reference toglViewport’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:121: undefined reference to glMatrixMode' /root/xmms_archives/SDL-1.1.3/test/testgl.c:122: undefined reference toglLoadIdentity’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:124: undefined reference to glOrtho' /root/xmms_archives/SDL-1.1.3/test/testgl.c:126: undefined reference toglMatrixMode’
/root/xmms_archives/SDL-1.1.3/test/testgl.c:127: undefined reference to glLoadIdentity' /root/xmms_archives/SDL-1.1.3/test/testgl.c:129: undefined reference toglEnable’
… and so on

Is it maybe a problem with my OpenGL version?
Compiling & installing the SDL 1.1.3 package works fine, thats the strange
thing! I have a Matrox G100 Productiva and an Voodoo2 Accelerator and with the
older SDL (on the SuSE CD’s) everything worked fine…

thanks & greetings
Ralph

-----BEGIN PGP SIGNED MESSAGE-----

Hello!

I upgraded to Linux SDL 1.1.3 from an older version (that came with SuSE 6.3)
and have a problem. SDL won’t choose the correct screenmode, but always
800x600. I have 800x600, 640x480 and 320x240 configured in my X-Server.

Have you tried the latest CVS version:
http://www.libsdl.org/cvs.html

Yes! It works in windowmode (xmms plugin Infinity0.2) and in fullscreenmode,
after pressing a key, my system freezed badly still showing the last frame of
the plugins output… no way to reset, not even with a jslaunch script

This wasn’t a problem with the SDL I had previously installed!

What version was previously installed?

0.9.9-43 (released 1998) from the SuSE 6.3 release.
It’s just the compiled lib (165kb), no source code.

Is it possible for me to log in and debug the mode detection code?

Not yet, but i’m working on this as i’m every sunday online the whole day.
I’ll tell you when it’s possible and the problems still occur.

thx & greetings,
Ralph

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQEVAwUBOYi+GaJe2JuJSLhxAQGK8gf/So0L5cZZiLBSR4cz+W55xhr0QyRoVhCn
XIitrlIdU1yAxBcn7RAU6qEI50HCdB/WCoCyHe1bl3lPLEx3hK2P5uIPLRTAwMTf
3MPHb65Ddegaca9/Yfv2wB3efC/KOb7qQBexJ1HdPTUDlMfVv/RUELZq2DLNXym1
CmvQHABZaDckWaGL3Hslbi13ep0AkMBoaGtREUW+kxvxfkAtMF7v4A0h8JbKH9Ib
o7FkO8h/k8JdIP7FHu0pNBiCHEF0qh84GD9UDp4nJuCPrFRjYjBfhO3yCKGHVtiV
stqkAUnCszxTRLrO1+wZDO9494mLTMDuXPZRmy+iOo2V/IBIae5Fog==
=V8gi
-----END PGP SIGNATURE-----On Tue, 01 Aug 2000, you wrote: