Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qmake generates LIBS with wrong Qt libraries path

Qmake generates LIBS with wrong Qt libraries path

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 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.
  • P Offline
    P Offline
    PhGddr
    wrote on last edited by
    #1

    I am using Qt 5.3.2 under Ubuntu 14.04. In one perticular project, the "LIBS" variable of the Makefile generated by qmake includes the Qt libraries as follow : "-L/opt/Qt5.3.2/5.3/gcc_64/lib -lQt5XmlPatterns -lQt5Widgets -L/usr/X11R6/lib64 -lQt5Xml -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread". The 2 first libraries are searched in "/opt/Qt5.3.2/5.3/gcc_64/lib" which is expected. But the last libraries are searched in "/usr/X11R6/lib64" which doesn't even exist on the machine.
    How can this be and what controls the Qt libraries path (I have tries to use things like QMAKE_LIBDIR_QT without success).
    Thanks for your help.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PhGddr
      wrote on last edited by
      #2

      Hello,
      I don't have any more error but I use to have one. I have to admint that there are 2 versions of Qt 5 installed on the machine, the original one (5.2.1) that comes with Ubuntu plus the 5.3.2 that I downloaded from Qt site. The problem arose when QtCreator was installed by mistake from the official Ubuntu repository (obviously targeting Qt 5.2.1). I managed to solve this by uninstalling this QtCreator and reinstalling Qt 5.3.2. I beleive that being able to target the version of Qt I which should not depend on the order in which packages are installed. So, my question remains, how can I get rid of this /usr/X11R6/lib64 path in the LIBS.

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

        You have to modify 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

        • Login

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