Trying to run Qt5.15.2 app on raspberry pi
Solved
QML and Qt Quick
-
Hello I am trying to run my qt app on rpi 4. the app works fine on windows now I want to run it on my pi.
error I am gettingQQmlApplicationEngine failed to load component qrc:/main.qml:58:9: Type HomePage unavailable qrc:/Pages/HomePage.qml:32:9: Type DigitalGauge unavailable qrc:/Component/DigitalGauge.qml:6:1: module "QtQuick.Extras.Private" is not installed qrc:/Component/DigitalGauge.qml:4:1: module "QtQuick.Extras" is not installed qrc:/Component/DigitalGauge.qml:3:1: module "QtQuick.Controls.Styles" is not installed qrc:/Component/DigitalGauge.qml:6:1: module "QtQuick.Extras.Private" is not installed qrc:/Component/DigitalGauge.qml:4:1: module "QtQuick.Extras" is not installed qrc:/Component/DigitalGauge.qml:3:1: module "QtQuick.Controls.Styles" is not installed qrc:/Component/DigitalGauge.qml:6:1: module "QtQuick.Extras.Private" is not installed qrc:/Component/DigitalGauge.qml:4:1: module "QtQuick.Extras" is not installed qrc:/Component/DigitalGauge.qml:3:1: module "QtQuick.Controls.Styles" is not installed
my rpi info
_,met$$$$$gg. pibot@raspberrypi ,g$$$$$$$$$$$$$$$P. ----------------- ,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) aarch64 ,$$P' `$$$. Host: Raspberry Pi 4 Model B Rev 1.5 ',$$P ,ggs. `$$b: Kernel: 6.1.21-v8+ `d$$' ,$P"' . $$$ Uptime: 1 hour, 47 mins $$P d$' , $$P Packages: 2039 (dpkg) $$: $$. - ,d$$' Shell: bash 5.1.4 $$; Y$b._ _,d$P' Resolution: 1920x1080 Y$$. `.`"Y$$$$P"' `$$b "-.__ WM: KWin `Y$$ Theme: PiXflat [GTK3] `Y$$. Icons: PiXflat [GTK3] `$$b. Terminal: /dev/pts/0 `Y$$b. CPU: BCM2835 (4) @ 1.800GHz `"Y$b._ Memory: 281MiB / 3794MiB
qmake version is
QMake version 3.1 Using Qt version 5.15.2 in /usr/lib/aarch64-linux-gnu
I have already tried and installed following packages
sudo apt install qml-module-qtlocation qml-module-qtpositioning sudo apt install qtlocation5-dev qtpositioning5-dev sudo apt install libqt5location5 libqt5positioning5 qtpositioning5-dev qtlocation5-dev
thanks
-