Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt static MSVC2017 build jom error 3

Qt static MSVC2017 build jom error 3

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eligijus
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • E Eligijus

      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?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Eligijus Are there any other errors before that error?
      Also, was qtdeclarative module built?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Eligijus Are there any other errors before that error?
        Also, was qtdeclarative module built?

        E Offline
        E Offline
        Eligijus
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Eligijus
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved