← Back to team overview

ubuntu-phone team mailing list archive

Manually run qml app on phone

 

I'm trying to run a simple qml app on the Aquaris E4.5 running OTA-12

I found this on the official Ubuntu Touch docs page:

https://askubuntu.com/questions/270832/how-do-i-install-an-app-on-a-device-running-ubuntu-touch

Suggesting this command:
qmlscene --desktop_file_hint=/usr/share/applications/qmlscene.desktop
YourApp.qml

This gave me errors about mir server:
UbuntuClientIntegration: connection to Mir server failed.

Another source told me to set the env var for the mir server:
export MIR_SOCKET=/var/run/mir_socket

After this it seems to run, but yields a segmentation fault.

I've tried with the console app on the phone, and phablet-shell. (SSH to
the phone doesn't work for me as it never gives a prompt after
authentication, last line is link to documentation).

My desktop file looks like this:

[Desktop Entry]
Version=1.0
Type=Application
Name=QMLTest
Comment=Just testing to see if we can get qml up and running
Exec=qmlscene qtquick_touchtest.qml

(I'm able to launch on my Linux Mint laptop Ubuntu v 14.04 with
this .desktop file)

Also, making a QML project in Qt Creator with the identical qml file and
deploying it to the phone via usb works (though it displays a couple of
cryptic errors).

---

So, what am I missing here? Any ideas?





Follow ups