We have moved to a new Sailfish OS Forum. Please start new discussions there.

sailfish-qml missing / creating QML-only apps fails

asked 2018-10-21 18:04:50 +0300

Mario gravatar image

updated 2018-10-22 23:47:27 +0300

michfu gravatar image

Hi, I just tried to create a QML-only app in Sailfish OS SDK 1807.

However, the application cannot be deployed / started since the binary "sailfish-qml" is missing.

The same is true for the python example app referenced in https://sailfishos.org/wiki/Tutorial_-_Creating_an_application_in_Python (https://github.com/sailfishos/python-sample)

I presume "sailfish-qml" is supposed to be some kind of a "launcher app" to start the QML-only apps. Though, it cannot be found neither in the emulator nor on my SailfishX phone.

Is this a bug or do I something wrong?

p.s. I finally got the python example running by creating a regular sailfish app (not QML-only) and replacing the .qml file (and copying the .py file)... But this still does not solve the actual issue. Also, this only worked on the phone, not in the emulator (but I think that's an issue with pytotherside).

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted

answered 2018-10-22 19:33:47 +0300

michfu gravatar image

updated 2018-10-22 19:35:20 +0300

Did you deploy your app as rpm? Otherwhise dependencies won't get installed.

Here it works:

[nemo@SailfishEmul ~]$ rpm -qf $(which sailfish-qml)

libsailfishapp-launcher must be a dependency of "qml-only" apps.

edit flag offensive delete publish link more


Indeed, I deployed as "Copy Files". Deploy as RPM appears to be not straight forward (at least the play button is disabled this way but enabled with "Copy Files").

Mario ( 2018-10-22 23:03:20 +0300 )edit

Actually, I retried deploying as RPM. Now it works (play button is shown). And the python example actually works. Thank you very much.

Mario ( 2018-10-22 23:17:39 +0300 )edit

Later on you can use "Copying Binaries", but if you use rpm functionalities like dependencies, you got to use "RPM Package" at least once (or after changes to the dependencies in the yaml file).

I'm using "Building An RPM Package" for creating RPMs and distribute them. Select it, go to Build -> Deploy Project "..." and a Window will popup showing you, where the RPM is located.

michfu ( 2018-10-22 23:47:02 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2018-10-21 18:04:50 +0300

Seen: 385 times

Last updated: Jun 03 '19