LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-28-2010, 05:21 AM   #16
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115

I can start x (after I installed the drivers from the nvidia website), I just can't run opengl applications. I'm not sure what put stuff in /usr/local, the only things I did were install the nvidia stuff from slackbuilds however after removing all those packages, the command above is still giving the same output.
Here is the ls listing. Unfortunately the date doesn't help as I've been trying quite a lot over the past few days to get it working!

Code:
$ pwd
/usr/local/lib

$ ls -l lib*GL*
lrwxrwxrwx 1 root root      11 Nov 26 16:57 libEGL.so -> libEGL.so.1
lrwxrwxrwx 1 root root      13 Nov 26 16:57 libEGL.so.1 -> libEGL.so.1.0
-rwxr-xr-x 1 root root  292088 Nov 26 16:57 libEGL.so.1.0
lrwxrwxrwx 1 root root      10 Nov 26 16:57 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root      12 Nov 26 16:57 libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 1922339 Nov 26 16:57 libGL.so.1.2
lrwxrwxrwx 1 root root      11 Nov 26 16:57 libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root      20 Nov 26 16:57 libGLU.so.1 -> libGLU.so.1.3.070900
-rwxr-xr-x 1 root root 1700114 Nov 26 16:57 libGLU.so.1.3.070900
lrwxrwxrwx 1 root root      11 Nov 26 16:57 libGLw.so -> libGLw.so.1
lrwxrwxrwx 1 root root      15 Nov 26 16:57 libGLw.so.1 -> libGLw.so.1.0.0
-rwxr-xr-x 1 root root   39529 Nov 26 16:57 libGLw.so.1.0.0
Here is what I get when I try to run glxgears or glxinfo:

Code:
$ glxgears
Error: couldn't get an RGB, Double-buffered visual
$ glxinfo
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig
Tried as root also but that didn't help.
 
Old 11-28-2010, 05:30 AM   #17
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
try to add
Quote:
Section "DRI"
Group 0
Mode 0666
EndSection
to xorg.conf

Kind regards
 
Old 11-28-2010, 05:54 AM   #18
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
Having removed all the packages and re-installed nvidia driver, freeglut and mesa, it seems that glxgears in no longer installed!?
find / -name "glxgears" returns nothing. Same for glxinfo.

When I try to run an openGL app that I wrote a while back, I get the following:

Code:
freeglut (./wave3d):  ERROR:  Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  24
  Current serial number in output stream:  27
 
Old 11-28-2010, 06:02 AM   #19
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
I added the DRI section to xorg.conf and that hasn't helped unfortunately. I've also moved all GL related files out of /usr/local/lib so it can't be using those now.

I am very confused though as to why glxgears and glxinfo would just disappear from un-installing the nvidia drivers and glut. I thought they were part of X??
 
Old 11-28-2010, 06:11 AM   #20
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
AFAIK they are part of the mesa package

Kind regards
 
Old 11-28-2010, 06:15 AM   #21
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
As stated before, there should not be any entries in /usr/local/lib.
What is the output of "grep -l 'libGL.so' /var/log/packages/*"?
 
Old 11-28-2010, 06:36 AM   #22
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
Code:
 $ grep -l 'libGL.so' /var/log/packages/*
/var/log/packages/blender-2.49a-i386-1_SBo
I had blender installed well before I started having these problems though.

I've re-installed the latest mesalib and mesaglut but still get this error:

Code:
GLUT: Fatal Error in my_program_name_here: visual with necessary capabilities not found.
And glxinfo/gears still not found.
 
Old 11-28-2010, 06:36 AM   #23
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
^ should mention, I build and installed all the mesa stuff from source, direct from the mesa website.
 
Old 11-28-2010, 07:00 AM   #24
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
^ should mention, I build and installed all the mesa stuff from source, direct from the mesa website.
Which might explain why you have a libGL.so.2 file that I do not have, and why there is no '/var/log/packages/mesa-7.9-i486-2'in the output of "grep -l 'libGL.so' /var/log/packages/*".
Perhaps you should try the stock Slackware mesa build, or else adapt the Slackbuild script to your requirements.
Once you go off the Slackware tree, I get out of my depth with helping you.
 
Old 11-28-2010, 07:11 AM   #25
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
I couldn't find mesa on slackbuilds, hence why I installed it from source. Where can I download a slackbuild for it?
 
Old 11-28-2010, 07:19 AM   #26
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
There is already a mesa package in Slackware in the /slackware/x directory. The Slackbuild script is in the /source/x/mesa directory.
Check your install media or favourite mirror.
 
Old 11-28-2010, 07:38 AM   #27
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
Sorry, in the meantime I found a slackbuild elsewhere and installed from that:

Code:
$ ls /var/log/packages/ | grep mesa
mesa-7.8.1-i486-1
This has given me back glxinfo and glxgears but now back to square one:

Code:
$ glxinfo
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig

$ glxgears
Error: couldn't get an RGB, Double-buffered visual
 
Old 11-28-2010, 07:55 AM   #28
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Original Poster
Rep: Reputation: 115Reputation: 115
Think I may have eventually sorted this!! I deleted everything "GL/gl" related out of /usr/local/lib, then installed mesa from the package and then re-installed the NVIDIA drivers from the website. Now I can run both glxinfo and glxgears.
Performance isn't great still, but then again neither is the graphics card. I'm not playing high-end games, I just want it for basic opengl programming.

Code:
 $ glxinfo | grep ren
direct rendering: Yes
OpenGL renderer string: GeForce 7300 SE/7200 GS/PCI/SSE2
    GL_NVX_conditional_render, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,
Code:
$ ldd /usr/bin/glxinfo 
        linux-gate.so.1 =>  (0xffffe000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0xb76b4000)
        libm.so.6 => /lib/libm.so.6 (0xb768e000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7572000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7559000)
        libc.so.6 => /lib/libc.so.6 (0xb73f6000)
        libnvidia-tls.so.260.19.21 => /usr/lib/tls/libnvidia-tls.so.260.19.21 (0xb73f4000)
        libnvidia-glcore.so.260.19.21 => /usr/lib/libnvidia-glcore.so.260.19.21 (0xb5d43000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb5d35000)
        libdl.so.2 => /lib/libdl.so.2 (0xb5d31000)
        /lib/ld-linux.so.2 (0xb77a7000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb5d18000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb5d15000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5d10000)

Code:
 $ glxgears
1111 frames in 5.0 seconds = 222.118 FPS
372 frames in 5.0 seconds = 74.374 FPS
373 frames in 5.0 seconds = 74.480 FPS
372 frames in 5.0 seconds = 74.386 FPS
372 frames in 5.0 seconds = 74.330 FPS
373 frames in 5.0 seconds = 74.490 FPS
372 frames in 5.0 seconds = 74.359 FPS
Thanks for all your help - it is certainly greatly appreciated.

One thing though, how can I be certain -current updates don't break this in the future? I assume it's one of the x server updates that has done it but I don't really want to have to be re-installing the drivers every time there is a new package on current!

Last edited by devnull10; 11-28-2010 at 07:58 AM.
 
Old 11-28-2010, 08:13 AM   #29
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
As you are running -current, I suggest that you update your mesa package to mesa 7.9 from the -current tree.
If there is an upgrade of X in -current, or a kernel update, then you need to reinstall the nVidia proprietary driver.
Other updates should not affect this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fonts Issue after Current Update on 20101114 Jack128 Slackware 9 02-11-2011 10:20 AM
[SOLVED] wine opengl issue with neverwinter nights 2 on slackware 64 vik Slackware 8 09-10-2009 04:43 AM
direct rendering issue on slackware shingo013 Linux - Newbie 2 09-12-2008 10:57 AM
slackpkg update = slackware-current? trashbird1240 Slackware 2 04-24-2007 09:50 AM
Slackware current i810 direct rendering securitybreach Slackware 4 05-03-2005 10:09 PM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration