PDA

View Full Version : "No OpenGL support on this system"



nokturn
12-14-2003, 08:07 AM
Hi,
I've installed SDL and the examples in ../test work fine, except OpenGl. I can compile the testgl.c well, but when I try to execute it I get the error: "No OpenGL support on this system". My graphic card is a nVidia GeForce 4 MX 420 and I am using debian\sid.
I've tried everything, installed the mesa libs, glut, nvidia-glx but nothing works.

I would appreciate if someone posted an answer

pkaler
12-14-2003, 10:56 AM
What does glxinfo say?

nukem
12-14-2003, 11:42 AM
Make sure you install the nvidia drivers with the nvidia installer found at there web page. You also may need to do opengl-update nvidia to set opengl to the nvidia drivers.

nokturn
12-15-2003, 06:59 AM
First I would like to thank you for the quick answers.

houston:/home/nokturn/SDL-1.2.6/test# glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 5.0.2
server glx extensions:
GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
GLX_MESA_release_buffers, GLX_ARB_get_proc_address, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer
client glx vendor string: Brian Paul
client glx version string: 1.4 Mesa 5.0.2
client glx extensions:
GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
GLX_MESA_release_buffers, GLX_ARB_get_proc_address, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer
GLX extensions:
GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
GLX_MESA_release_buffers, GLX_ARB_get_proc_address, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 1.4 Mesa 5.0.2
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,
GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_func_separate, GL_EXT_blend_logic_op, GL_EXT_blend_minmax,
GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_histogram,
GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_paletted_texture,
GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_specular_color,
GL_EXT_shadow_funcs, GL_EXT_shared_texture_palette,
GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_object, GL_EXT_texture_lod_bias,
GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
GL_HP_occlusion_test, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_resize_buffers, GL_MESA_ycbcr_texture,
GL_MESA_window_pos, GL_NV_blend_square, GL_NV_point_sprite,
GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
GL_SGIS_generate_mipmap, GL_SGIS_pixel_texture,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_pixel_texture,
GL_SGIX_shadow, GL_SGIX_shadow_ambient
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 None
0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x23 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x24 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x25 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x26 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x27 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x28 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None

I've installed the nvidia driver with
sh NVIDIAfoo.run --extract-only
cd nvidia-dir
make install
and once just with sh NVIDIAfoo.run
That's the newest driver from nvidia.com
How can I opengl-update my nvidia driver?

amendol
12-15-2003, 07:44 AM
Two things:

First thing:
looking at your glxinfo results, it seems tha t your system is using Mesa for OpenGL.

Did you update your XF86Config file in /etc/X11 ?

Your X server may still be pointing at the "nv" driver, instead of the "nvidia" driver.
(nv is the open source one without 3d accel)

Read the readme's under /usr/share/doc/NVIDIA_GLX-1.0/

There is also a sample XF86Config file.

If you have troubles setting up the config your best bet is to let google find a nice one for you http://www.opengl.org/discussion_boards/ubb/smile.gif

Second thing:
I'm not sure that I trust the SDL version of glxinfo, as I've never used it. It probably works and everything, but it may not be configured/compiled for your system...

could you also try /usr/X11R6/bin/glxinfo

nokturn
12-16-2003, 05:48 AM
Strange, I've looked into my /var/log/XFree86.0.log
and noticed this:

(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
dlopen: /lib/libGLcore.so.1: undefined symbol: glDepthBoundsEXT
(EE) Failed to load /usr/X11R6/lib/modules/extensions/libglx.so
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (loader failed, 135874371)

But I don't know what's wrong with the glx module

nokturn
12-16-2003, 05:49 AM
Oh, and yes, I've updated my xfree86 config file and read the readme, sry for the double post

blip
12-16-2003, 06:57 AM
I had a similar problem when upgrading nvidia drivers. Make sure that all of your GL shared object files are the correct ones and that the symbolic links point to the correct files in /usr/lib, /usr/X11R6/lib

example:

cd /usr
find . | grep libGL*

this will give a list of where all of your libGL files are. Now go and investigate and make sure that the links are correct. On my system (fedora core 1), my libGLcore.so.1 is symbolic linked to libGLcore.so.1.0.4620 which is the beta nvidia driver. Also my libGL.so.1 is symbolic linked to the libGL.so.1.0.4620. You can do a "man ln" to
learn how to make a symbolic link if you don't know how. If all else fails check out the nvnews forum
http://www.nvnews.net/vbulletin/forumdisplay.php?s=dcbb2b780006425dbf98afa28944f 2a8&forumid=14 (http://www.nvnews.net/vbulletin/forumdisplay.php?s=dcbb2b780006425dbf98afa28944f2a 8&forumid=14)

The problem I had was that some of the links pointed to the nvidia driver and some pointed to the original mesa driver. Which caused undefined references when loading the shared object.

[This message has been edited by blip (edited 12-16-2003).]

[This message has been edited by blip (edited 12-16-2003).]

nokturn
12-16-2003, 08:11 AM
I've installed the NVIDIA Beta Driver and now I don't get that error, only some warnings when starting X, but executiing testgl, I still get the same error (No OpenGL support on this systen). Even glxgears works. When you want my /var/log/XFree86.0.log say it please

amendol
12-16-2003, 08:15 AM
What frame rate do you get in glxgears?

If it's in the thousands, then your NVidia OpenGL driver is working fine. -- This means that there is something wrong with the SDL glxinfo.

also try the standard glxinfo...

Andrea_86
12-21-2003, 02:46 AM
Nokturn

this line of glxinfo

direct rendering: No

it means that the graphics acceleration is not active.
Active it.

[This message has been edited by Andrea_86 (edited 12-21-2003).]