LinuxQuestions.org
Review your favorite Linux distribution.
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 05-01-2017, 09:16 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Rep: Reputation: 177Reputation: 177
FreeCAD - The system does not support OpenGL


I've just built FreeCAD using sbopkg. It appeared to build successfully, but when I run it I get the message "This system does not support OpenGL". When I initially built FreeCAD back in January, it worked. After re-building, it does not. OpenGL is an open graphics library. Does anyone have an idea why OPenGL would suddenly not be supported?
 
Old 05-01-2017, 09:31 AM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
What gpu do you have? What video driver? What version of Slackware?

If you are using a free video driver included with mesa please print the output of this command.

Code:
glxinfo | grep Core
 
Old 05-01-2017, 10:48 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
video Card (from lspci):
Code:
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5  230 OEM]
Slackware64 14.2, CPU: i7-6850K CPU @ 3.60GHz (Xeon), 65G memory.
Code:
$ glxinfo
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
 
Old 05-01-2017, 11:20 AM   #4
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
Looks like the radeon driver is not loaded. I have a radeon with 14.2, and checked modules with this:
Code:
# lspci -k | grep -A3 VGA

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos PRO [Radeon HD 7450]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Caicos PRO [Radeon HD 7450]
	Kernel driver in use: radeon
	Kernel modules: radeon
HTH
 
Old 05-01-2017, 04:24 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
Maybe that's not it. When I run the same lspci commmand as you I get:
Code:
# lspci -k | grep -A3 VGA
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
        Subsystem: XFX Pine Group Inc. Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
        Kernel driver in use: radeon
        Kernel modules: radeon
 
Old 05-01-2017, 05:57 PM   #6
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
Did you compile all the dependencies? I just looked at the Slackbuild because you're not offering any details at all as to what else you may have tried, if anything. I must quit assuming, sorry it didn't help. Good luck.
 
Old 05-01-2017, 06:31 PM   #7
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by mfoley View Post
I've just built FreeCAD using sbopkg. It appeared to build successfully, but when I run it I get the message "This system does not support OpenGL". When I initially built FreeCAD back in January, it worked. After re-building, it does not. OpenGL is an open graphics library. Does anyone have an idea why OPenGL would suddenly not be supported?
It's supported. Your system is broken, as you should have figured out when the glxinfo command failed to return any information.
 
Old 05-01-2017, 09:06 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Do you have an xorg.conf file or any overrides in /etc/X11/xorg.conf.d/?

Do you have any errors in your /var/log/Xorg.0.log?
 
Old 05-02-2017, 11:05 PM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by EYo View Post
Did you compile all the dependencies? I just looked at the Slackbuild because you're not offering any details at all as to what else you may have tried, if anything. I must quit assuming, sorry it didn't help. Good luck.
I built FreeCAD using sbopkg and selecting the Queue. I created the queue using `sqg -p FreeCAD` which creates the dependency queue. If a dependency is missing or not able to be built, sbopkg will stop and ask if you want to continue, retry or abort. I had no such problems and the final sbopkg output said "SUCCESS".
Quote:
Originally Posted by Richard Cranium View Post
It's supported. Your system is broken, as you should have figured out when the glxinfo command failed to return any information.
Sorry, but glxinfo is pretty meaningless to me and it is not obvious to me from the glxinfo output that my "system is broken". In what way is it broken? Do you have an idea? Is there something I need to [re]install? the KDE desktop and all other tools including image viewers, LibreOffice ... work fine.
Quote:
Originally Posted by bassmadrigal View Post
Do you have an xorg.conf file or any overrides in /etc/X11/xorg.conf.d/?

Do you have any errors in your /var/log/Xorg.0.log?
This is a new scratch build. There are no customizations I've done. There is nothing in /etc/X11/xorg.conf.d. The following are errors I found in Xorg.0.log:
Code:
$ grep -i error /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    12.514] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/r600_dri.so failed (libedit.so.0: cannot open shared object file: No such file or directory)
[    12.515] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/swrast_dri.so failed (libedit.so.0: cannot open shared object file: No such file or directory)
Code:
$ egrep '\((EE|WW|NI)\)' /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    12.321] (WW) The directory "/usr/share/fonts/local" does not exist.
[    12.321] (WW) The directory "/usr/share/fonts/CID" does not exist.
[    12.396] (WW) Warning, couldn't open module fbdev
[    12.396] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    12.404] (WW) Falling back to old probe method for modesetting
[    12.404] (WW) Falling back to old probe method for vesa
[    12.432] (EE) RADEON(0): glamor detected, failed to initialize EGL.
[    12.514] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/r600_dri.so failed (libedit.so.0: cannot open shared object file: No such file or directory)
[    12.514] (EE) AIGLX: reverting to software rendering
[    12.515] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/swrast_dri.so failed (libedit.so.0: cannot open shared object file: No such file or directory)
[    12.515] (EE) GLX: could not load software renderer

Last edited by mfoley; 05-02-2017 at 11:10 PM.
 
Old 05-03-2017, 12:54 AM   #10
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
1. I use NVidia binary driver and often have the same empty glxinfo after an update of the mesa package. My solution is to reinstall nvidia binary driver. Do you have a special driver for your AMD card that you could reinstall?

2. Nonloading of r600_dri.so and swrast_dri.so due to missing libedit.so.0 might be fixed by installing SBo libraries/libedit SlackBuild. It generates libedit.so.0.

chris
 
1 members found this post helpful.
Old 05-03-2017, 01:14 AM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by mfoley View Post
Code:
[    12.514] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/r600_dri.so failed (libedit.so.0: cannot open shared object file: No such file or directory)
[    12.514] (EE) AIGLX: reverting to software rendering
[    12.515] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/swrast_dri.so failed (libedit.so.0: cannot open shared object file: No such file or directory)
[    12.515] (EE) GLX: could not load software renderer
This seems to be the root of your problem, but I'm not understanding why those should be looking for libedit, since it isn't part of the official Slackware packages. What customizations have you made with your Slackware distro?

chris.willing's #2 might help in this situation, but I'd be more concerned on why it is trying to load libedit when it shouldn't be compiled against it...
 
1 members found this post helpful.
Old 05-03-2017, 01:20 AM   #12
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by mfoley View Post
Sorry, but glxinfo is pretty meaningless to me and it is not obvious to me from the glxinfo output that my "system is broken". In what way is it broken? Do you have an idea? Is there something I need to [re]install? the KDE desktop and all other tools including image viewers, LibreOffice ... work fine.
Yeah. Those tools aren't doing any 3D rendering, are they?

(I've broken my setup several times by being lazy and sloppy with the proprietary NVIDIA driver installs.)

From Wikipedia:
Quote:
GLX (initialism for "OpenGL Extension to the X Window System") is an extension to the X Window System core protocol providing an interface between OpenGL and the X Window System as well as extensions to OpenGL itself. It enables programs wishing to use OpenGL to do so within a window provided by the X Window System. GLX distinguishes two "states": indirect state and direct state.
So, if glxinfo doesn't say anything, then your ability to run something using OpenGL is limited to nonexistent.

I've normally run
Code:
ldd /usr/bin/glxinfo
to see if any shared libraries are missing. If that seems OK, I'll do the something similar with
Code:
ldd /usr/bin/glxgears
(which really should tell me the same thing).

If one of the shared libraries are missing, then I'll find which package has it and reinstall that package. Sometimes, I'll have to fix a bunch of symlinks to get things operational (but that's only because I've ignored the README that comes with the Slackbuild package for the NVIDIA drivers). You don't have that problem, but maybe you ran out of disk space during an upgrade or you tried to use the ATI drivers for your card.

Your /var/log/Xorg.0.log file may tell you that something is missing as well.
 
Old 05-03-2017, 02:05 AM   #13
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Well done bassmadrigal. I bet mfoley has built his own mesa on another box and copied it over.
 
Old 05-03-2017, 03:00 AM   #14
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
Nope, no customizations, no builds on other boxes, but yes FIXED! The Xorg.0.log error gave me a clue and chris.willing #2 is correct! libedit was not installed. I installed it from the official repo using `slackpkg install libedit`, rebooted and voila! FreeCAD now runs.

libedit is not listed as a dependency in the top-level SlackBuilds dependency list, nor in the sbopkg queuefile (meaning it's not listed as a dependency of sub-dependencies). Perhaps it should be.

Thanks all for working this through with me.

Last edited by mfoley; 05-03-2017 at 03:07 AM.
 
Old 05-03-2017, 03:30 AM   #15
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Are you running current? If so, first, you really should have mentioned that, and second, you really should have already had libedit. This has shown up because you didn't do an update properly, and if you don't get that right, we'll all be here again in another couple of weeks chasing ghosts.

slackpkg update
slackpkg install-new
slackpkg upgrade-all

All three, and in that order.

Quote:
Originally Posted by mfoley View Post
libedit is not listed as a dependency in the top-level SlackBuilds dependency list, nor in the sbopkg queuefile (meaning it's not listed as a dependency of sub-dependencies). Perhaps it should be.
*No*
It is absolutely NOT a dependency of FreeCAD. On -current only, it is a dep of Mesa via LLVM, and you didn't have it because your installation was incomplete.

Last edited by 55020; 05-03-2017 at 03:38 AM.
 
1 members found this post helpful.
  


Reply

Tags
opengl, sbopkg


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
"window system doesnot support openGL" caused by changing resolution caicaicherry Fedora 1 04-09-2005 11:29 PM
No OpenGL support corbis_demon Linux - Newbie 0 07-01-2004 04:25 AM
Having trouble with 3D or OpenGL support Nic-MDKman Linux - General 4 04-14-2004 08:42 PM
How to add OpenGL support? simanyay Slackware 6 07-11-2003 08:58 AM
I lost my openGL support! digital bots Slackware 0 09-02-2002 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 PM.

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
Open Source Consulting | Domain Registration