Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 14.04 Martin Kampas wrote: > > Now I just have to figure why some QML modules can't be imported... > If you mean that there are red highlights etc. in the source code opened > in Qt Creator, then this is likely because the QML modules are not > installed in the (active) build target. > > If the QML modules are provided by packages pulled in as BuildRequires in > .spec, all you should need to do is rebuilding the project (or just > running qmake). > > If the QML modules are not pulled in as BuildRequires, you need to install > them manually into the build target using Options > Sailfish OS > Build > Engine > Manage Build Targets > Manage Packages under Qt Creator or from > command line using `sfdk tools package- install`. > > Should you still have troubles fixing that, it would be nice to get more > info about the modules and the content of your .spec at least. I have two issues: One is that I can't import org.freedesktop.contextkit. In attached screen shot it seems to be installed in the SDK, so it must be missing on device? The error (in separate email about ContextKit) comes when running it on the device. It flees my memory if I have had to install anything extra when I started using it. The other issue is ... is a non-issue after a rebuild and deploy ;) 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] Sailfish SDK 3.1 has been released to Early Access
Hi Thomas, Switching the updates/updates-ea repositories is actually only needed to subscribe for future EA updates. The installation is not affected by this change (unless you use an older installer at the time an EA update is already available). So it seems it was really just a temporary download error which disappeared by the time your tried again after changing repository settings. > Now I just have to figure why some QML modules can't be imported... If you mean that there are red highlights etc. in the source code opened in Qt Creator, then this is likely because the QML modules are not installed in the (active) build target. If the QML modules are provided by packages pulled in as BuildRequires in .spec, all you should need to do is rebuilding the project (or just running qmake). If the QML modules are not pulled in as BuildRequires, you need to install them manually into the build target using Options > Sailfish OS > Build Engine > Manage Build Targets > Manage Packages under Qt Creator or from command line using `sfdk tools package- install`. Should you still have troubles fixing that, it would be nice to get more info about the modules and the content of your .spec at least. BR, Martin On pátek 1. května 2020 13:42:52 CEST Thomas Tanghus wrote: > On Friday, 1 May 2020 13.19 Martin Kampas wrote: > > Right after your first email I thought it was just a temporary error in > > your download location, but now that you write about reading release > > notes properly I am curious what was the issue more specifically? Maybe > > it was something we should highlight more there. > > You have actually made it quite clear in in the linked notes. Reading them > does help ;) > https://sailfishos.org/wiki/Application_SDK_Early_Access#Installing_the_Ear > ly_Access_SDK > > 1. Open the Sailfish OS SDK Installer > 2. Click Settings > 3. Go to the Repositories page > 4. Uncheck (Disable) the updates repository > 5. Check (Enable) the updates-ea repository > 6. Click OK and continue with the installation instructions > > > > libtinfo5 is in Ubuntu 19.10 described as "legacy version", so maybe the > > > SDK should link against a newer version; at least when Ubuntu 20.04 LTS > > > is released. Isn't it by now, btw? > > > > Sailfish SDK links against older libraries in order to support older > > operating systems, which is often the case of corporate users. Listed > > here https://sailfishos.org/wiki/Application_SDK_Known_Issues[1] . > > I had not seen that. Thanks. > > > > Anyways, I installed the legacy version and it seems to work, but I > > > don't even know what Clang does to start with ;) > > > > You can start by reading e.g. > > https://www.qt.io/blog/2018/06/05/qt-creators-clang-code-model[2] . > > Yes, I was being lazy ;) Julien also explained. Thanks to both. > ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 13.19 Martin Kampas wrote: > Right after your first email I thought it was just a temporary error in > your download location, but now that you write about reading release > notes properly I am curious what was the issue more specifically? Maybe > it was something we should highlight more there. You have actually made it quite clear in in the linked notes. Reading them does help ;) https://sailfishos.org/wiki/Application_SDK_Early_Access#Installing_the_Early_Access_SDK 1. Open the Sailfish OS SDK Installer 2. Click Settings 3. Go to the Repositories page 4. Uncheck (Disable) the updates repository 5. Check (Enable) the updates-ea repository 6. Click OK and continue with the installation instructions > > libtinfo5 is in Ubuntu 19.10 described as "legacy version", so maybe the > > SDK should link against a newer version; at least when Ubuntu 20.04 LTS > > is released. Isn't it by now, btw? > > Sailfish SDK links against older libraries in order to support older > operating systems, which is often the case of corporate users. Listed > here https://sailfishos.org/wiki/Application_SDK_Known_Issues[1] . I had not seen that. Thanks. > > Anyways, I installed the legacy version and it seems to work, but I > > don't even know what Clang does to start with ;) > > You can start by reading e.g. > https://www.qt.io/blog/2018/06/05/qt-creators-clang-code-model[2] . Yes, I was being lazy ;) Julien also explained. Thanks to both. Now I just have to figure why some QML modules can't be imported... -- 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] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 13.16 Julien Blanc wrote: > > I don't even know what Clang does to start with > > clang code model brings far superior auto completion than the old qt > creator integrated language model. Thanks for the explanation. It does sound as a welcomed addition. -- 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] Sailfish SDK 3.1 has been released to Early Access
Hi Thomas, > I first tried the online installer, but the repository couldn't be found. In your later email you continue: > Because I didn't read the release notes properly... Right after your first email I thought it was just a temporary error in your download location, but now that you write about reading release notes properly I am curious what was the issue more specifically? Maybe it was something we should highlight more there. > libtinfo5 is in Ubuntu 19.10 described as "legacy version", so maybe the SDK > should link against a newer version; at least when Ubuntu 20.04 LTS is > released. Isn't it by now, btw? Sailfish SDK links against older libraries in order to support older operating systems, which is often the case of corporate users. Listed here https://sailfishos.org/wiki/ Application_SDK_Known_Issues[1] . > Anyways, I installed the legacy version and it seems to work, but I don't > even know what Clang does to start with ;) You can start by reading e.g. https://www.qt.io/blog/2018/06/05/qt-creators-clang-code-model[2] . BR, Martin [1] https://sailfishos.org/wiki/Application_SDK_Known_Issues [2] https://www.qt.io/blog/2018/06/05/qt-creators-clang-code-model ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
Le vendredi 01 mai 2020 à 12:38 +0200, Thomas Tanghus a écrit : > > > Anyways, I installed the legacy version and it seems to work, but I > don't > even know what Clang does to start with ;) clang code model brings far superior auto completion than the old qt creator integrated language model. It also provides inline warnings (warnings show during edition of the code). This was something i was greatly missing when using sailfish sdk. clang code format (available in the experimental plugins) works fine and is also a very useful addition (you have to select "format instead of indent" in options and provide a .clang-format file). clang-tidy and clazy aro two static analysis tool that are very useful at catching code inconsistencies, sources of bugs or poor performance. Very worth it also (and was missing, too). Regards, Julien ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Friday, 1 May 2020 12.38 Thomas Tanghus wrote: > I first tried the online installer, but the repository couldn't be found. Because I didn't read the release notes properly... -- 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 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
Re: [SailfishDevel] Sailfish SDK 3.1 has been released to Early Access
On Thursday, 30 April 2020 12.49 Martin Kampas wrote: > Today (Apr 30th) at 10:00 UTC the Sailfish SDK 3.1 was released to Early > Access users. Please, check out the release notes from > https://together.jolla.com/question/226423/[1] . > > The installers for this SDK release are now available at > https://sailfishos.org/wiki/ > Application_SDK_Early_Access#Latest_Early_Access_SDK_Release[2] . If you > have an older Early Access release of the SDK installed, you should see > an update notification in the Sailfish IDE. I first tried the online installer, but the repository couldn't be found. The offline installer succeeded, but it seems Clang is having problems: ~/SailfishOS/lib/qtcreator/plugins/libClangTools.so: Cannot load library / home/thomas/SailfishOS/lib/qtcreator/plugins/libClangTools.so: (libtinfo.so. 5: cannot open shared object file: No such file or directory) I have libtinfo.so.5 installed, but not in /usr/lib $ locate libtinfo.so. /snap/core/9066/lib/x86_64-linux-gnu/libtinfo.so.5 /snap/core/9066/lib/x86_64-linux-gnu/libtinfo.so.5.9 /snap/core18/1705/lib/x86_64-linux-gnu/libtinfo.so.5 /snap/core18/1705/lib/x86_64-linux-gnu/libtinfo.so.5.9 /snap/core18/1754/lib/x86_64-linux-gnu/libtinfo.so.5 /snap/core18/1754/lib/x86_64-linux-gnu/libtinfo.so.5.9 /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1 libtinfo5 is in Ubuntu 19.10 described as "legacy version", so maybe the SDK should link against a newer version; at least when Ubuntu 20.04 LTS is released. Isn't it by now, btw? Anyways, I installed the legacy version and it seems to work, but I don't even know what Clang does to start with ;) -- 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