Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-28 Thread Dmitry
Hi Christopher.

.yaml file translated to .spec which is used for building .rpm
this translation is done using template engine. Link above briefly describe
it.
For description of .spec file see
https://fedoraproject.org/wiki/How_to_create_an_RPM_package
About you questions, PkgBR will translates to BuildRequire line in .spec
file, it adds additional depency to rpm package that checked once package
builded.
PkgConfigBR do almost the same but accepts pkgconfig name (i.e. generates
BuildRequire: pkgconfig() )




On 29 October 2013 00:08,  wrote:

> Hi Dmitry
>
> Thanks for your rapid answer.
>
> While that is a wonderful list of spectacle keywords, it leaves me none
> the wiser as to what they do.
>
> Chris
>
> Zitat von Dmitry :
>
>  
> https://wiki.merproject.org/**wiki/Spectacle
>>
>>
>
>
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Running emulator instance not recognized by QTCreator

2013-10-28 Thread Matjaž Matjašec

Hey,thanks for you answer. But i still cant manage to connect them. I tried to restart my pc, manually set the nameservers on both instances MerSDK and Sailfish Emulator but still no luck. I tried to run them directly via virtual box, they boot up and everything, but i still cant run or deploy my project to the emulator.I am starting to loose options and getting really depressed.If anyone can offer any help it would be greatly appreciated.Running Win 7 Professinal x64 SP1 on laptop.
-- Best / Lep pozdrav,Matjaž MatjašecOn Sun, 27 Oct 2013 10:55:29 +0100, Tone Kastlunger  wrote:Hey;it happens to me that very often QTCreator seems to have troublesrecognizing running emulator instances.Usually this happens after my machine(laptop) is gone in Suspend / sleep mode;
Workaround for this is to stop the running emulator instance and then run the project.My system : Win7 Home.Best,tortoisedoc
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-28 Thread christopher . lamb

Hi Dmitry

Thanks for your rapid answer.

While that is a wonderful list of spectacle keywords, it leaves me  
none the wiser as to what they do.


Chris

Zitat von Dmitry :


https://wiki.merproject.org/wiki/Spectacle





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-28 Thread Dmitry
https://wiki.merproject.org/wiki/Spectacle


On 28 October 2013 23:32,  wrote:

> Hi all
>
> Until recently when I needed extra packages on the SDK and Emulator
> installed using the SDK Control Center (for the SDK) and zypper (for the
> Emulator).
>
> However from previous posts in this forum I gathered that it was also
> possible to do the same using an app's yaml and spec files, both of which
> are in the rpm directory.
>
> I have had some success at getting this to work by trial and error, but
> don't yet fully understand it.  The process is quite possibly well
> documented somewhere, but if so, I have not yet succeeded in finding the
> docus!
>
> it is also possible that the whole thing is blinding obviously, and it
> will suddenly go click ?.
>
> So far I have established that:
>
> 1) The yaml / spec install process only works with "Deploy as RPM"
>
> 2) The spec file is auto-generated based on the yaml file, so it is the
> yaml file that we should be configuring. (the yaml file refers to the
> format rather than what it does).
>
> 3) Within the yaml file there are 3 sections to which packages may be
> added: PkgConfigBR:,  PkgBR:, and Requires:
>
> 4) Requires: installs "stuff" to the Emulator.
>
> 5) I think that PkgConfigBR: and PkBR: install things to the SDK, but I
> have not worked out the difference. However the format of the package names
> these two sections accept is different.
>
> Then there is the question of exactly which package belongs where. There
> are xxx-devel packages which I guess belong on the SDK, but not on the
> Emulator; and qt5-declarative--xxx packages for QML which I think are
> required on both. Not to mention the debug packages ?.
>
> It would be fantastic if someone who understands this well could explain,
> perhaps with an example. Let's say we want to use the QtPositioning 5.x
> functionality and will be using the QML elements. What should be where in
> the app.yaml file?
>
> thanks in advance
>
> Chris
>
>
> __**_
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

[SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-28 Thread christopher . lamb

Hi all

Until recently when I needed extra packages on the SDK and Emulator  
installed using the SDK Control Center (for the SDK) and zypper (for  
the Emulator).


However from previous posts in this forum I gathered that it was also  
possible to do the same using an app's yaml and spec files, both of  
which are in the rpm directory.


I have had some success at getting this to work by trial and error,  
but don't yet fully understand it.  The process is quite possibly well  
documented somewhere, but if so, I have not yet succeeded in finding  
the docus!


it is also possible that the whole thing is blinding obviously, and it  
will suddenly go click ?.


So far I have established that:

1) The yaml / spec install process only works with "Deploy as RPM"

2) The spec file is auto-generated based on the yaml file, so it is  
the yaml file that we should be configuring. (the yaml file refers to  
the format rather than what it does).


3) Within the yaml file there are 3 sections to which packages may be  
added: PkgConfigBR:,  PkgBR:, and Requires:


4) Requires: installs "stuff" to the Emulator.

5) I think that PkgConfigBR: and PkBR: install things to the SDK, but  
I have not worked out the difference. However the format of the  
package names these two sections accept is different.


Then there is the question of exactly which package belongs where.  
There are xxx-devel packages which I guess belong on the SDK, but not  
on the Emulator; and qt5-declarative--xxx packages for QML which I  
think are required on both. Not to mention the debug packages ?.


It would be fantastic if someone who understands this well could  
explain, perhaps with an example. Let's say we want to use the  
QtPositioning 5.x functionality and will be using the QML elements.  
What should be where in the app.yaml file?


thanks in advance

Chris


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Install Icon file

2013-10-28 Thread Hendrik Borghorst
Thanks this works now. 

Is svg not supported which is quite sad. In times of high resolution android 
devices you often see low resolution icons which mix bad with vector based or 
high resolution icons. So I thought svg might give me a good solution in 
regard of the future.

Greetings
 
Am Montag, 28. Oktober 2013, 16:11:42 schrieb Jonni Rainisto:
> Usually you add something like this in .pro file. And please use .png.
> 
> desktopfile.files = $${TARGET}.desktop
> desktopfile.path = /usr/share/applications
> icon.files = $${TARGET}.png
> icon.path = /path/whereyouwant/icon/tobe
> INSTALLS += icon desktopfile
> 
> re, Jonni
> 
> From: devel-boun...@lists.sailfishos.org
> [devel-boun...@lists.sailfishos.org] on behalf of Hendrik Borghorst
> [hendrikborgho...@gmail.com] Sent: Sunday, October 27, 2013 5:12 PM
> To: devel@lists.sailfishos.org
> Subject: [SailfishDevel] Install Icon file
> 
> Hello guys,
> 
> I've nearly completed my jolla application and got it packaged alright. But
> I don't know how to include an icon-name.svg file.
> 
> Is there an best way to do so?
> 
> greetings
> ___
> SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Install Icon file

2013-10-28 Thread Jonni Rainisto
Usually you add something like this in .pro file. And please use .png.

desktopfile.files = $${TARGET}.desktop
desktopfile.path = /usr/share/applications
icon.files = $${TARGET}.png
icon.path = /path/whereyouwant/icon/tobe
INSTALLS += icon desktopfile

re, Jonni

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Hendrik Borghorst [hendrikborgho...@gmail.com]
Sent: Sunday, October 27, 2013 5:12 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Install Icon file

Hello guys,

I've nearly completed my jolla application and got it packaged alright. But I
don't know how to include an icon-name.svg file.

Is there an best way to do so?

greetings
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Install Icon file

2013-10-28 Thread Artem Marchenko
Why SVG? To my understanding Sailfish expects 90x90 png icons.

You can have a look at my Wikipedia app. It has an app icon specified. Is
shown in the emulator fine.
https://github.com/amarchen/Wikipedia

Cheers,
Artem.



On Sun, Oct 27, 2013 at 5:12 PM, Hendrik Borghorst <
hendrikborgho...@gmail.com> wrote:

> Hello guys,
>
> I've nearly completed my jolla application and got it packaged alright.
> But I
> don't know how to include an icon-name.svg file.
>
> Is there an best way to do so?
>
> greetings
> ___
> SailfishOS.org Devel mailing list
>



-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Cannot deploy application since SDK upgrade

2013-10-28 Thread Artem Marchenko
I am not sure if I had absolutely the same issue, but something that looked
similar.

I also had a subdirs project and after SDK upgrade only one of the
subprojects is runnable if you select RPM deployment even for i486 target
and for the not-runnable one you cannot select the alternative executable
nor you can create a custom configuration (well, you can, but it will try
to run it on the build machine).

Workaround that I found:

1. Run the subproject that is fine with RPM deployment (one of my
subproject was fine, maybe it's always the last one that is fine?). That
will install the dependencies to emulator

2. Switch to deployment by copying binaries. Then you will be able to
specify the alternative executable and custom command line arguments. Sure
then your code will be run from /opt , not from /usr , but for my project
it was good enough, I just have to remember which command line arguments to
supply to the test suite (my second project was a test suite).

Same thing is summarized in the demo project at
https://github.com/amarchen/sailfish-app-with-qml-test , but of course
something might be a little wrong. E.g. I think it mentions custom
executable to be used at /usr, while deploying by binary copy deploys to
/opt... a fix in docs is needed, pull requests are welcome :)

Cheers,
Artem.


On Mon, Oct 28, 2013 at 4:04 PM, Juha Kallioinen
wrote:

> On 28.10.2013 11:21, Luciano Montanaro wrote:
>
>> Hi everybody,
>>
>> since I upgraded to the latest SDK release, I can no longer deploy my
>> application.
>>
>> The RPM is built correctly, after the emulator update, but the "run"
>> icon is grayed out, and in the "project" page, the "run" configuration
>> warns that the application path is missing. The text edits to set
>> custom executable/path are disabled, so I cannot fix this manually...
>>
>> Maybe this is due to how my project is structured?
>> I have a main project of type subdirs, with the code/resources in the
>> "application" folder. Also, there are conditionals to select
>> maemo5/harmattan/sailfish specific options; maybe these are preventing
>> the automatic detection of the executable.
>> However the TARGET" is not under any condition at all...
>>
>> Any suggestion?
>>
>
> The updated SDK release installs two targets; one ARM target and one i486
> target. The ARM target has no official device support yet, so the Run
> method is not available. Please double check that you are using the i486
> target if you want to deploy your project to the emulator.
>
> The target names are SailfishOS-armv7hl (for ARM) and SailfishOS-i486-x86
> (for i486).
>
> If you are sure that you indeed have the i486 selected then let's explore
> this problem further.
>
> Best regards,
>  Juha
>
>
> __**_
> SailfishOS.org Devel mailing list
>



-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Cannot deploy application since SDK upgrade

2013-10-28 Thread Juha Kallioinen

On 28.10.2013 11:21, Luciano Montanaro wrote:

Hi everybody,

since I upgraded to the latest SDK release, I can no longer deploy my
application.

The RPM is built correctly, after the emulator update, but the "run"
icon is grayed out, and in the "project" page, the "run" configuration
warns that the application path is missing. The text edits to set
custom executable/path are disabled, so I cannot fix this manually...

Maybe this is due to how my project is structured?
I have a main project of type subdirs, with the code/resources in the
"application" folder. Also, there are conditionals to select
maemo5/harmattan/sailfish specific options; maybe these are preventing
the automatic detection of the executable.
However the TARGET" is not under any condition at all...

Any suggestion?


The updated SDK release installs two targets; one ARM target and one 
i486 target. The ARM target has no official device support yet, so the 
Run method is not available. Please double check that you are using the 
i486 target if you want to deploy your project to the emulator.


The target names are SailfishOS-armv7hl (for ARM) and 
SailfishOS-i486-x86 (for i486).


If you are sure that you indeed have the i486 selected then let's 
explore this problem further.


Best regards,
 Juha

___
SailfishOS.org Devel mailing list


[SailfishDevel] Fwd: Re: How to get GPS Location in QML

2013-10-28 Thread christopher . lamb

Hi  Bolek

I must have been still half asleep this morning, and did not properly  
read the code I sent you


It looks like PositionSource has been moved from Location to  
Positioning (see the example here:  
https://github.com/mer-packages/qtlocation/pull/7/files


So the import we need is Import QtPositioning 5.0

Chris



- Weitergeleitete Nachricht von christopher.l...@thurweb.ch -
 Datum: Mon, 28 Oct 2013 09:29:46 +0100
   Von: christopher.l...@thurweb.ch
   Betreff: Re: [SailfishDevel] How to get GPS Location in QML
An: tw_bolek 
Cc: devel@lists.sailfishos.org

Hi Bolek

that's of interest to me as well.

I am at work, so I shouldn't spend too much time on this ...

But I had a quick peak at the sources

https://qt.gitorious.org/qt/qtlocation/source/64ee46398e7285a8cd30f483ab730eb87bf01b33:src/imports/positioning/positioning.cpp

It looks to me that PositionSource is a Location 5.2 type. (But the  
Location bundled with Sailfish is not 5.2 yet)


It that is the case then we have three options

1) wait for Qt 5.2
2) download and compile the Location 5.2 sources, and use those
3) write your own plugin to expose PositionSource to qml. I did this  
on Harmattan 4.7.4 for the SatelitteSourceInfo


I hope to make time this evening to look more closely into this.

mfg

Chris


Zitat von tw_bolek :


Hello list,
 
I am porting my Harmattan QML applications to Sailfish OS.  I simply  
need to get GPS Location.  In Qt4.8 / QtQuick1.1 it only took  
importing QtMobility.location and then using PositionSource. 

 
In the latest SailfishOS SDK I tried importing QtLocation 5.0 but it  
is not found.  PositionSource is an unknown element.

 
So how do I do in Sailfish OS (in QML only) as simple thing as  
getting location coordinates from GPS?

 
I'll be very grateful if you could guide me, in a simple and  
straightforward way  Thank you!

 
Bolek



___
SailfishOS.org Devel mailing list


- Ende der weitergeleiteten Nachricht -

___
SailfishOS.org Devel mailing list


[SailfishDevel] Cannot deploy application since SDK upgrade

2013-10-28 Thread Luciano Montanaro
Hi everybody,

since I upgraded to the latest SDK release, I can no longer deploy my
application.

The RPM is built correctly, after the emulator update, but the "run"
icon is grayed out, and in the "project" page, the "run" configuration
warns that the application path is missing. The text edits to set
custom executable/path are disabled, so I cannot fix this manually...

Maybe this is due to how my project is structured?
I have a main project of type subdirs, with the code/resources in the
"application" folder. Also, there are conditionals to select
maemo5/harmattan/sailfish specific options; maybe these are preventing
the automatic detection of the executable.
However the TARGET" is not under any condition at all...

Any suggestion?

Thanks in advance,
Luciano


-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to get GPS Location in QML

2013-10-28 Thread christopher . lamb

Hi Bolek

that's of interest to me as well.

I am at work, so I shouldn't spend too much time on this ...

But I had a quick peak at the sources

https://qt.gitorious.org/qt/qtlocation/source/64ee46398e7285a8cd30f483ab730eb87bf01b33:src/imports/positioning/positioning.cpp

It looks to me that PositionSource is a Location 5.2 type. (But the  
Location bundled with Sailfish is not 5.2 yet)


It that is the case then we have three options

1) wait for Qt 5.2
2) download and compile the Location 5.2 sources, and use those
3) write your own plugin to expose PositionSource to qml. I did this  
on Harmattan 4.7.4 for the SatelitteSourceInfo


I hope to make time this evening to look more closely into this.

mfg

Chris


Zitat von tw_bolek :


Hello list,
 
I am porting my Harmattan QML applications to Sailfish OS.  I simply  
need to get GPS Location.  In Qt4.8 / QtQuick1.1 it only took  
importing QtMobility.location and then using PositionSource. 

 
In the latest SailfishOS SDK I tried importing QtLocation 5.0 but it  
is not found.  PositionSource is an unknown element.

 
So how do I do in Sailfish OS (in QML only) as simple thing as  
getting location coordinates from GPS?

 
I'll be very grateful if you could guide me, in a simple and  
straightforward way  Thank you!

 
Bolek



___
SailfishOS.org Devel mailing list