maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Flatpak on Sailfish OS (https://talk.maemo.org/showthread.php?t=100909)

rinigus 2020-05-11 18:29

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by magic cucumber (Post 1567408)
3.2.1.20:

Fatal error: nothing provides libgdk_pixbuf-2.0.so.0 needed by flatpak-1.6.3.0-1.4.1.jolla.armv7hl

Seems there is no libgdk_pixbuf-2.0 or similar package

pkcon refresh may help? I just switched to 3.3.0.16, cannot test it here, unfortunately.

magic cucumber 2020-05-12 07:49

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1567413)
pkcon refresh may help? I just switched to 3.3.0.16, cannot test it here, unfortunately.

Aye, it helps. Everything seems OK for now. Thx

woidboy 2020-05-18 19:11

Re: Flatpak on Sailfish OS
 
I'm trying to build a flatpak application for Sailfish OS running on Xperia 10. Since I ran over the QEMU bug when compiling for arm on 64-bit hosts, I tried to use the aarch64 architecture (uname -a on the phone says it is aarch64 und with flatpak, I can install all the aarch64 libraries). However, flatpak-runner fails to launch the application.

I get something like this:
[W] unknown:164 - file:///usr/share/flatpak-runner/qml/MainPage.qml:164:5: QML Image: Cannot open: file:///usr/share/flatpak-runner/qml/flatpak-runner
[W] unknown:164 - file:///usr/share/flatpak-runner/qml/MainPage.qml:164:5: QML Image: Cannot open: file:///usr/share/flatpak-runner/qml/flatpak-runner
[D] onCompleted:424 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[W] unknown:53 - file:///usr/share/flatpak-runner/qml/main.qml:53:26: Unable to assign [undefined] to bool
error: Failed to block syscall -10097

Is this error due to the fact of compiling for the aarch64 architecture? By the way, flatpak-runner is working with arm apps like, e.g., angelfish.

On the github pages, it tells us to use a i686 virtual host with the restriction to use only 32 bits when compiling for arm on 64-bit hosts. Would it be also to compile the code on an arm host, e.g., a Rasperry Pi?

rinigus 2020-05-18 19:21

Re: Flatpak on Sailfish OS
 
Right now launching aarch64 doesn't work. There is issue https://github.com/flatpak/flatpak/issues/3548 and, in addition, we don't have hybris arm64 either.

I did try to compile on older Pi, that was very slow. maybe new ones are better. i686 worked for me.

woidboy 2020-05-19 08:17

Re: Flatpak on Sailfish OS
 
Thanks for this information. Then, I'll try first to compile it on my Rasperry Pi.

Actually, I've one more question. The application which I want to compile is a flight navigation app which needs access to GPS data. In order to check if there is GPS access within flatpak, I've installed your Puremaps application, the one which is available on flathub. Unfortunately, geolocation is not working for this app on my Xperia 10 with the official Sailfish OS. Is it possible to enable geolocation for flatpak apps? Do I just need to set the proper finish-args like, e.g., "--allow=geolocation"?

rinigus 2020-05-19 08:41

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by woidboy (Post 1567532)
Thanks for this information. Then, I'll try first to compile it on my Rasperry Pi.

Actually, I've one more question. The application which I want to compile is a flight navigation app which needs access to GPS data. In order to check if there is GPS access within flatpak, I've installed your Puremaps application, the one which is available on flathub. Unfortunately, geolocation is not working for this app on my Xperia 10 with the official Sailfish OS. Is it possible to enable geolocation for flatpak apps? Do I just need to set the proper finish-args like, e.g., "--allow=geolocation"?

Right now, GPS is not supported. As I have rather large amount of projects, I do not plan to work on it either. However, it is maybe possible to make it work if someone investigates the issues and, possibly, writes some code for it.

Flatpak as of now, supports GeoClue2. SFOS is on Geoclue1 version, I think. So, somehow, you would have to figure out how to connect to geoclue1. For Geoclue2 permissions are as in https://github.com/flathub/io.github...eMaps.json#L18

Also, you have to figure out how to make Qt ask geoclue1 for positioning. I would expect its all doable, but requires time investment and testing. Would be great if someone would pick it up.

coderus 2020-05-19 09:23

Re: Flatpak on Sailfish OS
 
hi, i have bottom bar bug in angelfish on jtab: https://gist.github.com/CODeRUS/2b6d...93c5a3276e37a8
https://youtu.be/2cUKZZtqrOQ

rinigus 2020-05-19 09:34

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1567535)

that was from the start on jtab, right?

coderus 2020-05-19 09:56

Re: Flatpak on Sailfish OS
 
i dont remember exactly, but for a long time :))

woidboy 2020-05-19 13:04

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1567533)
Right now, GPS is not supported. As I have rather large amount of projects, I do not plan to work on it either. However, it is maybe possible to make it work if someone investigates the issues and, possibly, writes some code for it.

Flatpak as of now, supports GeoClue2. SFOS is on Geoclue1 version, I think. So, somehow, you would have to figure out how to connect to geoclue1. For Geoclue2 permissions are as in https://github.com/flathub/io.github...eMaps.json#L18

Also, you have to figure out how to make Qt ask geoclue1 for positioning. I would expect its all doable, but requires time investment and testing. Would be great if someone would pick it up.

Thanks a lot!


All times are GMT. The time now is 09:07.

vBulletin® Version 3.8.8