Error message when trying to build with qmake from 5.15.2 static build
-
Hi I have a peculiar problem... when I try to build my project using qmake from a static build of 5.15.2 using the below command, I get the below error message:
***update - this occurs in other projects as well
qmake "CONFIG += static release" project.pro ASSERT: "fileName.isEmpty() || isAbsolutePath(fileName)" in file C:\qt-everywhere-src-5.15.2\qtbase\qmake\library\ioutils.cpp, line 54
I used the following to build Qt static:
set QTDIR=C:\qt-everywhere-src-5.15.2\qtbase set PATH=C:\qt-everywhere-src-5.15.2\qtbase\bin;%PATH% cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build" call vcvars64.bat cd C:\5.15.2_static_build_x64 C:\qt-everywhere-src-5.15.2\configure -debug-and-release -confirm-license -platform win32-msvc2019 -opengl dynamic -static -static-runtime -nomake examples -no-compile-examples -nomake tests -nomake tools -prefix C:\Qt_5.15.2_MSVC2019_Static_x64 -openssl-linked -L C:\OpenSSL-VC-64\lib -I C:\OpenSSL-VC-64\include OPENSSL_LIBS="-llibcrypto -llibssl" -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -qt-freetype jom.exe -j 24 jom.exe -j 24 install
Any ideas what might have gone wrong? Possibly related topic:
https://forum.qt.io/topic/36948/solved-changing-qt-conf-error-assert-filename-isempty-isabsolutepath-filename
Here's my C:\5.15.2_static_build_x64\qtbase\bin\qt.conf just in case:[EffectivePaths] Prefix=.. [DevicePaths] Prefix=C:/Qt_5.15.2_MSVC2019_Static_x64 [Paths] Prefix=C:/Qt_5.15.2_MSVC2019_Static_x64 HostPrefix=C:/Qt_5.15.2_MSVC2019_Static_x64 Sysroot= SysrootifyPrefix=false TargetSpec=win32-msvc HostSpec=win32-msvc [EffectiveSourcePaths] Prefix=C:/qt-everywhere-src-5.15.2/qtbase
Thanks!
-
You have asked the Qt configure script to arrange installation into the directory "C:\Qt_5.15.2_MSVC2019_Static_x64". The qmake you should be building your project with is likely to be "C:\Qt_5.15.2_MSVC2019_Static_x64\bin\qmake", and the relevant qt.conf file would also live under "C:\Qt_5.15.2_MSVC2019_Static_x64" (not under the build folder).