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:

    @echo off
    :: Directory settings
    set _SOURCE_DIR="D:\Projects\Qt_5.8\qt5"
    set _SHADOW_DIR="D:\Projects\Qt_5.8\build_static"
    set _BUILD_DIR="C:\Qt\5.8_dev_static\msvc2015_64"
    set _MSVC_VCVAR_DIR="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"

    :: Prep environment
    set PATH="D:\Projects\jom_1_1_2";%PATH%
    call %_MSVC_VCVAR_DIR%\vcvarsall x86
    cd %_SHADOW_DIR%

    :: Start configure
    call %_SOURCE_DIR%\configure -prefix %_BUILD_DIR% -opensource -confirm-license -static -platform win32-msvc
    call jom
    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?


  • Moderators

    @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?


  • Lifetime Qt Champion

    Hi,

    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.


Log in to reply