Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. RaspberryPi: module "Qtquick.Controls" is not installed
QtWS25 Last Chance

RaspberryPi: module "Qtquick.Controls" is not installed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 1 Posters 1.5k 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by
    #1

    Hi,
    I cross compiled Qt for the RaspberryPi 4, but then run into errors of the type:

    qrc:/mainCyclicVoltammetry.qml:6 module "QtQuick.Controls.Material" is not installed
    qrc:/mainCyclicVoltammetry.qml:5 module "Qt.labs.platform" is not installed
    qrc:/mainCyclicVoltammetry.qml:3 module "QtQuick.Controls" is not installed
    qrc:/mainCyclicVoltammetry.qml:6 module "QtQuick.Controls.Material" is not installed
    qrc:/mainCyclicVoltammetry.qml:5 module "Qt.labs.platform" is not installed
    qrc:/mainCyclicVoltammetry.qml:3 module "QtQuick.Controls" is not installed
    qrc:/mainCyclicVoltammetry.qml:6 module "QtQuick.Controls.Material" is not installed
    qrc:/mainCyclicVoltammetry.qml:5 module "Qt.labs.platform" is not installed
    qrc:/mainCyclicVoltammetry.qml:3 module "QtQuick.Controls" is not installed
    
    
    

    I might very well have forgotten to copy some files or set some environment variable. What do I need to do to make Qt find those modules. ldd says that the executable found all the dlls it needs.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxwell31
      wrote on last edited by
      #2

      I should mention that I tried to set the following environment variables (output of export):

      declare -x QML2_IMPORT_PATH="/opt/qt5pi/qml/"
      declare -x QML_IMPORT_PATH="/opt/qt5pi/qml/"
      declare -x QT_PLUGIN_PATH="/opt/qt5pi/plugins"
      declare -x QT_QPA_PLATFORMTHEME="qt5ct"
      

      the content of /opt/qt5pi/qml is

      pi@raspberrypi:/opt/qt5pi/qml $ ls
      builtins.qmltypes  Qt  QtQml  QtQuick  QtQuick.2  QtTest
      

      and for example of QtQuick:

      pi@raspberrypi:/opt/qt5pi/qml/QtQuick $ ls
      Layouts  LocalStorage  Particles.2  Shapes  Window.2
      

      Is there something missing?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxwell31
        wrote on last edited by
        #3

        Hm, the problem is that I am actually missing those modules in the qml directory

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maxwell31
          wrote on last edited by
          #4

          The problem was that make install failed due to QtQuick3D. If I compile Qt with -skip qtquick3d it works

          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