Build everything from source fails to find itself
-
Building an everything package from source seems to fail when it comes to qtquick related components because it cannot find qtquick, which the build is surely supposed to be creating in the first place. e.g. Picking an older package such as 5.2.1 and a configure
./configure -prefix /opt/qt5 -nomake tests -opensource -qt-xcb
, a few minutes into the build it bails with:cd scanner/ && ( test -e Makefile || /usr/local/src/qt-everywhere-opensource-src-5.2.1/qtbase/bin/qmake /usr/local/src/qt-everywhere-opensource-src-5.2.1/qtconnectivity/examples/bluetooth/scanner/scanner.pro -o Makefile ) && make -f Makefile Project ERROR: Unknown module(s) in QT: quick`
Building 5.7.0 is similar except that it fails in qtvirtualkeyboard. In both cases
qtdeclarative
had been built successfully, so I tried amake install
within there to install it and then went back to the main build, but still no joy.It seems that part of the qt build needs components that it is building but hasn't installed yet. I've used qml in projects before but with prebuilt packages. A source build seems elusive. Does a build on a system that does not already have a version Qt need to be split into several stages so that prerequisites for other parts of the build are available?
-
Building an everything package from source seems to fail when it comes to qtquick related components because it cannot find qtquick, which the build is surely supposed to be creating in the first place. e.g. Picking an older package such as 5.2.1 and a configure
./configure -prefix /opt/qt5 -nomake tests -opensource -qt-xcb
, a few minutes into the build it bails with:cd scanner/ && ( test -e Makefile || /usr/local/src/qt-everywhere-opensource-src-5.2.1/qtbase/bin/qmake /usr/local/src/qt-everywhere-opensource-src-5.2.1/qtconnectivity/examples/bluetooth/scanner/scanner.pro -o Makefile ) && make -f Makefile Project ERROR: Unknown module(s) in QT: quick`
Building 5.7.0 is similar except that it fails in qtvirtualkeyboard. In both cases
qtdeclarative
had been built successfully, so I tried amake install
within there to install it and then went back to the main build, but still no joy.It seems that part of the qt build needs components that it is building but hasn't installed yet. I've used qml in projects before but with prebuilt packages. A source build seems elusive. Does a build on a system that does not already have a version Qt need to be split into several stages so that prerequisites for other parts of the build are available?
-
Thanks for the reply. I was optimistic, and having skipped gamepad that fails to compile, compilation seems ok. However, when hitting make install, install fails at the virtual keyboard. I configured with:
./configure -no-compile-examples -qt-xcb -qt-harfbuzz -opensource -prefix /opt/qt5/ -confirm-license -skip qtwebengine -nomake examples -skip gamepad
and
make install
failed with:make[1]: Leaving directory `/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtquickcontrols' cd qtvirtualkeyboard/ && ( test -e Makefile || /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qmake /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/qtvirtualkeyboard.pro -qtconf /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install make[1]: Entering directory `/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard' cd src/ && ( test -e Makefile || /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qmake /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src/src.pro -qtconf /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install make[2]: Entering directory `/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src' cd virtualkeyboard/ && ( test -e Makefile || /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qmake /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src/virtualkeyboard/virtualkeyboard.pro -qtconf /usr/local/src/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install Project ERROR: Unknown module(s) in QT: quick make[2]: *** [sub-virtualkeyboard-install_subtargets] Error 3 make[2]: Leaving directory `/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src' make[1]: *** [sub-src-install_subtargets] Error 2 make[1]: Leaving directory `/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard' make: *** [module-qtvirtualkeyboard-install_subtargets] Error 2
Any ideas? It feels as though Qt is never built on a clean system so these issues are rarely come across. So far it's been hours of tinkering to options to knock this and that out with no successful install to show for it. If the everything package built just a minimal subset by default, with options to incrementally add modules as necessary plus a few options for groups of packages, success would be much more assured.
-
Hello! Now I met the same question with your:
make[2]: *** [sub-virtualkeyboard-install_subtargets] Error 3
make[2]: Leaving directory/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src' make[1]: *** [sub-src-install_subtargets] Error 2 make[1]: Leaving directory
/usr/local/src/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard'
make: *** [module-qtvirtualkeyboard-install_subtargets] Error 2Would you tell me the way to solve this question?Thanks