SDL and OpenGL on Linux ( Mandrake )

Hi All,
I am trying to test some SDL/OpenGL examples I have converted over to
Linux using JEDI-SDL and I am getting an error message about the
executable not being able to find GLX.
I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so
that these libraries can be found or loaded? Also is
/usr/X11R6/lib/modules the right place to put them?

I am extremely new to Linux so please point me in the right direction.

Thanks in advance.

Dominique
http://www.DelphiGamer.com

Make sure your XFree has loaded the GLX module during the X-loading.
I think Mandrake does not load it by default. If you are Using Xfree4.x go
to /etc/X11/XF86Config-4 and add
Load “glx” under the Module Section.
You must have drivers that support GLX though.On Sun, 22 Jul 2001, Dominique Louis wrote:

Hi All,
I am trying to test some SDL/OpenGL examples I have converted over to
Linux using JEDI-SDL and I am getting an error message about the
executable not being able to find GLX.
I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so
that these libraries can be found or loaded? Also is
/usr/X11R6/lib/modules the right place to put them?

I am extremely new to Linux so please point me in the right direction.

Thanks in advance.

Dominique
http://www.DelphiGamer.com

Hi ,
Thanks for your quick response.
What drivers would I need? Doesn’t OpenGL under Linux support Software
rendering? or is it an SDL problem? I have an ATI Mobility M4 Video card
on my Laptop. If I were to need drivers for such a card where would I
get them.

Thanks

Dominique

http://www.DelphiGamer.com

Vasileiou Nikolaos wrote:> Make sure your XFree has loaded the GLX module during the X-loading.

I think Mandrake does not load it by default. If you are Using Xfree4.x go
to /etc/X11/XF86Config-4 and add
Load “glx” under the Module Section.
You must have drivers that support GLX though.

On Sun, 22 Jul 2001, Dominique Louis wrote:

Hi All,
I am trying to test some SDL/OpenGL examples I have converted over to
Linux using JEDI-SDL and I am getting an error message about the
executable not being able to find GLX.
I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so
that these libraries can be found or loaded? Also is
/usr/X11R6/lib/modules the right place to put them?

I am extremely new to Linux so please point me in the right direction.

Thanks in advance.

Dominique
http://www.DelphiGamer.com

You have to edit /etc/ld.so.conf as root and add the path as root to the
libraries. Then also as root, run /sbin/ldconfig.On 2001.07.22 10:13 Dominique Louis wrote:

Hi All,
I am trying to test some SDL/OpenGL examples I have converted over to
Linux using JEDI-SDL and I am getting an error message about the
executable not being able to find GLX.
I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so
that these libraries can be found or loaded? Also is
/usr/X11R6/lib/modules the right place to put them?

I am extremely new to Linux so please point me in the right direction.

Thanks in advance.

Dominique
http://www.DelphiGamer.com

I think Xfree4.x come with a software renderer of MEsa (although I am not
sure) but do not expect to see good 3d performance with those
drivers… since they do not compare with a software renderer like
e.g. Quake2 or Unreal, since software opengl rendering simulates the
visual quality of a hardware accelerated opengl with alot of performance
loss.

www.mesa3d.org has a software implementation of mesa so you might want to
check it out.
I do not know if your graphics card has accelerated opengl under
linux… sorry.On Sun, 22 Jul 2001, Dominique Louis wrote:

Hi ,
Thanks for your quick response.
What drivers would I need? Doesn’t OpenGL under Linux support Software
rendering? or is it an SDL problem? I have an ATI Mobility M4 Video card
on my Laptop. If I were to need drivers for such a card where would I
get them.

Thanks

Dominique

http://www.DelphiGamer.com

Vasileiou Nikolaos wrote:

Make sure your XFree has loaded the GLX module during the X-loading.
I think Mandrake does not load it by default. If you are Using Xfree4.x go
to /etc/X11/XF86Config-4 and add
Load “glx” under the Module Section.
You must have drivers that support GLX though.

On Sun, 22 Jul 2001, Dominique Louis wrote:

Hi All,
I am trying to test some SDL/OpenGL examples I have converted over to
Linux using JEDI-SDL and I am getting an error message about the
executable not being able to find GLX.
I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so
that these libraries can be found or loaded? Also is
/usr/X11R6/lib/modules the right place to put them?

I am extremely new to Linux so please point me in the right direction.

Thanks in advance.

Dominique
http://www.DelphiGamer.com

Thanks for your quick response.
What drivers would I need? Doesn’t OpenGL under Linux support Software
rendering? or is it an SDL problem? I have an ATI Mobility M4 Video card
on my Laptop. If I were to need drivers for such a card where would I
get them.

For first you should try to run “glxinfo” and see if it looks ok. For
hardware accelerated rendering you should check
http://dri.sourceforge.net/ for latest drivers and documentation. You may
also check if ATI supports Linux officially…

Make sure your XFree has loaded the GLX module during the X-loading.

I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so

As mentioned earlier you need to ‘Load “glx”’ in your Module section in
XF86Config-4 for GLX support and in addition ‘Load “dri”’ for hardware
acceleration. If your chipset is supported and that card can support AGP
you should also load agp driver with “modprobe agpgart”.

  • Mikko

PS. I attached some output of glxinfo from my box:

$ glxinfo
name of display: :0.0
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: VA Linux Systems Inc.
OpenGL renderer string: Mesa DRI G400 20010321 AGP 4x x86/MMX/3DNow!
OpenGL version string: 1.2 Mesa 3.4.2
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_EXT_abgr,
GL_EXT_blend_func_separate, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_histogram, GL_EXT_packed_pixels,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_stencil_wrap,
GL_EXT_texture3D, GL_EXT_texture_env_add, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_MESA_window_pos, GL_MESA_resize_buffers,
GL_NV_texgen_reflection, GL_PGI_misc_hints, GL_SGIS_pixel_texture,
GL_SGIS_texture_edge_clamp
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

When you have hardware acceleration working you should see "DRI"
somewhere in renderer string above.On Sun, 22 Jul 2001, Dominique Louis wrote:

Thanks Mikko,
I will have a look at the dri page for drivers for my ATI Mobility M4

L8R,

Dominique
http://www.DelphiGamer.com

Mikko Rantalainen wrote:> On Sun, 22 Jul 2001, Dominique Louis wrote:

Thanks for your quick response.
What drivers would I need? Doesn’t OpenGL under Linux support Software
rendering? or is it an SDL problem? I have an ATI Mobility M4 Video card
on my Laptop. If I were to need drivers for such a card where would I
get them.

For first you should try to run “glxinfo” and see if it looks ok. For
hardware accelerated rendering you should check
http://dri.sourceforge.net/ for latest drivers and documentation. You may
also check if ATI supports Linux officially…

Make sure your XFree has loaded the GLX module during the X-loading.

I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so

As mentioned earlier you need to ‘Load “glx”’ in your Module section in
XF86Config-4 for GLX support and in addition ‘Load “dri”’ for hardware
acceleration. If your chipset is supported and that card can support AGP
you should also load agp driver with “modprobe agpgart”.

  • Mikko

PS. I attached some output of glxinfo from my box:

$ glxinfo
name of display: :0.0
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: VA Linux Systems Inc.
OpenGL renderer string: Mesa DRI G400 20010321 AGP 4x x86/MMX/3DNow!
OpenGL version string: 1.2 Mesa 3.4.2
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_transpose_matrix, GL_EXT_abgr,
GL_EXT_blend_func_separate, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_histogram, GL_EXT_packed_pixels,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_stencil_wrap,
GL_EXT_texture3D, GL_EXT_texture_env_add, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_MESA_window_pos, GL_MESA_resize_buffers,
GL_NV_texgen_reflection, GL_PGI_misc_hints, GL_SGIS_pixel_texture,
GL_SGIS_texture_edge_clamp
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

When you have hardware acceleration working you should see “DRI”
somewhere in renderer string above.

Thanks it now works!!! The first 4 OpenGL demos ( the Nehe ones ) work
great but the 5 one ( OpenGL6 ) runs like a very lame and slow slough on
Linux but on Windows it runs fine.
Any ideas? I am using the SDL_GetTicks to try and get the rotations in
the 6th demo working uniformly on both platforms.
I have an ATI Mobility M4 on my laptop. Does anyone know if there are
Linux accelerated drivers for them?

Vasileiou Nikolaos wrote:> Make sure your XFree has loaded the GLX module during the X-loading.

I think Mandrake does not load it by default. If you are Using Xfree4.x go
to /etc/X11/XF86Config-4 and add
Load “glx” under the Module Section.
You must have drivers that support GLX though.

On Sun, 22 Jul 2001, Dominique Louis wrote:

Hi All,
I am trying to test some SDL/OpenGL examples I have converted over to
Linux using JEDI-SDL and I am getting an error message about the
executable not being able to find GLX.
I have copied GLX.so and libGL.so to /usr/X11R6/lib/modules/ but it
still does not pick GLX up. What config files do I need to change so
that these libraries can be found or loaded? Also is
/usr/X11R6/lib/modules the right place to put them?

I am extremely new to Linux so please point me in the right direction.

Thanks in advance.

Dominique
http://www.DelphiGamer.com