OpenGL rendering issue since slackware -current update
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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
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??
^ 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.
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.
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.
$ 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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.