Results 1 to 2 of 2

Thread: Can´t use opengl after upgrade. Probably a linking problem?

  1. #1
    Join Date
    Feb 2011
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Can´t use opengl after upgrade. Probably a linking problem?

    Hello
    I´m at work and for about 2 hours ago they updated the redhat-system I´m using with a new nvidia driver. After that I can´t use opengl in my qt application.
    When I remove "opengl" from the .pro file everything works fine.

    The error I get is:

    /usr/bin/ld: warning: libnvidia-tls.so.1, needed by /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so, not found (try using -rpath or -rpath-link)

    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000003gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000001gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000006gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000005gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000002gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000007gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000004gl'
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libGL.so: undefined reference to `_nv000000gl'

    My guess was a linking problem so I did this. (This is where the new driver is located)
    QT4_LDFLAGS=-L/usr/lib64/nvidia LDFLAGS=-L/usr/lib64/nvidia

    But still the same error.

    Does anyone have any idea?!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Can´t use opengl after upgrade. Probably a linking problem?

    If at all then you should use QMAKE_LFLAGS but in general your system setup is broken. Try running ldconfig as root and also see if any gl apps (like glxinfo or glxgears) are working.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Cmake and opengl - linking error
    By harnz in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2010, 18:00
  2. linking the files with openGL code
    By Abeer in forum Newbie
    Replies: 1
    Last Post: 25th May 2010, 01:10
  3. Problem on upgrade from Qtopia core 4.3 to Qt/Embedded 4.4
    By sternocera in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 7th December 2008, 22:58
  4. QT 4.4.0 Upgrade QPainter Problem
    By ChrisReath in forum Qt Programming
    Replies: 4
    Last Post: 13th May 2008, 15:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.