Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build everything from source fails to find itself

Build everything from source fails to find itself

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.3k Views
  • 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 Offline
    I Offline
    ioncube
    wrote on last edited by ioncube
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • I 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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      0
      • I Offline
        I Offline
        ioncube
        wrote on last edited by ioncube
        #3

        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
        0
        • I Offline
          I Offline
          ioncube
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Superman can fly
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved