Re: [SailfishDevel] ContextKit not installed?
On Monday, 4 May 2020 15.30 Martin Kampas wrote: > > it isn't recognized in the > > editor, "QML module does not contain information about components > > contained in the plugins". > > I checked that now and I confirm this is a bug - the package does not > provide the QML type information. > > You can work this around by using qmlplugindump on your device to generate > a plugins.qmltypes file and copy it into the corresponding plugin > directory under ~/ SailfishOS/mersdk/targets//usr/lib/qt5/qml/. I'm not sure I follow: The file missing on my PC is ~/SailfishOS/mersdk/targets//usr/lib/qt5/qml/org/freedesktop/contextkit/plugin.qmltypes ? I should run qmlplugindump on the device? From which folder? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ContextKit not installed?
Hi Thomas, > it isn't recognized in the > editor, "QML module does not contain information about components contained > in the plugins". I checked that now and I confirm this is a bug - the package does not provide the QML type information. You can work this around by using qmlplugindump on your device to generate a plugins.qmltypes file and copy it into the corresponding plugin directory under ~/ SailfishOS/mersdk/targets//usr/lib/qt5/qml/. BR, Martin ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ContextKit not installed?
On Monday, 4 May 2020 07.12 Ville Nummela wrote: > On 1.5.2020 10.24, Thomas Tanghus wrote > > > [C] expression for network:71 - > > file:///usr/share/harbour-dktv/qml/components/Network.qml:30 module > > "org.freedesktop.contextkit" is not installed > Maybe the error message is correct, and you don't have the > org.freedesktop.context plugin installed? Without seeing your project > this is just guessing, but my guess is that you don't have "Requires: > contextkit-declarative-qt5" line in your .spec file. You would be right in guessing so. I'm still not really familiar with the build system, so I wasn't aware it was needed, AND I have been developing on an app using it for years without that "Requires:" line. So ;) https://github.com/tanghus/currency-converter-qml/blob/master/rpm/harbour-currencyconverter.spec#L19 https://github.com/tanghus/currency-converter-qml/blob/master/qml/components/Network.qml#L30 https://openrepos.net/content/tanghus/currency-converter-sailfishos Anyways, it's working now - \o/ - except that it isn't recognized in the editor, "QML module does not contain information about components contained in the plugins". Great, btw, that ViewPlaceholder, PageHeader etc. are properly recognized in the IDE -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ContextKit not installed?
On 1.5.2020 10.24, Thomas Tanghus wrote [C] expression for network:71 - file:///usr/share/harbour-dktv/qml/components/Network.qml:30 module "org.freedesktop.contextkit" is not installed Maybe the error message is correct, and you don't have the org.freedesktop.context plugin installed? Without seeing your project this is just guessing, but my guess is that you don't have "Requires: contextkit-declarative-qt5" line in your .spec file. BR, Ville ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ContextKit not installed?
On Friday, 1 May 2020 09.24 Thomas Tanghus wrote: > Another of my apps now can't find the custom QML plugin packaged with it. > > I haven't updated the SDK yet, so still on 2.2.4, but shouldn't it be > backwards compatible? Upgrading to SDK 3.1 didn't help. Is it just me, or is the whole SDK install, update, configure *extremely" fragile? It feels like it breaks each time there's an update, which is partly why I hadn't updated it earlier. Should I use Docker for the build engine instead? Maybe setup a cli based build/install process? Or would that make no difference in this context? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] ContextKit not installed?
I updated to 3.3.0.16 last night, and now I get this error when trying to run any of my apps that uses it: [C] expression for network:71 - file:///usr/share/harbour-dktv/qml/components/Network.qml:30 module "org.freedesktop.contextkit" is not installed I have this import: import org.freedesktop.contextkit 1.0 which - still - is in https://github.com/sailfishos/sdk-harbour-rpmvalidator/blob/master/allowed_qmlimports.conf Normally when encountering such an error, the app would end up with a "White Screen of Death", wouldn't it? First thing that got me wondering, was that when installing an app as RPM from the SDK, the device asked for confirmation to install? Another of my apps now can't find the custom QML plugin packaged with it. I haven't updated the SDK yet, so still on 2.2.4, but shouldn't it be backwards compatible? -- Med venlig hilsen / Best regards Thomas Tanghus A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org