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. Multiple LIBPATH entries in Makefile
Forum Updated to NodeBB v4.3 + New Features

Multiple LIBPATH entries in Makefile

Scheduled Pinned Locked Moved Solved General and Desktop
qmakemakefile
2 Posts 1 Posters 1.4k Views
  • 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.
  • Z Offline
    Z Offline
    Zitrax
    wrote on 14 Dec 2015, 10:49 last edited by Zitrax
    #1

    Hi,

    I am investigating an issue with differing binaries between the same source built on two different machines. And I have now traced it down to a difference in the generated Makefile.release that is created by qmake.

    The difference is that on one machine there are two /LIBPATH entries (I basically have /LIBPATH:X... and /LIBPATH:Y...) while on the other there is only one in the LIBS section. How is qmake picking up the values for LIBPATH ?

    (Using Qt 5.4.2 on Windows 7)

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zitrax
      wrote on 14 Dec 2015, 12:44 last edited by
      #2

      Found the solution.

      So I ran qmake with -d to get debug output. In there I could see the extra libpath came from msvc2012_opengl\lib\qtmain.prl that has a setting QMAKE_PRL_LIBS. The path to Qt5Core is for some reason hardcoded there and in my case it was incorrect. Still unsure why it was incorrect but editing it solved it for me.

      1 Reply Last reply
      0

      2/2

      14 Dec 2015, 12:44

      • Login

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