Re: [SailfishDevel] Help for Syncthing App

2016-03-16 Thread Michael Fuchs
Looks very good, thanks a lot. Cheers, Michael. Am 16.03.2016 um 11:03 schrieb Oleksii Serdiuk: Here's how I package libQt5SystemInfo library in TAO Translator (https://olse.me/taot): 1. Put an arch-specific binary into rpm/lib/ folder. https://olse.me/w0h 2. Add the following rule to .pro

Re: [SailfishDevel] Help for Syncthing App

2016-03-16 Thread Oleksii Serdiuk
QMAKE_HOST provides info about the HOST (the device you're compiling ON), not the TARGET (the device you're compiling FOR). They might be the same, but in case of Sailfish OS you're cross-compiling, so in most cases they're different. For target architecture there's QT_ARCH qmake variable. But

Re: [SailfishDevel] Help for Syncthing App

2016-03-16 Thread Oleksii Serdiuk
Here's how I package libQt5SystemInfo library in TAO Translator (https://olse.me/taot): 1. Put an arch-specific binary into rpm/lib/ folder. https://olse.me/w0h 2. Add the following rule to .pro file: > libs.files = rpm/lib/$${QT_ARCH}/* > libs.path = /usr/share/$${TARGET}/lib https://olse.

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Kimmo Lindholm
@lists.sailfishos.org Subject: Re: [SailfishDevel] Help for Syncthing App Good point. But I need it for packaging the proper syncthing binary. Am 14.03.2016 um 17:03 schrieb Pami Ketolainen: > On 03/14/2016 04:49 PM, Michael Fuchs wrote: >> Right, the colons where missing. But this was just a

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Michael Fuchs
Good point. But I need it for packaging the proper syncthing binary. Am 14.03.2016 um 17:03 schrieb Pami Ketolainen: On 03/14/2016 04:49 PM, Michael Fuchs wrote: Right, the colons where missing. But this was just an example, which I know from the documentation. I would need it to have two diff

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Andrew Branson
Assuming that your 4 is related to your 1, I tweaked System Monitor for the tablet, and I just chose whichever subdir of power_supply had the word battery into. I figured that would at least stand some chance of working with as yet unknown devices: https://github.com/abranson/harbour-systemmon

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Pami Ketolainen
On 03/14/2016 04:49 PM, Michael Fuchs wrote: > Right, the colons where missing. But this was just an example, which I > know from the documentation. I would need it to have two different > values for tablet and phone. It's got to be sth like: > > arm: VAR = ARMVALUE > x86_32: VAR = x86VALUE > Th

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Andrew Penkrat
I'd suggest trying something like linux-g++:contains(QMAKE_HOST.arch, x86_64):{ do something } Based on https://wiki.qt.io/Qt_project_org_faq#How_can_I_detect_in_the_.pro_file_if_I_am_compiling_on_a_32_bit_or_a_64_bit_platform.3F Cheers, Andrew 2016-03-14 17:49 GMT+03:00 Michael Fuchs : >

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Michael Fuchs
Thanks. Am 14.03.2016 um 15:31 schrieb Yuvraaj: [nemo@Jolla ~]$ ls /sys/class/power_supply/ dollar_cove_battery dollar_cove_charger [nemo@Jolla ~]$ ls /sys/class/power_supply/*/online /sys/class/power_supply/dollar_cove_charger/online ___ Sailfish

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Michael Fuchs
Hi Andrew, Am 14.03.2016 um 15:41 schrieb Andrew Penkrat: Hi Michael, 4) win32: VAR = VALUEw unix: VAR = VALUEx Right, the colons where missing. But this was just an example, which I know from the documentation. I would need it to have two different values for tablet and phone. It's got to

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Andrew Penkrat
Hi Michael, 3) You understand it right, just upload an i486 rpm. 4) win32: VAR = VALUEw unix: VAR = VALUEx Best regards, Andrew Penkrat 2016-03-14 17:31 GMT+03:00 Yuvraaj : > [nemo@Jolla ~]$ ls /sys/class/power_supply/ > dollar_cove_battery dollar_cove_charger > > [nemo@Jolla ~]$ ls /sys/clas

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Yuvraaj
[nemo@Jolla ~]$ ls /sys/class/power_supply/ dollar_cove_battery dollar_cove_charger [nemo@Jolla ~]$ ls /sys/class/power_supply/*/online /sys/class/power_supply/dollar_cove_charger/online On 03/14/2016 03:37 AM, Michael Fuchs wrote: Hi Sailors, I'm working on this app https://openrepos.net/c