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

2013-11-04 Thread christopher . lamb

Hi all

As the topic of installing the to the SDK and Emulator is one which  
has raised many questions in the is mailing list, I have collected the  
wisdom from replies to this and similar threads, and have created a  
guide to installing on my Sailfish blog.


The post can be found here:

http://flyingsheeponsailfish.blogspot.com/2013/11/deploying-additional-packages-to.html

Comments, corrections, and suggestions for improvement are welcome via  
this mailing list.


mfg

Chris


___
SailfishOS.org Devel mailing list


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

2013-11-04 Thread christopher . lamb

Hi Luciano

Thank you for your kind words.

Your emulator / train issue is an interesting one. I do a lot of my  
development on a train on the way to and from work, and I am able to  
build without any problems. Sometimes I will have an iffy network  
connection over my N9, but mostly not.


That said I have not tried to build with the latest Alpha update  
without a network connection. I can try later this evening.


My primary development host is OSX; I guess yours is some flavour of Linux?

When you say network interface has no address, do you mean the host,  
or the emulator?


Ciao

Chris


Zitat von Luciano Montanaro mikel...@gmail.com:


Thank you very much,

that is a good introduction to packaging, and it covers all the
stumbling blocks I have encountered with regards to packaging/
deploying/building.
One thing that I have discovered is that my QtCreator cannot connect
to the emulator if there network interface has no address: Since I
often try to build when traveling/on a train, that was a problem. The
workaround I discovered is to assign a network address to a network
device like: ifconfig eth0 192.168.0.1. Then building works as
expected.

The rest I think is covered... But I still get bitten from time to
time by QtCreator updating my yaml file on its own, which requires
cleaning it up.

I have a new problem now, but it is not related to building, and I
will post it separately.

Luciano


On Mon, Nov 4, 2013 at 5:19 PM,  christopher.l...@thurweb.ch wrote:

Hi all

As the topic of installing the to the SDK and Emulator is one which has
raised many questions in the is mailing list, I have collected the wisdom
from replies to this and similar threads, and have created a guide to
installing on my Sailfish blog.

The post can be found here:

http://flyingsheeponsailfish.blogspot.com/2013/11/deploying-additional-packages-to.html

Comments, corrections, and suggestions for improvement are welcome via this
mailing list.

mfg


Chris


___
SailfishOS.org Devel mailing list




--
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] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-31 Thread christopher . lamb

Hi Jarko

Thanks for your detailed comments. My understanding of this topic has  
vastly improved. I will be spending most of Friday on a plane, so I  
should be able to spend some time writing an article on installing to  
sailfish for my blog.


One bit that still eludes me is this:

I can find the names required by PkgBR by  kewword searching in the  
SDK Control Center, or with zypper se , but how do I translate  
these names to the format used by PkgConfigBR:?


mfg

Chris

Zitat von Jarko Vihriala jarko.vihri...@jolla.com:


Hello Chrispher, I'll inline some comments with JV:




___
SailfishOS.org Devel mailing list


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

2013-10-29 Thread Jarko Vihriala
Hello Chrispher, I'll inline some comments with JV:

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of christopher.l...@thurweb.ch [christopher.l...@thurweb.ch]
Sent: Monday, October 28, 2013 11:32 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Installing packages to the SDK and Emulator via the
rpm/yaml file

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

JV:Yes, this is correct. All dedendecies that application has, must be 
installed to device via rpm packaging. You should never assume that there is 
something there, because one day it might be changed or removed. But if your 
rpm spec has the right stuff in, you can be sure that if it buids, it's very 
likely to install and run as well.

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).

JV:Correct again. In our SDK there is a Yaml editor for making the things easy. 
Spec gets generated from Yaml. Spec itself has sections that are safe to tune. 
If you write stuff _outside_ those areas (marked with  and ) and modify 
yaml - changes in spec are lost.

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

JV:PkgConfigBR and PkgBR do the same, but PkgConfigBR queries the real name 
from pkg-config. They both install what is needed to compile and link the 
application, i.e. build it. (BR = BuildRequires).

4) Requires: installs stuff to the Emulator.

JV:Correct, Requires: is a run-time dependencylist.

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 ?.

JV: xxx-devel packages go only to the build environment, never to the target 
itself.

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?

JV: I'll take that up in upcoming SDK documentation works, we can improve 
there, thanks for the heads up.

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] 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 energyc...@gmail.com:


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





___
SailfishOS.org Devel mailing list