Skip to contentSkip to conversation

a trouble with OpenGL

DISCUSSION Adwin 5 participants 7 messages Sep 16, 2002

lore
Share & tools
lore

Adwin

author
#0 lore raw

hello.

I am using Mandrake 8.2 with KDE 3.02. Every time I run a qt program (even it
is a helloworld) from my console, it always display "Loading Required libGL.so.1.3.401" on console. The program run as usually.
I have been checked my /usr/X11R6/lib/ and I can found a libGL.so.1.3.401. I have been try to make a link (ln -s libGL.so.1.3.401 libGL.so), and it still doesn't work.

I have another problem, I tried to install NVIDIA graphic driver for Linux (driver for : RivaTNT2). The drivers (rpm) that I installed are :
1. NVIDIA_GLX-1.0-3123.i386.rpm (GLX)
2. NVIDIA_kernel-1.0-3123.mdk82up.i586.rpm ( kernel driver)
After I restart my X Server, now I completly cannot run any openGL application on Linux. It always said : " OpenGL not supported "

I checked on /usr/X11R6/lib again, and I found that all libGL* was renamed become xxx.libGL.so.1.2.RPMSAVE* xxx.libGL.so.1.3.401.RPMSAVE* xxx.libGL.so.x.RPMSAVE* xxx.libGL.so.1.0.RPMSAVE*

What should I do to make my system work well again (especially OpenGL)?

thxs
adwin

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#1 lore raw

a trouble with OpenGL (additional information)

addtional information :

I have just found in /usr/lib (not in /usr/X11R6/lib)

lrwxrwxrwx 1 root root 21 Sep 16 08:42 libGLcore.so.1 ->
libGLcore.so.1.0.3123*

-r-xr-xr-x    1 root     root      3623820 Aug 28 06:36 libGLcore.so.1.0.3123*
lrwxrwxrwx    1 root     root           10 Sep 16 08:42 libGL.so -> 

libGL.so.1*
lrwxrwxrwx 1 root root 17 Sep 16 08:42 libGL.so.1 ->
libGL.so.1.0.3123*
-r-xr-xr-x 1 root root 283444 Aug 28 06:36 libGL.so.1.0.3123*

can I remove those file into /usr/X11R6/lib ?

thanxs
adwin

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw

Re: a trouble with OpenGL (additional information)

Quoted 6 lines · Adwin

addtional information :

I have just found in /usr/lib (not in /usr/X11R6/lib)

lrwxrwxrwx 1 root root 21 Sep 16 08:42 libGLcore.so.1 ->
libGLcore.so.1.0.3123*

Quoted 8 lines
-r-xr-xr-x    1 root     root      3623820 Aug 28 06:36 libGLcore.so.1.0.3123*
lrwxrwxrwx    1 root     root           10 Sep 16 08:42 libGL.so ->

libGL.so.1*
lrwxrwxrwx 1 root root 17 Sep 16 08:42 libGL.so.1 ->
libGL.so.1.0.3123*
-r-xr-xr-x 1 root root 283444 Aug 28 06:36 libGL.so.1.0.3123*

can I remove those file into /usr/X11R6/lib ?

It is difficult to say for certain, but probably not. On my system (Debian Sid), the equivalent libraries are located in /usr/X11R6/lib/, but /usr/lib contains symlinks to them. This arrangement implies that some applications expect to find them in one place, others in the other. So your safer course is to put symlinks in /usr/X11R6/lib that point to the actual libraries ("man ln" if you need to learn how to do this).

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#3 lore raw

Re: a trouble with OpenGL (additional information)

Quoted 7 lines · Ray Olszewski

It is difficult to say for certain, but probably not. On my system (Debian Sid), the equivalent libraries are located in /usr/X11R6/lib/, but /usr/lib contains symlinks to them. This arrangement implies that some applications expect to find them in one place, others in the other. So your safer course is to put symlinks in /usr/X11R6/lib that point to the actual libraries ("man ln" if you need to learn how to do this).

I have already make a ln (ln -s /usr/X11R6/lib/liGLU.so libGLU.so) in /usr/lib.

when I try to compile / make a program, it compiled successfully. But, when I try to run the program it always error :

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Failed to Create Window : Couldn't find matching GLX visual

Must I re-install Mesa3D & uninstall NVIDIA driver that I have just installed ?

Signature · 8 lines
./me
adwin

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#4 lore raw

Re: a trouble with OpenGL (additional information)

Quoted 14 lines · Adwin
Quoted 6 lines · Ray Olszewski

It is difficult to say for certain, but probably not. On my system (Debian Sid), the equivalent libraries are located in /usr/X11R6/lib/, but /usr/lib contains symlinks to them. This arrangement implies that some applications expect to find them in one place, others in the other. So your safer course is to put symlinks in /usr/X11R6/lib that point to the actual libraries ("man ln" if you need to learn how to do this).

I have already make a ln (ln -s /usr/X11R6/lib/liGLU.so libGLU.so) in /usr/lib.

when I try to compile / make a program, it compiled successfully. But, when I try to run the program it always error :

Quoted 6 lines
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Failed to Create Window : Couldn't find matching GLX visual

Must I re-install Mesa3D & uninstall NVIDIA driver that I have just installed ?

I belive you need to read the documentation witch came with the NVIDIA driver, further more if you read and interpret the error message above it says, Xlibaray can't find the "GLX" extention module in your display enviroment.

In other words edit your XF86Config file as per the NVIDIA doc's. Under the "modules" section" you need;
# This loads the GLX module
Load "glx"

Signature · 9 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#5 lore raw

Re: a trouble with OpenGL (additional information)

In reply to Adwin
Quoted 12 lines · Adwin
Quoted 6 lines · Ray Olszewski

It is difficult to say for certain, but probably not. On my system (Debian Sid), the equivalent libraries are located in /usr/X11R6/lib/, but /usr/lib contains symlinks to them. This arrangement implies that some applications expect to find them in one place, others in the other. So your safer course is to put symlinks in /usr/X11R6/lib that point to the actual libraries ("man ln" if you need to learn how to do this).

I have already make a ln (ln -s /usr/X11R6/lib/liGLU.so libGLU.so) in /usr/lib.

Quoted 8 lines

when I try to compile / make a program, it compiled successfully. But, when I try to run the program it always error :

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Failed to Create Window : Couldn't find matching GLX visual

Must I re-install Mesa3D & uninstall NVIDIA driver that I have just installed ?

your probably running X using the old "nv" opensource driver, so the NVidia driver - although installed - is not being used. while in X open an xterm and type "lsmod" and see if "Used By" is greater than 0 for the NVidia module.

In your /etc/X11/XF86Config-4 file make sure in the device section that Driver is "nvidia".

Signature · 10 lines
Bryan Whitehead
SysAdmin - JPL - Interferometry Systems and Technology
Phone: 818 354 2903
[email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#6 lore raw

Re: a trouble with OpenGL (additional information)

In reply to Adwin

Oh what fun,
in addition to the information above please note that kernels compiled
with a GCC3.*.* and modules compiled with GCC2 (ie the nvidia driver) don't always co-exist happily (at least according to hedrat). On my machine just adding the /etc/modules.conf line is not enough to get the nvidia module to load, I have to insmod -f the thing - it does work happily once it's forced in though, the refusal to insert the module in the kernel may be a modutils issue so YMMV as always.

Tim

Quoted 31 lines · Adwin
Quoted 7 lines · Ray Olszewski

It is difficult to say for certain, but probably not. On my system (Debian Sid), the equivalent libraries are located in /usr/X11R6/lib/, but /usr/lib contains symlinks to them. This arrangement implies that some applications expect to find them in one place, others in the other. So your safer course is to put symlinks in /usr/X11R6/lib that point to the actual libraries ("man ln" if you need to learn how to do this).

I have already make a ln (ln -s /usr/X11R6/lib/liGLU.so libGLU.so) in /usr/lib.

when I try to compile / make a program, it compiled successfully. But, when I try to run the program it always error :

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Failed to Create Window : Couldn't find matching GLX visual

Must I re-install Mesa3D & uninstall NVIDIA driver that I have just installed ?

Signature · 8 lines
./me
adwin

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Signature · 10 lines
-----------------------------
Tim Kay
Systems programmer
Queen Mary University of London

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs