QML project can't be run by Static Qt linking version , Qt 5.2
-
I built qt staticaly.
Qt widgets applications works on my static kit. But qt quick applications doesn't work!
Then i tried to run default qt quick "hello world" on static kit and i failed to push run button because it was disabled. This program is working on normal kit.
In qt versions window when choosing my static qt i see warning sign and "No qmlscene installed" and "No qmlviewer installed".
In General Message window i see "Project ERROR: Unknown module(s) in QT: quick qml".
In static configuration "Run" button is disabled and onMouseHover it shows tooltip: ".pro file coudn't be parsed".pro file is default:
@
TEMPLATE = appQT += qml quick widgets
SOURCES += main.cpp
RESOURCES += qml.qrc
Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
Default rules for deployment.
include(deployment.pri)
@ -
Hello,
i'm sorry for my late answer, but i wasn't able to write you in the last few days. My .pro file looks almost like yours except for that my QT has only got qml and quick included.
@QT += qml quick@
But that shouldn't be the problem, your issue is a well known issue, you might check out this threads for further informations:
"QML apps not runnable using static build up to Qt 5.0.1 release!":http://qt-project.org/forums/viewthread/22566
"Build qml statically":http://www.qtcentre.org/threads/36271-Build-qml-statically
Also which QT version are you using? -
i am using 5.3 qt version. I downloaded it to test standalone apps and qml declaration of interface. I am very interested in qt and i want to migrate from c#/wpf. But this "small" issue is very disapointing me. I think there is a solution but i already wasted 1 week for it.
-
I am also using Qt 5.3. I will try it out later this day when i have more time and then i will provide what happens on my device. On which operating systems/devices do you want to use QML and your Applications? I can only recommend you to use QT for desktop devices. It works for mobile devices but for example for android i would rather use Java and the Android API.
-
I just solved the problem. The key feature was in start configure from Src folder, NOT from Src/qtbase.
But i have another problem. Applications works on my computer, but not works on another. In QtCreator\Qt Versions i see warning:
Non-installed -prefix build - for internal development only. In qt i am a newbie and i do not know what it is means. Help me please!