QML device deployment

Viewed 1006

I have set the project to run QML with C++ having slots communication. Now I am stumbled with the message:

void QDeclarativeView::continueExecute()): 
    file:///data/data/org.qtproject.example.input/files/Input.qml: File not found 

I searched around and checked a similar problem, thus I followed that suggestion, changing my project file as follows:

QT += qml quick sensors xml
QT += declarative
SOURCES += \
    main.cpp
OTHER_FILES += \
    Input.qml
HEADERS += \
    Input.h
RESOURCES += \
    Input.qrc

# Required for deployment (?) :
QML_FILES.source = qml
QML_FILES.target = .
DEPLOYMENTFOLDERS += QML_FILES
# Required for deployment too (?) :
include(qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()

While adding this hack to the project file seems to work for Symbian and Harmattan, for Android the last two lines doesn't fix the problem, as the compiler gives the messages:

./input/qmlapplicationviewer/qmlapplicationviewer.pri:-1: error: No such file or directory
./input.pro:22: 'qtcAddDeployment' is not a recognized test function.

Even for Qt5 should we get worried about the target, even if when we defined the project we already set it for Android device?

So, could someone have any suggestion on how to get the QML deployed to Android device? Maybe some equivalent hack that will do the same magic that worked for Symbian but also could work for Android?

1 Answers
Related