Error: Unable to resolve GL/GLX symbols - please check your GL library installation.
First of all, hello to this big community smile
Im a newbie trying to learn how to build openGL applications under QT (university course) Im using QT3.3.x (don't know how to search the exact version, sorry) under ubuntu distro and programming a QGLWidget class. All was ok (application running) until i choosed to install the fglrx ATI driver (for my ati mobility radeon 9700) to use 3Dacceleration and i managed to do it. The problem now is that whenever i try to run any qt application that use QGLWidget i have this error: Code:
Unable to resolve GL/GLX symbols - please check your GL library installation. I can use glxgears with no problem (and with good fps average) and glxinfo tells me that im really using ati radeon driver instead of mesa3d. Also i tried to change xorg.conf to use the mesa3d driver again but the problem continue. Any suggestion with this? Thank you |
i can't say for sure but mesa can conflict with glx from driver so some of those proprietary install scripts look and wipe stuff
there are a couple of different ways to compile Qt to use GL also lets see to diagnose lets start out looking at the output from this go to where the Qt libs are and run ldd libqt-mt.so |
Thanks for helping me! :D
I'm not at home at this moment so i can't try it now but as soon as i return home i will do what u suggested me and i will post the results! btw, how can re-compile qt? (maybe the key is to compile with the right opengl option...) At trolltech home i only see qt4 to download (and i think it will be not compatible with qt3 installed at university computers) Thanks :) |
yea lets see first if we can't fix it.
we will have to figure out exactly which qt so look at the libs and post exactly which version they are all here ftp://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source the option to use is -dlopen-opengl but like i said wait a second because compiling Qt can be kind of tricky |
okey, i searched for libqt-mt.so and found some soft links (soft=symbolic?) to /usr/lib/libqt-mt.so.3.3.3 (i think this the file we are looking for because is the unique with a 7MB size aprox.).
After ldd libqt-mt.so.3.3.3 i get this: Code:
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb790d000) PD: Thanks again helping and posting ftp site for all qt versions :) PD2: Good night (2am here) :( |
Spain -- i didn't even notice
it looks like the Qt is compiled well with no direct linkage to any GL libs that means that GL is loaded using dlopen as in the config option i sugested unless it's not compiled to use gl at all which seems unlikely because that would mean use of -disable flag in 3.3.3 i think so no need to recompile (i don't think) if you need to recompile 3.3.3 there are good instructions in beyond LFS my copy from 12/22/2004 uses 3.3.3 anyway if you can't find the book and need to do it i can post the page somewhere. Qt is designed to use any MESA GLU or GLX lib i think when you use dlopen option but you still have to link you apps to it the Qt example makefiles use -lGLU then -lGL in that order and will use the first or move on to the second question: Do you still have your libGLU.so and libGLU.so.1 in /usr/X11R6/lib i think this came with X (Mesa versions earlier than 3.1 would use the name "MesaGL" and "MesaGLU" for the libraries, instead of "GL" and "GLU") those required Makefile hacking or just make some new sym links called libGLU.so and libGLU.so.1 if i mess up libGLU.so and libGLU.so.1 links in /usr/X11R6/lib My Qt apps already compiled stop working but new compiles work using /usr/lib/libGL.so.1 appearently it likes the link names .so.1 so make sure they are there not just .so this one for me is a link to libGL.so.1.0.7676 which is the lib installed by nvidia (no experience with ati - sorry) Do you know where and what the libs installed by ATI driver are ? can you make a link called /usr/lib/libGL.so.1 to it if there is not one ? Code:
Unable to resolve GL/GLX symbols - please check your GL library installation. can you compile the opengl examples that come with qt-3.3.3 like box ? and will they run after you compile them? |
YEAH, YEAH and much more... 2xYEAH! Finally it works!
Quote:
Code:
dquest@ShimlyBB:/usr/lib$ ls -l libGL* What is LFS? About the error i had... it was a runtime error (no error compiling and linking) Quote:
Well, u saved me! U are the man hehe btw, Quote:
|
WooHoo something actually got resolved.
LFS = Linux from scratch if the examples didn't come with the distribution package download the 3.3.3 source code and they are in qt-x11-free-3.3.3/examples/ lots and lots of examples with 7 in qt-x11-free-3.3.3/examples/opengl you gotta love those trolls |
sure i will love them.
thanks again for your help |
All times are GMT -5. The time now is 05:26 AM. |