Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Some modules are not available in configure
QtWS25 Last Chance

[SOLVED] Some modules are not available in configure

Scheduled Pinned Locked Moved Qt Creator and other tools
configurebuilding qt
7 Posts 4 Posters 4.9k 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.
  • E Offline
    E Offline
    Eyeless
    wrote on last edited by Eyeless
    #1

    Hello,

    I'm trying to build Qt with configure. But configure "doesn't know" some modules. For example, when I try to run configure with these parameters:
    ~/Qt/5.5/Src/qtbase/configure -qml -quick -multimedia -platform linux-g++ -debug-and-release

    I get these errors:
    -qml: invalid command-line switch
    -quick: invalid command-line switch
    -multimedia: invalid command-line switch

    Qml, quick and multimedia modules are not even mentioned in configure --help. But there no problems with, for example widgets module. So, how can I enable all necessary modules in configure? Thank you for your answers!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Because there's no such options. If you want to build a set of Qt modules you have to call configure from Src not qtbase, otherwise you'll be only building qtbase. That's not a problem, you can always build other modules afterward.

      If you only want 3 modules, then just build qtbase and then use the qmake + make combo otherwise you have to add as much -skip module_name statement as modules you don't want to build.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Because there's no such options. If you want to build a set of Qt modules you have to call configure from Src not qtbase, otherwise you'll be only building qtbase. That's not a problem, you can always build other modules afterward.

        If you only want 3 modules, then just build qtbase and then use the qmake + make combo otherwise you have to add as much -skip module_name statement as modules you don't want to build.

        Hope it helps

        E Offline
        E Offline
        Eyeless
        wrote on last edited by
        #3

        @SGaist Thank you very much for your advice. I've run configure from Src directory. There were same problems with invalid command-line switches and I was not able to build project with qml, quick and multimedia modules using qmake, that was built by configure. So, as I have understood, I need to build these modules manually. But how can I do this? I've tried to build them using qmake built by configure, but I received error messages about absence of some other modules. After this, I've tried to build modules using qmake that was installed by Qt default installer and then to copy all built files to the directory, where I created Qt-build by configure. But after copying all those files I still got module absence errors when trying to build projects by this new qmake using, for example, Multimedia module.
        I feel a bit uneasy to ask you about this, but can you please give me just a short tutorial how to build Qt correctly? I've decided to build it because I needed EGL or GLX enabled to run my little QML app on PCs without Qt (I have successfully enabled GLX by installing all dependencies from xcb readme file). Now all I want is to build Qt with all modules, that default version has. Of course, my app doesn't use all of them, but I may need them in the future, so I would like to have them built. But I'm trying to build Qt with these modules enabled for several days using different tutorials from the Internet without any success. So, if you would be so kind to give me a short step-by-step instruction, I would be very grateful.

        JKSHJ 1 Reply Last reply
        0
        • E Eyeless

          @SGaist Thank you very much for your advice. I've run configure from Src directory. There were same problems with invalid command-line switches and I was not able to build project with qml, quick and multimedia modules using qmake, that was built by configure. So, as I have understood, I need to build these modules manually. But how can I do this? I've tried to build them using qmake built by configure, but I received error messages about absence of some other modules. After this, I've tried to build modules using qmake that was installed by Qt default installer and then to copy all built files to the directory, where I created Qt-build by configure. But after copying all those files I still got module absence errors when trying to build projects by this new qmake using, for example, Multimedia module.
          I feel a bit uneasy to ask you about this, but can you please give me just a short tutorial how to build Qt correctly? I've decided to build it because I needed EGL or GLX enabled to run my little QML app on PCs without Qt (I have successfully enabled GLX by installing all dependencies from xcb readme file). Now all I want is to build Qt with all modules, that default version has. Of course, my app doesn't use all of them, but I may need them in the future, so I would like to have them built. But I'm trying to build Qt with these modules enabled for several days using different tutorials from the Internet without any success. So, if you would be so kind to give me a short step-by-step instruction, I would be very grateful.

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by JKSH
          #4

          @Eyeless said:

          I've run configure from Src directory. There were same problems with invalid command-line switches and I was not able to build project with qml, quick and multimedia modules using qmake, that was built by configure.

          Could you copy and paste the exact error messages here? They contain valuable clues to solving your problem.

          So, as I have understood, I need to build these modules manually.

          I don't think that's right. You should be able to build the entire Qt framework using only a few lines (shown below).

          I've tried to build them using qmake built by configure,

          Do not run qmake manually.

          can you please give me just a short tutorial how to build Qt correctly?

          First, ensure that your build tree is 100% clean. The files generated in your previous attempts need to be completely removed.

          Here's how I build mine, using only 4 lines:

          > cd ~/Qt/5.5/Src/
          > configure -prefix "~/Qt/Custom/5.5.0/gcc492_x64" -opensource -confirm-license -nomake examples -nomake tests -opengl desktop
          > make -j 5
          > make install
          

          Here's an explanation for the 4 steps above:

          1. Go to the top-level directory
          2. Configure
            • prefix sets the installation directory (DO NOT move/copy any files manually).
            • nomake saves compilation time -- it avoids building the examples and test files. Remove these options if you want to build those files.
            • Replace the opengl option with your own choice
          3. Compile
            • j tells Make to use multiple threads, to speed up compilation
          4. Install the files into your prefix (DO NOT move/copy any files manually)

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          E 1 Reply Last reply
          2
          • musimbateM Offline
            musimbateM Offline
            musimbate
            wrote on last edited by
            #5

            @JKSH short and right to the point.By the way,does anything weird happen when you copy/move the binaries manually?

            Why join the navy if you can be a pirate?-Steve Jobs

            JKSHJ 1 Reply Last reply
            0
            • musimbateM musimbate

              @JKSH short and right to the point.By the way,does anything weird happen when you copy/move the binaries manually?

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @musimbate said:

              does anything weird happen when you copy/move the binaries manually?

              Yes. The installation paths are built into the compiled libraries themselves. If you move them manually, your development libraries will contain the wrong paths. Things might still work (sometimes)... but this scenario not supported.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • JKSHJ JKSH

                @Eyeless said:

                I've run configure from Src directory. There were same problems with invalid command-line switches and I was not able to build project with qml, quick and multimedia modules using qmake, that was built by configure.

                Could you copy and paste the exact error messages here? They contain valuable clues to solving your problem.

                So, as I have understood, I need to build these modules manually.

                I don't think that's right. You should be able to build the entire Qt framework using only a few lines (shown below).

                I've tried to build them using qmake built by configure,

                Do not run qmake manually.

                can you please give me just a short tutorial how to build Qt correctly?

                First, ensure that your build tree is 100% clean. The files generated in your previous attempts need to be completely removed.

                Here's how I build mine, using only 4 lines:

                > cd ~/Qt/5.5/Src/
                > configure -prefix "~/Qt/Custom/5.5.0/gcc492_x64" -opensource -confirm-license -nomake examples -nomake tests -opengl desktop
                > make -j 5
                > make install
                

                Here's an explanation for the 4 steps above:

                1. Go to the top-level directory
                2. Configure
                  • prefix sets the installation directory (DO NOT move/copy any files manually).
                  • nomake saves compilation time -- it avoids building the examples and test files. Remove these options if you want to build those files.
                  • Replace the opengl option with your own choice
                3. Compile
                  • j tells Make to use multiple threads, to speed up compilation
                4. Install the files into your prefix (DO NOT move/copy any files manually)
                E Offline
                E Offline
                Eyeless
                wrote on last edited by
                #7

                @JKSH Thank you very much for your answer, I've successfully built Qt using your tutorial!

                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