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

Jolla QML API is missing Particles etc. [answered]

asked 2014-01-01 20:50:21 +0300

DaTa gravatar image

Hello,

In the official Harbour FAQ, it is said that "QtQuick.Particles 2.0" import is allowed. But when I try to deploy my application binaries with SailfishOS IDE on my Jolla, when a QML element importing particles is loaded, the application error stream in the IDE says:

unknown:111 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:111: Error: Error while loading page: file:///opt/sdk/saildoku/usr/share/saildoku/qml/pages/GameView.qml:58 Type BackgroundAnim unavailable file:///opt/sdk/saildoku/usr/share/saildoku/qml/pages/BackgroundAnim.qml:2 module "QtQuick.Particles" is not installed

And indeed, I went looking in my Jolla filesystem and what a surprise when I saw this:

$ ls usr/lib/qt5/qml/QtQuick/
LocalStorage/     Window.2/     XmlListModel/
$ ls usr/lib/qt5/qml/QtQuick.2/
libqtquick2plugin.so  plugins.qmltypes      qmldir

Maybe I did not understand something, but I couldn't manage to find the Particles import in my filesystem, even if the FAQ says this import is allowed :( Finally, notice that on Mer SDK my application runs fine (and I find indeed the Particles.2 folder in QtQuick...). But not on the Jolla...

So my question is: What have I not understood in the Harbour FAQ that would explain such a behavior? How to know, if the emulator does not properly simulate the Jolla, if the application will be rejected by Jolla Harbour? :(

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by fk_lx
close date 2014-01-02 00:03:29.763964

2 Answers

Sort by » oldest newest most voted
2

answered 2014-01-01 20:58:41 +0300

fk_lx gravatar image

updated 2014-01-01 21:01:15 +0300

Have you tried to install the required package on your device?

pkcon install qt5-qtdeclarative-import-particles2

HINT: it's not installed by default, and your app package should have dependency on it (add it in yaml file)

edit flag offensive delete publish link more
1

answered 2014-01-01 23:37:28 +0300

DaTa gravatar image

OK I got it now!! :) I finally found this guide about YAML file and how to add dependencies and now it works like a charm :) Thank you very much for your piece of advice!

edit flag offensive delete publish link more

Comments

@DaTa Very good! Also this is very useful source: https://sailfishos.org/develop-packaging-apps.html

fk_lx ( 2014-01-02 00:02:19 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2014-01-01 20:50:21 +0300

Seen: 553 times

Last updated: Jan 01 '14