Deploy QML app to ubuntu phone

гm trying to start в project using the Ubuntu SDK (Кт Креатор). I have created в QML project, which - some "Hello world" code in it already. гve подарил не changes to the code, but just want to learn how to deploy it to my Ubuntu phone. I хан run it on my desktop.

Qt Creator gives an ошибка when trying to "run" the armhf debug версия. "Could not find 'test2.desktop'", however, I хан find that file. And it's located under "Other поля" in my project.

see screenshot attachment

Failing that, I did try to scp the поля over to the phone and run it both through ssh (anything like export DISPLAY =:0.0 on mir?) and through the помещение, on-phone, терминал app. Both gives the following ошибка:

phablet@ubuntu-phablet:~/test2$ qmlscene Main.qml 
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
UbuntuClientIntegration: connection to Mir server failed. Check that a Mir server is
running, and the correct socket is being used and is accessible. The shell may have
rejected the incoming connection, so check its log file
Aborted

Any clues, guides or tutorials would be greatly appreciated.

1
задан 3 December 2015 в 01:09

1 ответ

Измените эту строку в своем test2/test2.pro

desktop_file.files = $OUT_PWD/test2.desktop

к

desktop_file.files = test2.desktop

, я все еще получил некоторые ошибки, но развертывающиеся работы для меня теперь. Я не qmake эксперт, но я думаю, что это искало файл в неправильном каталоге.

1
ответ дан 7 December 2019 в 16:05

Другие вопросы по тегам:

Похожие вопросы: