[.rcc\release\qrc_mimetypes.cpp] Error 2
-
Trying to compile qt5 with the following configuration
configure.bat -opensource -confirm-license -release -no-pch -prefix C:/Users/me/Code/External/Windows/MT -feature-vulkan -silent -platform win32-msvc -c++std c++1z -L C:/Users/me/Code/External/Windows/MT/lib -I C:/Users/me/Code/External/Windows/MT/include -no-compile-examples -nomake tests -nomake examples -make tools -opengl desktop -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -webengine-pepper-plugins -webengine-proprietary-codecs -no-openssl -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtdocgallery -skip qtfeedback -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtlottie -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpim -skip qtpurchasing -skip qtqa -skip qtquick3d -skip qtquickcontrols -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qtsystems -skip qttools -skip qttranslations -skip qtwayland -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -shared
The thing I'm primarily trying to compile is QtWebEngine
I get the following error
rcc Y:\Build\qt5-5.14.1\src\qtbase\src\corelib\mimetypes\mimetypes.qrc rc /NOLOGO -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DNDEBUG -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT _BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_ SINCE=0x060000 -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -D_WINDLL -fo .obj\release\Qt5Core_resource.res Qt5Core_resource.rc C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. [Y:\Build\qt5.vcxproj]
I'm using JOM to compile, this is the stderr from it
jom 1.1.3 - empower your cores cl : Command line warning D9025 : overriding '/Fo./' with '/Foqlibraryinfo_final.obj' jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile.Release [.rcc\release\qrc_mimetypes.cpp] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile [release] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\Makefile [sub-corelib-make_first] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\qtbase\Makefile [sub-src-make_first] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\Makefile [module-qtbase-make_first] Error 2
What am I doing wrong? Please help!
-
Hi,
From what I can see, you might be skipping to many thing to build the qtwebengine module.
If you only want to build qtwebengine with more stuff, you don't need to rebuild the whole of Qt.
-
This post is deleted!
-
@SGaist
But the configuration above works on MacOS if I swap-shared
with-framework -securetransport
the error seems completely ambiguous as well. I’m also skipping all the modules exceptqtbase
,qtdeclarative
,qtwebchannel
, andqtwebengine
so I don’t have to build things unnecessarily.What am I doing wrong on Windows 10?
-
@UebelAndre said in [.rcc\release\qrc_mimetypes.cpp] Error 2:
@SGaist
But the configuration above works on MacOS if I swap-shared
with-framework -securetransport
the error seems completely ambiguous as well. I’m also skipping all the modules exceptqtbase
,qtdeclarative
,qtwebchannel
, andqtwebengine
so I don’t have to build things unnecessarily.What am I doing wrong on Windows 10?
@SGaist Sorry, I didn't realize I had so many typos in my last reply. Hopefully this is clearer now.
-
What if you only build qtbase ?
Since it failed, did you restart each time from a clean state ?
On a side note, you should consider making out of source builds.
-
@SGaist I've tried removing all the
skip
s and recompiling from a clean state usingjom module-qtbase
and still get the following. I usually completely clean my build directory and try again every time I want to recompile Qt.jom 1.1.3 - empower your cores cl : Command line warning D9025 : overriding '/Fo./' with '/Foqlibraryinfo_final.obj' jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile.Release [.rcc\release\qrc_mimetypes.cpp] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile [release] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\Makefile [sub-corelib-make_first] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\qtbase\Makefile [sub-src-make_first] Error 2 jom: Y:\Build\qt5-5.14.1\webengine\Makefile [module-qtbase] Error 2
-
@SGaist Is there something I can do to get a more detailed error message? Running with
-verbose
doesn't appear to change what outputs tostderr
. What is.rcc\release\qrc_mimetypes.cpp
? -
One other thing you can do is check whether you get the same issue with the latest LTS.