Bug 783111 - X11 configuration error with Qt Creator and OpenGL
Summary: X11 configuration error with Qt Creator and OpenGL
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drivers
Version: 16
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-19 12:11 UTC by strattonbrazil
Modified: 2012-03-23 15:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-23 15:36:28 UTC
Type: ---


Attachments (Terms of Use)

Description strattonbrazil 2012-01-19 12:11:14 UTC
Executables launched from Qt Creator with a QGLWidget's fail with "QGLTempContext: No GL capable X visuals available", while the same executables function correctly when run from the shell.  


How reproducible:

Consistent crash.  

Steps to Reproduce:
1.  Create a new C++ project within Qt Creator
2.  add '#include <QtOpenGL/QGLWidget>' to main.cpp
3.  add 'QGLWidget o;' inside main() of main.cpp
4.  add 'o.show();' inside main() of main.cpp
  
Actual results:

Program "QGLTempContext: No GL capable X visuals available"

Expected results:

Program launches with QGLWidget window displayed.  

Additional info:

I'm running this app using the latest nvidia drivers from rpmfusion on an nvidia 8800.  These applications I tested worked fine from a Ubuntu install.  On closer inspection, this seems to happen when the project's run settings are set to "Build Settings".  Changing them to "System Settings" seems to resolve the issue.  The offending environment variable seems to be LD_LIBRARY_PATH.  By unsetting this variable, the application will start normally.  

Conversely, if I set that environment variable in the shell, I can then get the test application to crash from the terminal.  

$ export LD_LIBRARY_PATH=/usr/lib64
$ ./test
QGLTempContext: No GL capable X visuals available.
Segmentation fault (core dumped)

Comment 1 Adam Jackson 2012-03-23 15:36:28 UTC
If you're using nvidia's drivers, then this problem is either in their code or in how you installed it.  This doesn't happen with the open drivers.


Note You need to log in before you can comment on or make changes to this bug.