Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt static MSVC2017 build jom error 3
Hello I'm trying to build static Qt from source on windows. Here's the batch script I wrote:
:: Directory settings
set _MSVC_VCVAR_DIR="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"
:: Prep environment
call %_MSVC_VCVAR_DIR%\vcvarsall x86
:: Start configure
call %_SOURCE_DIR%\configure -prefix %_BUILD_DIR% -opensource -confirm-license -static -platform win32-msvc
call jom install
And after jom install step I get error:
jom: D:\Projects\Qt_5.8\build_static\Makefile [module-qtdeclarative-install_subtargets] Error 3
What am I doing wrong?
@Eligijus Are there any other errors before that error?
Also, was qtdeclarative module built?
@jsulm I deleted the whole build folder and noticed it was using over 80 Gb so I figured it could be that my partition was full (partition size is only 100 Gb). I'm currently rebuilding sources and resizing partition so I'll check if that was free space issue.
Didn't know that Qt static build took up so much space :O.
It appears that qtdeclarative module was not built I didn't include python executable directory to PATH. And adding -nomake examples saved about 45 Gb of space.
Also what does "SET QMAKESPEC=win32-msvc" do? should I add it in my script?
You should also avoid to build the examples, that will save even more space.
That variable makes your build try to build for Visual Studio. It should not be mandatory.