Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. static build error
Forum Updated to NodeBB v4.3 + New Features

static build error

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.0k 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.
  • D Offline
    D Offline
    danyal
    wrote on last edited by
    #1

    i am try to build standalone application . And I followed this instruction https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows . but after execute "nmake sub-src" i get error message
    Generating Code...
    lib /NOLOGO /OUT:\lib\Qt5Bootstrap.lib @C:\Users\User\AppData\Local\Temp\nmC856.tmp
    cd tools\moc\ && ( if not exist Makefile C:\Qt\5.10.1\bin\qmake.exe -o Makefile C:\Qt\5.10.1\Src\qtbase\src\tools\moc\moc.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile
    Project ERROR: Unknown module(s) in QT: bootstrap-private
    NMAKE : fatal error U1077: 'cd' : return code '0x3'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    How to fix it?
    Windows 10, visual studio 2017 , qt 5.10.1

    jsulmJ 1 Reply Last reply
    0
    • D danyal

      i am try to build standalone application . And I followed this instruction https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows . but after execute "nmake sub-src" i get error message
      Generating Code...
      lib /NOLOGO /OUT:\lib\Qt5Bootstrap.lib @C:\Users\User\AppData\Local\Temp\nmC856.tmp
      cd tools\moc\ && ( if not exist Makefile C:\Qt\5.10.1\bin\qmake.exe -o Makefile C:\Qt\5.10.1\Src\qtbase\src\tools\moc\moc.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile
      Project ERROR: Unknown module(s) in QT: bootstrap-private
      NMAKE : fatal error U1077: 'cd' : return code '0x3'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      How to fix it?
      Windows 10, visual studio 2017 , qt 5.10.1

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

      @danyal I guess you need to install https://github.com/robotsthatdream/cafer_docker/tree/master/IDE/QtProject/qtcreator/qbs/1.6.0/profiles/qtc_Desktop_27adf6e5/modules/Qt/bootstrap-private first as bootstrap-private isn't official part of Qt.

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        danyal
        wrote on last edited by danyal
        #3

        But I do not need bootstrap . how i can remove this part from my static build version?But if you can not otherwise, then how do I install it?

        jsulmJ 1 Reply Last reply
        0
        • D danyal

          But I do not need bootstrap . how i can remove this part from my static build version?But if you can not otherwise, then how do I install it?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @danyal The application you're trying to build apparently is using it, so without changing the application you will not be able to build it without installing bootstrap-private (what ever it is).
          Sorry, the link I posted above is garbage. I don't know what this bootstrap-private is. Is there any information provided with the application you're building?
          Can you show the pro file?

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

          1 Reply Last reply
          0
          • D Offline
            D Offline
            danyal
            wrote on last edited by
            #5

            This error occurs when I try to compile a static version of qt. i go to the C:\Qt\5.10.1 and type configure -static -release -platform win32-msvc . When all passed, I entered nmake sub-src and then I get this error

            cd tools\moc\ && ( if not exist Makefile C:\Qt\5.10.1\bin\qmake.exe -o Makefile C:\Qt\5.10.1\Src\qtbase\src\tools\moc\moc.pro) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile
            Project ERROR: Unknown module(s) in QT: bootstrap-private
            NMAKE : fatal error U1077: 'cd' : return code '0x3'
            Stop.
            NMAKE : fatal error U1077: 'cd' : return code '0x2'
            Stop.
            

            and in the project C:\Qt\5.10.1\Src\qtbase\src\tools\moc\moc.pro i have

            option(host_build)
            CONFIG += force_bootstrap
            
            DEFINES += \
                QT_MOC \
                QT_NO_CAST_FROM_ASCII \
                QT_NO_CAST_FROM_BYTEARRAY \
                QT_NO_COMPRESS \
                QT_NO_FOREACH
            
            include(moc.pri)
            HEADERS += qdatetime_p.h
            SOURCES += main.cpp
            
            QMAKE_TARGET_DESCRIPTION = "Qt Meta Object Compiler"
            load(qt_tool)
            
            jsulmJ 1 Reply Last reply
            0
            • D danyal

              This error occurs when I try to compile a static version of qt. i go to the C:\Qt\5.10.1 and type configure -static -release -platform win32-msvc . When all passed, I entered nmake sub-src and then I get this error

              cd tools\moc\ && ( if not exist Makefile C:\Qt\5.10.1\bin\qmake.exe -o Makefile C:\Qt\5.10.1\Src\qtbase\src\tools\moc\moc.pro) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile
              Project ERROR: Unknown module(s) in QT: bootstrap-private
              NMAKE : fatal error U1077: 'cd' : return code '0x3'
              Stop.
              NMAKE : fatal error U1077: 'cd' : return code '0x2'
              Stop.
              

              and in the project C:\Qt\5.10.1\Src\qtbase\src\tools\moc\moc.pro i have

              option(host_build)
              CONFIG += force_bootstrap
              
              DEFINES += \
                  QT_MOC \
                  QT_NO_CAST_FROM_ASCII \
                  QT_NO_CAST_FROM_BYTEARRAY \
                  QT_NO_COMPRESS \
                  QT_NO_FOREACH
              
              include(moc.pri)
              HEADERS += qdatetime_p.h
              SOURCES += main.cpp
              
              QMAKE_TARGET_DESCRIPTION = "Qt Meta Object Compiler"
              load(qt_tool)
              
              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @danyal Here is a similar issue: https://forum.qt.io/topic/79919/building-5-9-from-git

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

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                Zhang-Jian
                wrote on last edited by
                #7

                I fixed this after installed Ruby and removed "-" in source code path, not sure which one is the root cause.

                 ```
                

                Ensure that the following tools can be found in the path:
                * Supported compiler (Visual Studio 2012 or later,
                MinGW-builds gcc 4.9 or later)
                * Perl version 5.12 or later [http://www.activestate.com/activeperl/]
                * Python version 2.7 or later [http://www.activestate.com/activepython/]
                * Ruby version 1.9.3 or later [http://rubyinstaller.org/]

                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