Project ERROR: Unknown module(s) in QT: svg quick qml
-
wrote on 5 Dec 2016, 09:56 last edited by
Hello everyone,
I've created a Qt version for my raspberry with the following manual on my Host System (Ubuntu):
https://wiki.qt.io/RaspberryPi2EGLFSThen I've installed on my Host System Qt Creator with
sudo apt-get install qt4-default qt4-dev-tools qtcreator libqt5svg5*
Afterwards, I have made a kit like in the manual described.
Qt Creator Once Qt is on the device, Qt Creator can be set up to build, deploy, run and debug Qt apps directly on the device with one click. Go to Options -> Devices Add Generic Linux Device Enter IP address, user & password Finish Go to Options -> Compilers Add GCC Compiler path: ~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ Go to Options -> Debuggers Add ~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gdb Go to Options -> Qt Versions Check if an entry with ~/raspi/qt5/bin/qmake shows up. If not, add it. Go to Options -> Build & Run Kits Add Generic Linux Device Device: the one we just created Sysroot: ~/raspi/sysroot Compiler: the one we just created Debugger: the one we just created Qt version: the one we saw under Qt Versions Qt mkspec: leave empty
But when I open my existing project, I get the following error:
Project ERROR: Unknown module(s) in QT: svg quick qmlDo you know what's wrong with my installation?
Thank you very much!
-
wrote on 5 Dec 2016, 10:11 last edited by
Hi Dominic,
this guide is only cloning qtbase. In step 7 of https://wiki.qt.io/RaspberryPi2EGLFS
change git clonegit://code.qt.io/qt/qtbase.git -b 5.6
togit://code.qt.io/qt/qt5.git -b 5.7
to clone also the modules and get current qt 5.7. In configure add-nomake examples -nomake tests -skip qtwebkit -skip qtwebkit-examples -skip qtwebengine
because the qwebengine will not compile due to a wrong assembler instruction. If you need qwebengine I can tell you how to fix. -
wrote on 5 Dec 2016, 13:19 last edited by
@sneubert thank you very much! You're my hero ;))
If someone else has got this problem according to the tutorial:
git clone git://code.qt.io/qt/qt5.git -b 5.7
cd qt5/
./init-repository
./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -nomake examples -nomake tests -skip qtwebkit -skip qtwebkit-examples -skip qtwebengine
make
make install
Can be marked as solved.
1/3