Error "no version information available"
-
Hi,
I want to execute a "Qt Quick Controls Application" from windows to Raspberry pi3.
I use this link:
https://visualgdb.com/tutorials/raspberry/qt/embedded/I can run "Qt Widgets Application" but I can not run "Qt Quick Controls Application" and I have this error:
/home/pi/untitled4: /usr/lib/arm-linux-. ... .... QQmlApplicationEngine failed to load component qrc:/main.qml:2 module "QtQuick" is not installed
Update: I reinstalled Qt and I have new error:
QML debugging is enabled. Only use this in a safe environment. Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters). QQmlApplicationEngine failed to load component qrc:/main.qml:2 module "QtQuick.Controls" plugin "qtquickcontrolsplugin" not found
-
That guide is quite outdated. Check this one: https://wiki.qt.io/RaspberryPi2EGLFS I've followed it literally 2 days ago and it worked (with one small change: I added -no-gold-linker config option, and I skipped some Qt modules which I don't need: webview, script, qtquick1 etc.).
To me it looks like your deployment is not complete - Qt is not properly installed on RPi. If you try to compile and run some QtWidgets example, does it work?
-
That guide is quite outdated. Check this one: https://wiki.qt.io/RaspberryPi2EGLFS I've followed it literally 2 days ago and it worked (with one small change: I added -no-gold-linker config option, and I skipped some Qt modules which I don't need: webview, script, qtquick1 etc.).
To me it looks like your deployment is not complete - Qt is not properly installed on RPi. If you try to compile and run some QtWidgets example, does it work?
-
Hm, ok so at least some parts do work.
I still suspect that something is wrong with that guide - they claim it is ok to get qmake error during build and then do a partial reconfigure... this stinks. And they mix -xplatform with -device which is unnecessary (at least in newer Qt versions. Qt 5.5 is very old). When you open your qt installation directory (== where "make install" copied the libs), do you see any contents in <install dir>/qml/QtQuick/Controls.2/ ?
-
Hm, ok so at least some parts do work.
I still suspect that something is wrong with that guide - they claim it is ok to get qmake error during build and then do a partial reconfigure... this stinks. And they mix -xplatform with -device which is unnecessary (at least in newer Qt versions. Qt 5.5 is very old). When you open your qt installation directory (== where "make install" copied the libs), do you see any contents in <install dir>/qml/QtQuick/Controls.2/ ?
-
how? Qt 5.5 did not have Controls.2 o_O. Which Qt version have you compiled?
Well, I don't know. If QtWidgets examples work, it means the config is more or less good, and plugins dir is visible. Weird, weird. Check http://doc.qt.io/qt-5/deployment-plugins.html maybe?
-
how? Qt 5.5 did not have Controls.2 o_O. Which Qt version have you compiled?
Well, I don't know. If QtWidgets examples work, it means the config is more or less good, and plugins dir is visible. Weird, weird. Check http://doc.qt.io/qt-5/deployment-plugins.html maybe?
-
@sierdzio said in Error "no version information available":
Which Qt version have you compiled?
Qt 5.5
I don't know. Maybe I copied manual. I don't remember.
@neda said in Error "no version information available":
@sierdzio said in Error "no version information available":
Which Qt version have you compiled?
Qt 5.5
I don't know. Maybe I copied manual. I don't remember.
I'm sorry, then, I can't help if you don't know what you are working with. Get your environment sorted out and then come back if the problem persists.
I strongly recommend following this guide - it really works. The on you are using looks broken to me.
BTW. Here you claim you are on Qt 5.6.1.
-
@neda said in Error "no version information available":
@sierdzio said in Error "no version information available":
Which Qt version have you compiled?
Qt 5.5
I don't know. Maybe I copied manual. I don't remember.
I'm sorry, then, I can't help if you don't know what you are working with. Get your environment sorted out and then come back if the problem persists.
I strongly recommend following this guide - it really works. The on you are using looks broken to me.
BTW. Here you claim you are on Qt 5.6.1.