Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Project ERROR: Unknown module(s) in QT: svg quick qml
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 7.3k 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.
  • D Offline
    D Offline
    Dominic Jonas
    wrote on 5 Dec 2016, 09:56 last edited by
    #1

    Hello everyone,

    I've created a Qt version for my raspberry with the following manual on my Host System (Ubuntu):
    https://wiki.qt.io/RaspberryPi2EGLFS

    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
      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 qml

    Do you know what's wrong with my installation?

    Thank you very much!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sneubert
      wrote on 5 Dec 2016, 10:11 last edited by
      #2

      Hi Dominic,

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

      1 Reply Last reply
      1
      • D Offline
        D Offline
        Dominic Jonas
        wrote on 5 Dec 2016, 13:19 last edited by
        #3

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

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

        1. git clone git://code.qt.io/qt/qt5.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.

        1 Reply Last reply
        1

        1/3

        5 Dec 2016, 09:56

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved