Unsolved Deploy error: qrc:/main.qml:2 module "QtQuick.Controls" is not installed
-
I built my program on one PC and want to run it on another PC without Qt installed.
Both os is Ubuntu 14.04.
I've followed this http://doc.qt.io/qt-5/linux-deployment.html to deploy my program.
I copied my program and libs below into one directory:
libicudata.so.56 libicuuc.so.56 libQt5DBus.so.5 libQt5Network.so.5 libQt5Quick.so.5 libQt5XcbQpa.so.5
libicui18n.so.56 libQt5Core.so.5 libQt5Gui.so.5 libQt5Qml.so.5 libQt5Widgets.so.5
platforms/libqxcb.soalso I wrote an sh script to start my program, just as the instruction says.
I can run the script and program on the compiling PC,
But, when I run the script on the deployment PC, I got error like:QQmlApplicationEngine failed to load component
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installedSo, any other libs needed? what should I do?
Thanks very much. -
@expressw What is not clear: did you use Qt provided by Ubuntu?
If so then you do not need to deploy your app, just copy the executable to the other PC.
You just need to make sure you have Qt packages installed which are required by your app (QtQuick). -
Thanks for your reply.
I do not use Qt provided by Ubuntu.
I compiled Qt from source.I guessed some Qt packages are required by my app, and I tried to install some qt package by 'apt-get install',
but that doesn't work. -
@expressw Did you build and deploy QtQuick and QtQuickControls (do you have libQt5Quick.so and libQt5QuickControls.so)?
-
@jsulm I have libQt5Quick.so, but no libQt5QuickControls.so