Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt jom Error2
Hi, I'm trying to build Qt for static (or whatever the correct term is). After I configured with -release -static -platform win32-msvc2012, I run c:\qt\jom\jom.exe -j4
After a short while I get this errors:
jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [release] Error 2
jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [sub-tools-bootstrap-make_first] Error 2
jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [sub-tools-make_first] Error 2
jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [sub-src-make_first] Error 2
Please help me, I've been trying to do this for 2 days :(
VS version: 2012, Qt: 5.0.2, Windows 7 x64
Add -dont-process to configure, if that switch is still available in Qt5. Then you need to run qmake qtbase/projects.pro, IIRC.
Or better, update to Qt 51 and try there.
What commands do I exactly need to give after the config for qmake qtbase/projects.pro?
And also, in Qt 5.1 do I have to do the same thing with configure, jom, etc. and hope for the best?
Just run nmake.
Qt5.1 - yes. Or use nmake, I think jom can fail at times.
nmake (still 5.0.2) gives me the followin error:
NMAKE: fatal error U1077 C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\bin\moc.exe return code 0x1
NMAKE: fatal error U1077 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe return code 0x2
and 3 identic lines:
fatal error u1077 'cd': return code 0x2
Have you run all this on clean Qt source code (downloaded from a zip, not a prebuild)? You should do that. And in general, if possible, avoid static linking, a lot of problems will go away. Some new will be introduced, too :P
How can I use a .exe on other PC's without static, though? I need a .exe for a school project :D
koahnig last edited by
[quote author="crisro996" date="1371496302"]How can I use a .exe on other PC's without static, though? I need a .exe for a school project :D[/quote]
Check out for deployment in wiki.
To solve the "dependencies there is this wiki entry":http://qt-project.org/wiki/Show_library_dependencies#aea23489ce3aa9b6406ebb28e0cda430 for instance