Wrong makefile being generated (wrong paths)
-
Hello, I am in WIn8 and I have Qt 5.4 both for Mingw as for MSVC2013.
I have cut and copied both QT from C: to f:
Now I have the following qt.conf[Paths]
Prefix=F:/Qt2/5.4/msvc2013_64
Libraries=./lib
Examples=../../Examples/Qt-5.4
Documentation=../../Docs/Qt-5.4But in makefile this is what is being generated:
LIBS = /LIBPATH:F:\Qt2\5.4\msvc2013_64\lib F:\Qt2\5.4\msvc2013_64\lib\qtmaind.lib shell32.lib /LIBPATH:C:\Qt\5.4\msvc2013_64\lib C:\Qt\5.4\msvc2013_64\lib\Qt5Cored.lib F:\Qt2\5.4\msvc2013_64\lib\Qt5Widgetsd.lib F:\Qt2\5.4\msvc2013_64\lib\Qt5Guid.lib F:\Qt2\5.4\msvc2013_64\lib\Qt5Cored.lib
What I must have to do to take away the wrong paths (the references to c:)?
Thanks beforehand
-
This link have helped me a lot:
https://bugreports.qt.io/browse/QTBUG-40026
The problem is Qt put the path references that are on the %QTDIR%\lib*.prl to the Makefiles. These references are hardcoded and point to original installation folder, therefore they must be updated when changing the installation path by hand (in my case using Ctrl+X plus Ctrl+V).
On my case qtmain.prl and qtmaind.prl were pointing inside of them to c:\Qt....
I have altered qtmain.prl and qtmaind.prl by hand and the makefiles that were generated after that are correct.