Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. incompatible /usr/lib/libGL.so
Forum Updated to NodeBB v4.3 + New Features

incompatible /usr/lib/libGL.so

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 2.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deleted28
    wrote on last edited by
    #1

    Hello,
    building default QT Widgets Application on a fresh setup of Qt 5.6.1. GCC64bit on OpenSuse 42.1 Leap results in following error messages:

    :-1: error: skipping incompatible /usr/lib/libGL.so when searching for -lGL
    
    
    :-1: error: cannot find -lGL
    

    locations of libGL.so are:

    1.   /usr/X11R6/lib/libGL.so
    2.   /usr/X11R6/lib64/libGL.so
    3.   /usr/lib/libGL.so
    4.   /usr/lib64/libGL.so
    

    I assume the 3rd one is found first but the 4th should be found.
    How to fix this in Qt-creator 4.0.1. ?
    The Makefile contains:

    LFLAGS        = -Wl,-rpath,/opt/Qt5/5.6/gcc_64/lib
    LIBS          = $(SUBLIBS) -L/opt/Qt5/5.6/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread 
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      One thing you can try is to use the linux-g++-64 mkspec when you configure your project.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted28
        wrote on last edited by
        #3

        Thank You SGaist,

        this sounds interesting, but I do not know how to use "linux-g++-64 mkspec". Can you explain a little more, please, thank you.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Since you are using Qt Creator, go to the Build & Run panel in the options, then Kit, select the kit you are using. There you'll have a line name Qt mkspec. You can set there the mkspec.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deleted28
            wrote on last edited by
            #5

            works now, thanks a lot :)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved