Re: [SailfishDevel] Harbour compatibility - including multiple executables in a single RPM

2018-05-14 Thread rinigus
Hi David,

the rules regarding single executable haven't changed, to my knowledge.
That particular problem was solved for my case by writing a wrapper and
called either QML main or the main I wanted to use from Valhalla (
https://github.com/rinigus/osmscout-server-route/blob/master/src/harbour-osmscout-server-module-route.cpp#L19).
This solution would work, but its a touch harder to maintain. In the end,
its up to you whether you want to have the app in the harbour or not. After
all, its your decision. However, I would suggest to consider distribution
via OpenRepos and not waste too much time for working around Harbour rules.

Best wishes,

Rinigus

PS: Ironically, few month later, I had to pull out of Harbour anyway due to
the changes in systemd API

On Mon, May 14, 2018 at 4:12 PM, David Llewellyn-Jones 
wrote:

> Hi,
>
> The Harbour rpmvalidator is currently highlighting problems with my app
> because it has more than one executable packaged with it. I get errors
> like this:
>
> ERROR [/usr/share/harbour-getiplay/lib/bin/rtmpdump] ELF binary in wrong
> location (must be /usr/bin/harbour-getiplay)
>
> ERROR [/usr/share/harbour-getiplay/lib/bin/rtmpdump] File must not be
> executable (current permissions: 755)
>
> Is there any way to create a Harbour-compatible package that includes
> more than one executable? From the validator, it looks to be impossible,
> but the FAQ doesn't say anything about it, so I'm still hopeful :)
>
> For context, my app is just a UI wrapper around a separate executable
> that I call using QProcess. Since the underlying executable isn't
> written by me (and itself calls several other executables), integrating
> them into a single executable would be hard.
>
> David
>
> P.S. I checked the mailing list archives and together.jolla.com, and
> although this has come up before (e.g.
> https://lists.sailfishos.org/pipermail/devel/2017-May/007898.html) I
> didn't see any clear solutions or conclusions.
> --
> Website: http://www.flypig.co.uk
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] ListModel doesnt accept point types in sailfish

2018-05-14 Thread joao morgado via Devel
 Hi Michael & devel list
Thanks for the link, I did a bit of googling before asking but didnt remember 
to check the source code.Still dont know why it worked for desktop and android, 
but now it's bullet proof for all plataforms :) Solved!!!
CheersJoão

Em segunda-feira, 14 de maio de 2018 14:21:38 GMT+1, Michael Fuchs 
 escreveu:  
 
 Hi Joao,

https://github.com/qt/qtdeclarative/blob/44a89492b49f23a975377795dbb7a48916cb5081/src/qml/types/qqmllistmodel.cpp#L2739

"Values must be simple constants; either strings (quoted and optionally 
within a call to QT_TR_NOOP), boolean values (true, false), numbers, or 
enumeration values (such as AlignText.AlignHCenter)."

...so I rather wonder, why it works on Android. ;)

br, Michael.


Am 14.05.2018 um 00:45 schrieb joao morgado via Devel:
> Hi there
> 
> I tried to save a point type in a listmodel but when reading the value 
> from the list I get a error saying something like "undefined". This 
> error happens in my intex aqua fish.
> It does work on desktop and android.
> 
> My code is something like this:
> 
>  ListModel{
> 
> id:obstaclesList
> 
> //obstaclesarerectanglesthatcannotbetransposed,likewallsforexample
> 
> //listhetopleftcoordinate
> 
> //risthebottomrightcoordinate
> 
> }
> 
> 
> functionaddObstacle(l,r){
> 
> //console.log("addingobstaclestolist")
> 
> obstaclesList.append({"l":l,"r":r})
> 
> }
> 
> 
> functionclearObstacles(){
> 
> obstaclesList.clear()
> 
> }
> 
> 
> functiongetObstacle(i){
> 
> returnobstaclesList.get(i)
> 
> }
> 
> 
> ..
> 
> obstaclesList.addObstacle(mountain.baseTL,mountain.baseBR) // baseTL and 
> baseBR are Qt.point()
> 
> 
> 
> 
> obstaclesList.getObstacle(i).l // <- this line is where it fails
> 
> 
> I solve this problem by changing the code to add / get real types 
> instead of point.
> Just curious why this happen, inititally I tought it could be some arm 
> limitation, but it does work good on a android mobile phone. Any ideias ?
> 
> Br
> João
> 
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> 
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org  ___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] ListModel doesnt accept point types in sailfish

2018-05-14 Thread Michael Fuchs

Hi Joao,

https://github.com/qt/qtdeclarative/blob/44a89492b49f23a975377795dbb7a48916cb5081/src/qml/types/qqmllistmodel.cpp#L2739

"Values must be simple constants; either strings (quoted and optionally 
within a call to QT_TR_NOOP), boolean values (true, false), numbers, or 
enumeration values (such as AlignText.AlignHCenter)."


...so I rather wonder, why it works on Android. ;)

br, Michael.


Am 14.05.2018 um 00:45 schrieb joao morgado via Devel:

Hi there

I tried to save a point type in a listmodel but when reading the value 
from the list I get a error saying something like "undefined". This 
error happens in my intex aqua fish.

It does work on desktop and android.

My code is something like this:

 ListModel{

id:obstaclesList

//obstaclesarerectanglesthatcannotbetransposed,likewallsforexample

//listhetopleftcoordinate

//risthebottomrightcoordinate

}


functionaddObstacle(l,r){

//console.log("addingobstaclestolist")

obstaclesList.append({"l":l,"r":r})

}


functionclearObstacles(){

obstaclesList.clear()

}


functiongetObstacle(i){

returnobstaclesList.get(i)

}


..

obstaclesList.addObstacle(mountain.baseTL,mountain.baseBR) // baseTL and baseBR 
are Qt.point()




obstaclesList.getObstacle(i).l // <- this line is where it fails


I solve this problem by changing the code to add / get real types 
instead of point.
Just curious why this happen, inititally I tought it could be some arm 
limitation, but it does work good on a android mobile phone. Any ideias ?


Br
João


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Harbour compatibility - including multiple executables in a single RPM

2018-05-14 Thread David Llewellyn-Jones
Hi,

The Harbour rpmvalidator is currently highlighting problems with my app
because it has more than one executable packaged with it. I get errors
like this:

ERROR [/usr/share/harbour-getiplay/lib/bin/rtmpdump] ELF binary in wrong
location (must be /usr/bin/harbour-getiplay)

ERROR [/usr/share/harbour-getiplay/lib/bin/rtmpdump] File must not be
executable (current permissions: 755)

Is there any way to create a Harbour-compatible package that includes
more than one executable? From the validator, it looks to be impossible,
but the FAQ doesn't say anything about it, so I'm still hopeful :)

For context, my app is just a UI wrapper around a separate executable
that I call using QProcess. Since the underlying executable isn't
written by me (and itself calls several other executables), integrating
them into a single executable would be hard.

David

P.S. I checked the mailing list archives and together.jolla.com, and
although this has come up before (e.g.
https://lists.sailfishos.org/pipermail/devel/2017-May/007898.html) I
didn't see any clear solutions or conclusions.
-- 
Website: http://www.flypig.co.uk
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org