QtQuick.Controls module not installed on Raspberry Pi

I am trying to compile some qml on Raspberry pi 3 working with Raspbian-Jessie using qt5 (5.3.2).
I managed to run some simple things, but now I need to use QtQuick.Controls, so I added import QtQuick.Controls 1.0 to my qml file, but when I try to run it, I get this error message: module "QtQuick.Controls" is not installed
Qt is installed in the following folder /usr/lib/arm-linux-gnueabihf/qt5/ (it is automatically detected), so I went there and found that QtQuick Controls is actually there (in [path to qt]/qml/QtQuick/Controls )

Do I need to do something to install it?
I tried adding /usr/lib/arm-linux-gnueabihf/qt5/qml/QtQuick/Controls to QML_IMPORT_PATH but I still get the error message.
I also read that I need QtQuick 2.0 for QtQuick.Controls to work, but when I change import QtQuick 1.0 to import QtQuick 2.0 , I get module "QtQuick" version 2.0 is not installed
Has anyone managed to use QtQuick.Controls on a Raspberry Pi?
Any tips on how to debug this?

+5
source share
1 answer

The dependencies for QML in Raspbian are somewhat confusing. Try checking if these packages are installed by first using apt-get install or apt-cache search to see what each individual package does:

 qtdeclarative5-* qml-module-qtquick* qtquick1-* qtquickcontrols5-* qml-module-qtquick2 

After that, Qt Creator should compile without any problems.

0
source

Source: https://habr.com/ru/post/1262532/


All Articles