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. Project ERROR: Unknown module(s) in QT:
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: Unknown module(s) in QT:

Scheduled Pinned Locked Moved Unsolved General and Desktop
27 Posts 4 Posters 17.8k Views 1 Watching
  • 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.
  • M mchmch

    I try to build Qt5.15.2 by source code, but everything is OK until “sudo make install"

    collect2: error: ld returned 1 exit status
    make[5]: *** [Makefile:85: ../../../../plugins/imageformats/libqwebp.so] Error 1
    make[5]: Leaving directory '/home/parallels/qt5/qtimageformats/src/plugins/imageformats/webp'
    make[4]: *** [Makefile:138: sub-webp-install_subtargets] Error 2
    make[4]: Leaving directory '/home/parallels/qt5/qtimageformats/src/plugins/imageformats'
    make[3]: *** [Makefile:59: sub-imageformats-install_subtargets] Error 2
    make[3]: Leaving directory '/home/parallels/qt5/qtimageformats/src/plugins'
    make[2]: *** [Makefile:85: sub-plugins-install_subtargets] Error 2
    make[2]: Leaving directory '/home/parallels/qt5/qtimageformats/src'
    make[1]: *** [Makefile:60: sub-src-install_subtargets] Error 2
    make[1]: Leaving directory '/home/parallels/qt5/qtimageformats'
    make: *** [Makefile:282: module-qtimageformats-install_subtargets] Error 2
    
    
    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #15

    @mchmch Why do you want to build Qt by yourself instead of downloading the online installer and installing the version you need?

    M 1 Reply Last reply
    0
    • jsulmJ jsulm

      @mchmch Why do you want to build Qt by yourself instead of downloading the online installer and installing the version you need?

      M Offline
      M Offline
      mchmch
      wrote on last edited by
      #16

      @jsulm online installer ? it didn't work, I don't know why.

      now I can build the qt5 on my computer, but I don't know how to use it if I don't install it. Building_Qt_5_from_Git

      f9735f8e-8485-4b65-8958-9093e5319baf-image.png

      jsulmJ 1 Reply Last reply
      0
      • M mchmch

        @jsulm online installer ? it didn't work, I don't know why.

        now I can build the qt5 on my computer, but I don't know how to use it if I don't install it. Building_Qt_5_from_Git

        f9735f8e-8485-4b65-8958-9093e5319baf-image.png

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

        @mchmch said in Project ERROR: Unknown module(s) in QT::

        it didn't work, I don't know why

        What happened?
        Building Qt isn't trivial. You should really try to install using the online or offline installer.

        "now I can build the qt5 on my computer" - like described in the link you posted. What exactly is the problem?

        M 2 Replies Last reply
        0
        • jsulmJ jsulm

          @mchmch said in Project ERROR: Unknown module(s) in QT::

          it didn't work, I don't know why

          What happened?
          Building Qt isn't trivial. You should really try to install using the online or offline installer.

          "now I can build the qt5 on my computer" - like described in the link you posted. What exactly is the problem?

          M Offline
          M Offline
          mchmch
          wrote on last edited by
          #18

          @jsulm I can't open the .run file, I am sure that everything is under the guiden. I think the problem is that the cpu architecture is different.

          jsulmJ 2 Replies Last reply
          0
          • M mchmch

            @jsulm I can't open the .run file, I am sure that everything is under the guiden. I think the problem is that the cpu architecture is different.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #19
            This post is deleted!
            1 Reply Last reply
            0
            • M mchmch

              @jsulm I can't open the .run file, I am sure that everything is under the guiden. I think the problem is that the cpu architecture is different.

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

              @mchmch OK, I see now that you're on ARM.
              In this case you have to build Qt by yourself.
              Then please provide more information: which step from the build explanation does not work?

              1 Reply Last reply
              1
              • jsulmJ jsulm

                @mchmch said in Project ERROR: Unknown module(s) in QT::

                it didn't work, I don't know why

                What happened?
                Building Qt isn't trivial. You should really try to install using the online or offline installer.

                "now I can build the qt5 on my computer" - like described in the link you posted. What exactly is the problem?

                M Offline
                M Offline
                mchmch
                wrote on last edited by
                #21

                @jsulm now I get the way to Set the Environment Variables, by Qt for Linux/X11 - Building from Source after by the wiki. The wiki didn't tell me how to add the PATH.

                PATH=/usr/local/Qt-%VERSION%/bin:$PATH
                export PATH
                
                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mchmch
                  wrote on last edited by
                  #22

                  @mchmch but now the problem again, and seem to different:

                  parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ sudo apt-get install qtmultimedia5-dev
                  Reading package lists... Done
                  Building dependency tree       
                  Reading state information... Done
                  The following additional packages will be installed:
                    libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5 libqt5multimediawidgets5
                  The following NEW packages will be installed:
                    libqt5multimedia5 libqt5multimediagsttools5 libqt5multimediaquick5 libqt5multimediawidgets5 qtmultimedia5-dev
                  0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
                  Need to get 473 kB of archives.
                  After this operation, 2,598 kB of additional disk space will be used.
                  Do you want to continue? [Y/n] 
                  Get:1 https://mirrors.ustc.edu.cn/ubuntu-ports focal/universe arm64 libqt5multimedia5 arm64 5.12.8-0ubuntu1 [263 kB]
                  Get:2 https://mirrors.ustc.edu.cn/ubuntu-ports focal/universe arm64 libqt5multimediawidgets5 arm64 5.12.8-0ubuntu1 [35.0 kB]
                  Get:3 https://mirrors.ustc.edu.cn/ubuntu-ports focal/universe arm64 libqt5multimediagsttools5 arm64 5.12.8-0ubuntu1 [97.6 kB]
                  Get:4 https://mirrors.ustc.edu.cn/ubuntu-ports focal/universe arm64 libqt5multimediaquick5 arm64 5.12.8-0ubuntu1 [36.5 kB]
                  Get:5 https://mirrors.ustc.edu.cn/ubuntu-ports focal/universe arm64 qtmultimedia5-dev arm64 5.12.8-0ubuntu1 [41.5 kB]
                  Fetched 473 kB in 1s (417 kB/s)              
                  Selecting previously unselected package libqt5multimedia5:arm64.
                  (Reading database ... 196485 files and directories currently installed.)
                  Preparing to unpack .../libqt5multimedia5_5.12.8-0ubuntu1_arm64.deb ...
                  Unpacking libqt5multimedia5:arm64 (5.12.8-0ubuntu1) ...
                  Selecting previously unselected package libqt5multimediawidgets5:arm64.
                  Preparing to unpack .../libqt5multimediawidgets5_5.12.8-0ubuntu1_arm64.deb ...
                  Unpacking libqt5multimediawidgets5:arm64 (5.12.8-0ubuntu1) ...
                  Selecting previously unselected package libqt5multimediagsttools5:arm64.
                  Preparing to unpack .../libqt5multimediagsttools5_5.12.8-0ubuntu1_arm64.deb ...
                  Unpacking libqt5multimediagsttools5:arm64 (5.12.8-0ubuntu1) ...
                  Selecting previously unselected package libqt5multimediaquick5:arm64.
                  Preparing to unpack .../libqt5multimediaquick5_5.12.8-0ubuntu1_arm64.deb ...
                  Unpacking libqt5multimediaquick5:arm64 (5.12.8-0ubuntu1) ...
                  Selecting previously unselected package qtmultimedia5-dev:arm64.
                  Preparing to unpack .../qtmultimedia5-dev_5.12.8-0ubuntu1_arm64.deb ...
                  Unpacking qtmultimedia5-dev:arm64 (5.12.8-0ubuntu1) ...
                  Setting up libqt5multimedia5:arm64 (5.12.8-0ubuntu1) ...
                  Setting up libqt5multimediawidgets5:arm64 (5.12.8-0ubuntu1) ...
                  Setting up libqt5multimediagsttools5:arm64 (5.12.8-0ubuntu1) ...
                  Setting up libqt5multimediaquick5:arm64 (5.12.8-0ubuntu1) ...
                  Setting up qtmultimedia5-dev:arm64 (5.12.8-0ubuntu1) ...
                  Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
                  
                  
                  parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ sudo apt-get install libqt5multimedia5
                  Reading package lists... Done
                  Building dependency tree       
                  Reading state information... Done
                  libqt5multimedia5 is already the newest version (5.12.8-0ubuntu1).
                  libqt5multimedia5 set to manually installed.
                  0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                  parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ dpkg -L ^C
                  parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ dpkg -L libqt5multimedia5
                  /.
                  /usr
                  /usr/lib
                  /usr/lib/aarch64-linux-gnu
                  /usr/lib/aarch64-linux-gnu/libQt5Multimedia.so.5.12.8
                  /usr/share
                  /usr/share/doc
                  /usr/share/doc/libqt5multimedia5
                  /usr/share/doc/libqt5multimedia5/changelog.Debian.gz
                  /usr/share/doc/libqt5multimedia5/copyright
                  /usr/lib/aarch64-linux-gnu/libQt5Multimedia.so.5
                  /usr/lib/aarch64-linux-gnu/libQt5Multimedia.so.5.12
                  parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ qmake ../
                  Project MESSAGE: Qt version 5.15.2
                  Project MESSAGE: Linux build
                  Project MESSAGE: Daily Build
                  Project MESSAGE: GIT_DESCRIBE v4.2.0-93-gfb56cb60e
                  Project MESSAGE: QGroundControl APP_VERSION_STR VERSION v4.2.0-93-gfb56cb60e 4.2.0.93
                  Project MESSAGE: Release flavor
                  Project MESSAGE: Skipping support for Pairing
                  Project MESSAGE: Using MAVLink dialect 'ardupilotmega'.
                  Project MESSAGE: Skipping support for Zeroconf (unsupported platform)
                  Project MESSAGE: Including support for AirMap
                  Project MESSAGE: Taisync disabled
                  Project MESSAGE: Microhard disabled
                  collect2 version 9.4.0
                  /usr/bin/ld.gold -plugin /usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUndbq3.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. --version -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o
                  Project MESSAGE: Including support for video streaming
                  GNU gold (GNU Binutils for Ubuntu 2.34) 1.16
                  Copyright (C) 2020 Free Software Foundation, Inc.
                  This program is free software; you may redistribute it under the terms of
                  the GNU General Public License version 3 or (at your option) a later version.
                  This program has absolutely no warranty.
                  Project ERROR: Unknown module(s) in QT: location positioning quickcontrols2 texttospeech multimedia location-private positioning-private charts
                  parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ 
                  
                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mchmch
                    wrote on last edited by
                    #23

                    @jsulm said in Project ERROR: Unknown module(s) in QT::

                    Then please provide more information: which step from the build expla

                    summary:
                    step 1. I follow the wiki :

                    sudo apt-get build-dep qt5-default
                    sudo apt-get install libxcb-xinerama0-dev
                    
                    sudo apt-get install build-essential perl python git
                    
                    sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
                    
                    sudo apt-get install flex bison gperf libicu-dev libxslt-dev ruby
                    
                    sudo apt-get install libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libxtst-dev libxss-dev libdbus-1-dev libevent-dev libfontconfig1-dev libcap-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libegl1-mesa-dev gperf bison nodejs
                    
                    sudo apt-get install libasound2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev
                    
                    
                    git clone https://code.qt.io/qt/qt5.git
                    cd qt5
                    git checkout 5.15.2
                    
                    perl init-repository
                    
                    git submodule update --init --recursive                     
                    
                    ./configure
                    
                    make -j8
                    
                    sudo make install -j8
                    
                    PATH=/usr/local/Qt-%VERSION%/bin:$PATH
                    export PATH
                    
                    
                    

                    and now I can see that :

                    parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ qmake -v
                    QMake version 3.1
                    Using Qt version 5.15.2 in /usr/local/Qt-5.15.2/lib
                    
                    

                    step 2. cd to build to make ../

                    parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ qmake ../
                    Project MESSAGE: Qt version 5.15.2
                    Project MESSAGE: Linux build
                    Project MESSAGE: Daily Build
                    Project MESSAGE: GIT_DESCRIBE v4.2.0-93-gfb56cb60e
                    Project MESSAGE: QGroundControl APP_VERSION_STR VERSION v4.2.0-93-gfb56cb60e 4.2.0.93
                    Project MESSAGE: Release flavor
                    Project MESSAGE: Skipping support for Pairing
                    Project MESSAGE: Using MAVLink dialect 'ardupilotmega'.
                    Project MESSAGE: Skipping support for Zeroconf (unsupported platform)
                    Project MESSAGE: Including support for AirMap
                    Project MESSAGE: Taisync disabled
                    Project MESSAGE: Microhard disabled
                    collect2 version 9.4.0
                    /usr/bin/ld.gold -plugin /usr/lib/gcc/aarch64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccAYPKZU.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. --version -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/9/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/crtn.o
                    Project MESSAGE: Including support for video streaming
                    GNU gold (GNU Binutils for Ubuntu 2.34) 1.16
                    Copyright (C) 2020 Free Software Foundation, Inc.
                    This program is free software; you may redistribute it under the terms of
                    the GNU General Public License version 3 or (at your option) a later version.
                    This program has absolutely no warranty.
                    Project ERROR: Unknown module(s) in QT: location positioning quickcontrols2 texttospeech multimedia location-private positioning-private charts
                    parallels@ubuntu-linux-20-04-desktop:~/qgroundcontrol/build$ 
                    
                    

                    it can't fix by sudo apt-get install XXX for unknow modules xxx. By the way ,before I install Qt15.5.2, the output of "qmake -v" is

                    parallels@ubuntu-linux-20-04-desktop:~/qt5$ qmake -v
                    QMake version 3.1
                    Using Qt version 5.12.8 in /usr/lib/aarch64-linux-gnu
                    parallels@ubuntu-linux-20-04-desktop:~/qt5$ PATH=/usr/local/Qt-5.15.2/bin/:$PATH
                    parallels@ubuntu-linux-20-04-desktop:~/qt5$ export PATH
                    parallels@ubuntu-linux-20-04-desktop:~/qt5$ echo $PATH
                    /usr/local/Qt-5.15.2/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
                    parallels@ubuntu-linux-20-04-desktop:~/qt5$ qmake -v
                    QMake version 3.1
                    Using Qt version 5.15.2 in /usr/local/Qt-5.15.2/lib
                    
                    

                    and in the make && sudo make install, everything is ok!!!

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mchmch
                      wrote on last edited by
                      #24

                      @mchmch said in Project ERROR: Unknown module(s) in QT::

                      Project ERROR: Unknown module(s) in QT: location

                      modules seem to be increct install:

                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ dpkg -L libqt5multimedia5
                      /.
                      /usr
                      /usr/lib
                      /usr/lib/aarch64-linux-gnu
                      /usr/lib/aarch64-linux-gnu/libQt5Multimedia.so.5.12.8
                      /usr/share
                      /usr/share/doc
                      /usr/share/doc/libqt5multimedia5
                      /usr/share/doc/libqt5multimedia5/changelog.Debian.gz
                      /usr/share/doc/libqt5multimedia5/copyright
                      /usr/lib/aarch64-linux-gnu/libQt5Multimedia.so.5
                      /usr/lib/aarch64-linux-gnu/libQt5Multimedia.so.5.12
                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ which qmake
                      /usr/local/Qt-5.15.2/bin//qmake
                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ ls -l /usr/local/Qt-5.15.2/bin//qmake
                      -rwxr-xr-x 1 root root 28984288 Mar 11 19:55 /usr/local/Qt-5.15.2/bin//qmake
                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ dpkg -l|grep qt5|grep qmake
                      ii  qt5-qmake:arm64                            5.12.8+dfsg-0ubuntu2.1              arm64        Qt 5 qmake Makefile generator tool
                      ii  qt5-qmake-bin                              5.12.8+dfsg-0ubuntu2.1              arm64        Qt 5 qmake Makefile generator tool — binary file
                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ qtchooser -list-versions
                      4
                      5
                      default
                      qt4-aarch64-linux-gnu
                      qt4
                      qt5-aarch64-linux-gnu
                      qt5
                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ qtchooser -print-env
                      QT_SELECT="default"
                      QTTOOLDIR="/usr/lib/qt5/bin"
                      QTLIBDIR="/usr/lib/aarch64-linux-gnu"
                      parallels@ubuntu-linux-20-04-desktop:~/qt5$ 
                      
                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #25

                        Hi,

                        How is searching for QtMultimedia related to the location module missing ?

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

                        M 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Hi,

                          How is searching for QtMultimedia related to the location module missing ?

                          M Offline
                          M Offline
                          mchmch
                          wrote on last edited by
                          #26

                          @SGaist didn't work

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

                            What did not work ?

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

                            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