Project ERROR: Unknown module(s) in QT:
-
I need to compile QGC on Ubuntu with arm architecture. I installed Ubuntu20.04.02 ARM64 with parallel desktop17 on a MacBook pro with m1 pro CPU, and cloned the QGC repository . For the latest version of QGC, I need to install Qt5.15.2. But I'm a new person on Qt and I don't know how to install Qt5.15.2 on my machine. So I switched to an older version of QGC to compile, which only required Qt5.11+. So there is this topic. I hope to get your help. The ultimate goal is to install a specific version of Qt on my machine. I find it difficult to install Qt on a machine with arm architecture. Do you have any suggestions?
-
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
-
@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?
-
@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$
-
@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!!!
-
@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$
-
Hi,
How is searching for QtMultimedia related to the location module missing ?
-
What did not work ?