Project ERROR: Unknown module(s) in QT: svg quick qml

  • Hello everyone,

    I've created a Qt version for my raspberry with the following manual on my Host System (Ubuntu):

    Then 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
        Generic Linux Device
        Enter IP address, user & password
    Go to Options -> Compilers
        Compiler path: ~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++
    Go to Options -> Debuggers
    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
          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 qml

    Do you know what's wrong with my installation?

    Thank you very much!

  • Hi Dominic,

    this guide is only cloning qtbase. In step 7 of
    change git clone git:// -b 5.6 to 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.

  • @sneubert thank you very much! You're my hero ;))

    If someone else has got this problem according to the tutorial:

    1. git clone git:// -b 5.7
    2. cd qt5/
    3. ./init-repository
    4. ./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
    5. make
    6. make install

    Can be marked as solved.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.