-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.12.2
-
None
-
Windows 10.0.17763.379 x64, MSVC 2017 x64, jom 1.1.3
Qt is installed to e:\tools\qt.
I tried to build (configure) it like this:
..\Src\configure.bat -release -static -no-pch -optimize-size -opengl desktop -platform win32-msvc -prefix "e:\tools\qt\5122-static\" -skip webengine -nomake tools -nomake tests -nomake examples
But that failed with the following error:
Running configuration tests... Checking for valid makespec... ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. Check config.log for details.
config.log contains this:
Command line: -release -static -no-pch -optimize-size -opengl desktop -platform win32-msvc -prefix "e:\tools\qt\5122-static\" -skip webengine -nomake tools -nomake tests -nomake examples^" executing config test verifyspec + cd /d E:\tools\qt\5.12.2\build\config.tests\verifyspec && e:\tools\qt\5.12.2\build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" E:/tools/qt/5.12.2/Src/qtbase/config.tests/verifyspec > Cannot find feature spec_pre.prf > Error processing project file: E:\tools\qt\5.12.2\Src\qtbase\config.tests\verifyspec\verifyspec.pro
And then I accidentally copy-pasted the configure line with a placeholder value for the prefix:
..\Src\configure.bat -release -static -no-pch -optimize-size -opengl desktop -platform win32-msvc -prefix "\path\to\Qt\5122-static" -skip webengine -nomake tools -nomake tests -nomake examples
And that actually worked fine, although in the end I got the binaries at e:\path\to\Qt\5122-static.
So:
1. -prefix "e:\tools\qt\5122-static\" - fails;
2. -prefix "\path\to\Qt\5122-static" - works.