<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I'm not well versed in qmake, nor could I find much information about the .prl files that qmake generates along with its library outputs. But as I've understood it, they are generated so that future linking against the Qt libraries (when using qmake) will know which additional library dependencies are needed.</div><div><br></div><div>This has apparently been working fine in the past for us, where a .prl file would look like this:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>[...]<br>QMAKE_PRL_VERSION = 5.10.1<br>QMAKE_PRL_LIBS = -lmpr -lnetapi32 -luserenv -lversion -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lwinmm -L$$[QT_INSTALL_LIBS] $$[QT_INSTALL_LIBS]\\qtpcre2.lib<br></div></blockquote><div><br></div><div>This is all fine and dandy. However, after attempting to upgrade to 5.12.3, the generated .prl's now look like this for us:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>[...]<br>QMAKE_PRL_VERSION = 5.12.3<br>QMAKE_PRL_LIBS = C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\mpr.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\netapi32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\userenv.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\version.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\ws2_32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\kernel32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\user32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\shell32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\uuid.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\ole32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\advapi32.lib C:\\Needy\\cache\\3rdparty\\WinSDK\\WinSDK-10.0.17134.0.1.1.1.1452640\\Win64\\10\\Lib\\10.0.17134.0\\um\\x64\\winmm.lib $$[QT_INSTALL_LIBS]/qtpcre2.lib<br></div></blockquote><div><br></div><div>All library paths are now absolute paths! Why is this? Is there some compilation flag I can use to disable this behaviour?</div><div>This is causing us great pain in building PyQt when linking with our local build of Qt, since the libraries needed to build are in completely different locations on our build machines.<br></div><div><a href="https://doc.qt.io/qt-5/qmake-advanced-usage.html#library-dependencies" target="_blank">This article mentions</a> the .prl files not being portable between platforms, but surely they're intended to be between machines?<br></div><div><br></div><div>Thanks!<br><div dir="ltr" class="m_2882135787279530930m_-2051351543721658869gmail_signature"><div dir="ltr"><div><div dir="ltr"><br clear="all"><div><br></div>

<div style="font-size:small;background-color:rgb(255,255,255)"><br><img src="http://www.avalanchestudios.se/static/img/global/avalanche.jpg" width="96" height="37"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)" size="1"><font size="1"><br></font></font><b style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font size="1">

<b style="font-size:12.8px;background-color:rgb(255,255,255)"><font size="1"><font size="1">Simon Holmberg</font><span> </span>I Graduate Tools Programmer</font></b></font></b><font style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)" size="1"><font size="1"><br></font></font><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:x-small">AVALANCHE STUDIOS</b><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:x-small"><font color="#999999"><b style="font-family:arial,helvetica,sans-serif;font-size:x-small">Malmö</b><span style="font-family:arial,helvetica,sans-serif;font-size:x-small"> </span></font><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:x-small">I </span><b style="font-family:arial,helvetica,sans-serif;font-size:x-small"><font color="#000000">Stockholm</font><font color="#000000"> </font></b><b style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:x-small">I <span style="color:rgb(204,204,204)">New York</span></b></div></div></div></div></div></div></div></div></div>