Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.0.0 Beta2, 6.2.0 Beta1
-
None
-
OrangePi PC PLUS armbian 20.11.3 with LXQT and Kernel 5.9.14-sunxi
Description
I want to build Qt for my armbian, not android. I use dev branch with Qt6. But while building I get error with androidtestrunner. I do not need android at all. How to disable it? I read doc but it is about "Including or Excluding Features" and "Excluding Qt Modules" but androidtestrunner is not a feature/module, isn't it? I attach fully log.
[ 58%] Built target qpa_default_plugins
Scanning dependencies of target androidtestrunner_autogen
[ 58%] Automatic MOC for target androidtestrunner
[ 58%] Built target androidtestrunner_autogen
Scanning dependencies of target androidtestrunner
[ 58%] Building CXX object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/androidtestrunner_autogen/mocs_compilation.cpp.o
[ 58%] Building CXX object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/main.cpp.o
make[2]: *** No rule to make target 'qtbase/src/gui/CMakeFiles/Gui_resources_1.dir/.rcc/qrc_qpdf.cpp.o', needed by 'qtbase/bin/androidtestrunner'. Stop.
make[1]: *** [CMakeFiles/Makefile2:5676: qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
My commands to build Qt6:
git clone git://code.qt.io/qt/qt5 qt5 && cd qt5 && perl init-repository --module-subset=default,qtserialport,-qtwebengine,-qtwayland,-qtandroidextras,-qtdoc,-qtgraphicaleffects,-qtqa,-qttranslations,-qtvirtualkeyboard,-qtquicktimeline,-qtquick3d,-qt3d,-qtrepotools,-qttools,-qtshadertools,-qtimageformats,-qtnetworkauth,-qtsvg,-qtwebsockets,-qt5compat,-qt3d && cd ../build
../qt5/configure -release -static -opensource -nomake examples -nomake tests -confirm-license -skip webengine -skip qtwayland -skip qtandroidextras -skip qtdoc -skip qtgraphicaleffects -skip qtqa -skip qttranslations -skip qtvirtualkeyboard -skip qtquicktimeline -skip qtquick3d -skip qt3d -skip qtrepotools -skip qttools -skip qtimageformats -skip qtnetworkauth -skip qtquickcontrols2 -skip qtsvg -skip qtwebsockets -skip qt5compat -skip qtshadertools -eglfs -opengl es2 -prefix ../build_artifacts../qt5/configure -release -static -opensource -nomake examples -nomake tests -confirm-license -skip webengine -skip qtwayland -skip qtandroidextras -skip qtdoc -skip qtgraphicaleffects -skip qtqa -skip qttranslations -skip qtvirtualkeyboard -skip qtquicktimeline -skip qtquick3d -skip qt3d -skip qtrepotools -skip qttools -skip qtimageformats -skip qtnetworkauth -skip qtquickcontrols2 -skip qtsvg -skip qtwebsockets -skip qt5compat -skip qtshadertools -skip qtquickcontrols2 -skip qtdeclarative -prefix ../build_artifacts
cmake --build .
P.S. To fix this bug use Ninja:
export CMAKE_GENERATOR=Ninja