Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Build everything from source fails to find itself

    General and Desktop
    3
    5
    1008
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ioncube last edited by ioncube

      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 a make 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?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @ioncube last edited by

        @ioncube Try to build without examples first, you can build them later.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • I
          ioncube last edited by ioncube

          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.

          1 Reply Last reply Reply Quote 0
          • I
            ioncube last edited by

            This turned out to be missing opengl headers (mesa-libGL-devel), so my bad. Thanks @jsulm again for the reply.

            1 Reply Last reply Reply Quote 0
            • S
              Superman can fly last edited by

              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 2

              Would you tell me the way to solve this question?Thanks

              1 Reply Last reply Reply Quote 0
              • First post
                Last post