static build error
-
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 -
@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.
-
@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? -
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)
-
@danyal Here is a similar issue: https://forum.qt.io/topic/79919/building-5-9-from-git
-
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/]