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

SDK version 1701-1 released

asked 2017-02-09 15:16:54 +0200

Jare gravatar image

updated 2017-04-12 15:32:41 +0200

Hello,

Today (Apr 12th) the 1701-1 SDK release has been made available to all users.

If you have an older beta release of the SDK, you should see an update notification in the Sailfish OS IDE. View more information in the SDK wiki page and also check out the known issues page.

Happy hacking!


23.3.2017

The Sailfish OS SDK update 1701-1 has been released to early access. This update has the latest 2.1.0.10 build environment, which matches the Jolla Release 2.1.0 (Iijoki). It also includes several fixes for bugs that were observed during the 1701 early access period. Please, check out the in-depth release notes at https://sailfishos.org/wiki/Application_SDK_Early_Access#Release_Notes.


9.2.2017

The Sailfish OS SDK update 1701 has been released to early access. This update has the latest 2.1.0.9 build environment, which matches the Jolla Release 2.1.0 (Iijoki). This SDK update now supports the Qt 5.6.2 environment, which is included in the Jolla Release 2.1.0. Besides that, it also contains a new live coding environment, which allows you to efficiently see the UI changes even on multiple devices at once. Please, check out the QML live coding tutorial from the Sailfish OS wiki!

edit retag flag offensive close delete

Comments

1

I updated my SDK with the EA version but I can't import QTWebEngine 1.0 in QML. As stated in the QT5.6 release notes it should be included into QT5.

Dylan Van Assche ( 2017-02-09 18:49:14 +0200 )edit

Whats about VirtualBox 5? Here I found a warning: "Please note that there still may be some compatibility issues with VirtualBox 5."

utkiek ( 2017-02-23 17:18:51 +0200 )edit

@utkiek No issues with VBox 5 reported past year IIRC - removing that note.

martyone ( 2017-02-23 20:14:27 +0200 )edit

I think you've missed an opportunity to name the update 1701-A – but joking aside: Nice job!

velox ( 2017-03-23 20:34:54 +0200 )edit

4 Answers

Sort by » oldest newest most voted
3

answered 2017-02-10 01:37:10 +0200

updated 2017-02-16 10:17:34 +0200

When running rpmvalidation.sh, I've got some grep warnings:

 QML files
=========
...
grep: /usr/share/sdk-harbour-rpmvalidator/disallowed_qmlimport_patterns.conf: No such file or directory

Besides, I've got errors also for libraries:

ERROR [libQt5Positioning.so.5(Qt_5)] Cannot require shared library: 'libQt5Positioning.so.5(Qt_5)'
ERROR [libQt5Sensors.so.5(Qt_5)] Cannot require shared library: 'libQt5Sensors.so.5(Qt_5)'

I guess it's due to the '(Qt_5)' mention because the libraries themselves are indeed listed in the allow_libraries.conf file.

Edit 2017-02-16:

  • missing disallowed_qmlimport_patterns.conf is now corrected by this commit
  • I've submitted a PR for the failing libraries.
edit flag offensive delete publish link more
3

answered 2017-02-18 12:19:28 +0200

velox gravatar image

updated 2017-02-18 12:27:02 +0200

As others discovered, there is something wrong with translation handling on SDK 1701. A contributor and me had the same issue while testing unrelated changes.

Since there seem to be problems reproducing it (and I've somehow messed up my registration on the SailfishDevel list), I'll leave a note here how I was able to reproduce it with my apps. Basically "git clone, open, build":

System:

  • Linux Mint, so basically Ubuntu.

Steps taken (done a few times to be sure):

SDK installation:

  • uninstalled previous installation via SDK Maintenance Tool
  • removed ~/.config/SailfishOS-SDK
  • installed with default settings

Get a current version of the app to build:

  • git clone git@github.com:jgibbon/slumber.git
  • open in SDK 1701
  • add i486 target to just push it on the emulator
  • "Clean Project" for good measure, but this should not make a difference
  • "Deploy As RPM Package"

Outcome:

As for micu with harbour-Berlin-Vegan in SailfishDevel, errors are thrown. The .qm files are being generated in the correct location, but then the build script tries to read them from a "doubled" path (the project's source path gets prepended). The path should be /home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/build-slumber-MerSDK_SailfishOS_i486-Debug/translations/harbour-slumber-*.qm

not

/home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/slumber//home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/build-slumber-MerSDK_SailfishOS_i486-Debug/translations/harbour-slumber-*.qm.

The Errors (just copied the first one here, it's the same for all languages) are:

install: cannot stat '/home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/slumber//home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/build-slumber-MerSDK_SailfishOS_i486-Debug/translations/harbour-slumber-de.qm': No such file or directory

make: [install_qm] Error 1 (ignored)

Additional Info:

When looking at the generated Makefile, the paths are indeed doubled, for example:

-$(INSTALL_FILE) /home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/slumber/"/home/mersdk/share/projects/sailfish/sleeptimer-github/1701_test/build-slumber-MerSDK_SailfishOS_i486-Debug/translations/harbour-slumber-de.qm" $(INSTALL_ROOT)/usr/share/harbour-slumber/translations/

I've also tried to blindly hack around in ~/SailfishOS/mersdk/targets/SailfishOS-i486/usr/share/qt5/mkspecs/features/sailfishapp_i18n.prf, but that didn't change a thing – I'm not sure it's even used. ;)

edit flag offensive delete publish link more

Comments

I can confirm it can be reproduced - the build is not terminated though so if you do not scroll up enough in the compile output you will never notice it failed!

martyone ( 2017-02-23 12:04:25 +0200 )edit
1

As a workaround until a fixed version of the SDK is released you can execute this command inside the build engine VM:

sb2-config -l |xargs -I{} sb2 -t {} -R sed -i 's/\\"//g' /usr/share/qt5/mkspecs/features/sailfishapp_i18n.prf

Undo the change with:

sb2-config -l |xargs -I{} sb2 -t {} -R -m sdk-install zypper in -fy libsailfishapp-devel

(Some info on how to enter the build VM can be found here.)

martyone ( 2017-02-23 12:41:09 +0200 )edit

@martyone thanks a lot for the hint, I'll try this on the weekend. Looking forward to using the 1701 again (because the old one does not show console output on my 2.1.0.9 devices).

You are right, indeed the build does continue. Since the default deploy + start doesn't set the language env, you'll only notice it when manually starting the app and some strings are left untranslated if you're not keeping an eye on the compile output.

velox ( 2017-02-23 13:03:10 +0200 )edit

@velox Add QT_LOGGING_TO_CONSOLE=1 to run environment in project settings to fix the output. The variable changed with the upgrade to Qt 5.6 so the older SDK is not setting this for you.

martyone ( 2017-02-23 13:20:41 +0200 )edit

@martyone you, sir, are many kinds of awesome!

velox ( 2017-02-23 14:06:36 +0200 )edit
3

answered 2017-04-06 11:55:23 +0200

utkiek gravatar image

After installation the SDK 1701-1 I got this warnings from QT Creator / qmake:

make: warning: File xxx has modification time 123 s in the future.
make: warning: clock skew detected. Your build may be incomplete.

Indeed, the clock inside MerSDK had the correct time. The clock inside my Windows 7 was to late (also after reboot). My solution: a manual sync for windows time service.

I need not the correct time but the identical time in host and guest. This is the job of the VBox guest additions. My questions:

  1. the only source of time inside MerSDK is the host? (no ntp?)
  2. Is there a time sync by starting MerSDK from QT Creator?
edit flag offensive delete publish link more

Comments

I have seen this type of an error several time in earlier SDK versions also when deploying the app to device.

Rikujolla ( 2017-04-06 16:54:25 +0200 )edit
1

answered 2017-04-15 11:31:00 +0200

Xray1806 gravatar image

It seems translation file mssing problem is still not fixed into the lasted release of the SDK 1701-1 (Linux Mint)

lupdate error: File '/home/mersdk/share/Sailfish' does not exist. lrelease error: Cannot open /home/mersdk/share/Sailfish: No such file or directory install -m 644 -p /home/mersdk/share/Sailfish\ Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-de.qm /home/deploy/installroot/usr/share/harbour-sailbook/translations/ install: cannot stat /home/mersdk/share/Sailfish Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-de.qm': No such file or directory make: [install_qm] Error 1 (ignored) install -m 644 -p /home/mersdk/share/Sailfish\ Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-fi.qm /home/deploy/installroot/usr/share/harbour-sailbook/translations/ install -m 644 -p /home/mersdk/share/Sailfish\ Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-nl.qm /home/deploy/installroot/usr/share/harbour-sailbook/translations/ install -m 644 -p /home/mersdk/share/Sailfish\ Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-it.qm /home/deploy/installroot/usr/share/harbour-sailbook/translations/ install: cannot stat/home/mersdk/share/Sailfish Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-fi.qm': No such file or directory make: [install_qm] Error 1 (ignored) install: cannot stat /home/mersdk/share/Sailfish Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-nl.qm': No such file or directory make: [install_qm] Error 1 (ignored) install -m 644 -p /home/mersdk/share/Sailfish\ Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-fr.qm /home/deploy/installroot/usr/share/harbour-sailbook/translations/ cp -f -R /home/mersdk/share/Sailfish\ Development/harbour-sailbook/qml /home/deploy/installroot/usr/share/harbour-sailbook/ install: cannot stat/home/mersdk/share/Sailfish Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-it.qm': No such file or directory make: [install_qm] Error 1 (ignored) install: cannot stat `/home/mersdk/share/Sailfish Development/build-harbour-sailbook-MerSDK_SailfishOS-armv7hl-Release/translations/harbour-sailbook-fr.qm': No such file or directory make: [install_qm] Error 1 (ignored)

edit flag offensive delete publish link more

Comments

What you observe seems to be simply result of using whitespace in your project path. Bad idea in general.

martyone ( 2017-04-18 10:19:46 +0200 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2017-02-09 15:16:54 +0200

Seen: 2,281 times

Last updated: Apr 15 '17