QT app not linking under Suse 9.2
Hi, I tried compiling one of the examples under the QT lib directory and it compiles fine but does not seem to link. Looks like the gl stuff is not installed or not where it needs to be. Any idea how to fix this. Thanks, Babu ------------------------- g++ -o texture gltexobj.o globjwin.o main.o moc_gltexobj.o moc_globjwin.o -L/usr/lib/ -L/usr/lib/qt3/lib/ -L/usr/lib/ -L/usr/X11R6/lib/ -lqt -lGLU -lGL -lXmu -lXext -lX11 -lm gltexobj.o(.text+0x596): In function `GLTexobj::initializeGL()': : undefined reference to `QGLWidget::convertToGLFormat(QImage const&)' gltexobj.o(.text+0x6a5): In function `GLTexobj::initializeGL()': : undefined reference to `QGLWidget::convertToGLFormat(QImage const&)' ... ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
Do you have mesa-devel installed? B-) On Monday 18 July 2005 06:26 pm, babu walad wrote:
Hi,
I tried compiling one of the examples under the QT lib directory and it compiles fine but does not seem to link. Looks like the gl stuff is not installed or not where it needs to be. Any idea how to fix this.
Thanks,
Babu
-------------------------
g++ -o texture gltexobj.o globjwin.o main.o moc_gltexobj.o moc_globjwin.o -L/usr/lib/ -L/usr/lib/qt3/lib/ -L/usr/lib/ -L/usr/X11R6/lib/ -lqt -lGLU -lGL -lXmu -lXext -lX11 -lm gltexobj.o(.text+0x596): In function
`GLTexobj::initializeGL()': : undefined reference to
`QGLWidget::convertToGLFormat(QImage const&)' gltexobj.o(.text+0x6a5): In function
`GLTexobj::initializeGL()': : undefined reference to
`QGLWidget::convertToGLFormat(QImage const&)'
...
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
Hi Brad, Actually I have GL and Mesa installed. I got the problem resolved. Apparently, I need to link in the qt-mt library as well. It does not seem to make sense that the multi-thread library has to be linked to resolve all symbols for non-threaded apps! Too bad the QT book, QAssistant, and examples all do not mention this and the examples are "broke" out of the box. Thanks!! Babu --- Brad Bourn <brad@summitrd.com> wrote:
Do you have mesa-devel installed?
B-)
Hi,
I tried compiling one of the examples under the QT lib directory and it compiles fine but does not seem to link. Looks like the gl stuff is not installed or not where it needs to be. Any idea how to fix
On Monday 18 July 2005 06:26 pm, babu walad wrote: this.
Thanks,
Babu
-------------------------
g++ -o texture gltexobj.o globjwin.o main.o moc_gltexobj.o moc_globjwin.o -L/usr/lib/ -L/usr/lib/qt3/lib/ -L/usr/lib/ -L/usr/X11R6/lib/
-lqt
-lGLU -lGL -lXmu -lXext -lX11 -lm gltexobj.o(.text+0x596): In function
`GLTexobj::initializeGL()': : undefined reference to
`QGLWidget::convertToGLFormat(QImage const&)' gltexobj.o(.text+0x6a5): In function
`GLTexobj::initializeGL()': : undefined reference to
`QGLWidget::convertToGLFormat(QImage const&)'
...
Start your day with Yahoo! - make it your home
____________________________________________________ page
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (2)
-
babu walad
-
Brad Bourn