Re: [SailfishDevel] Docker build engine

2020-05-11 Thread Martin Kampas
Hi Schorsch,

> it finds only the already installed lib.

So that's a bug - the repositories are not refreshed automatically in the 
Docker-based build 
engine.

You can fix that simply by using Qt Creator > Options > Sailfish OS > Build 
Engine > 
Manage Build Targets > Refresh or from command line with `sfdk tools update` 
for each 
build target.

BR,
Martin

On úterý 12. května 2020 7:08:21 CEST george b wrote:
> Thank you both for your comments. One step closer, but does not solve my
> issue.
> 
> If I use the GUI way to search for the devel headers, it finds only the
> already installed lib.
> 
> SSH into the mer docker build engine results in similar output:
> > ssh -p  -i
> 
> ~/bins//SailfishOS317/vmshare/ssh/private_keys/engine/mersdk
> mersdk@localhost
> 
> > sb2 -t SailfishOS-3.3.0.16-armv7hl -m sdk-install -R zypper up
> 
> Loading repository data...
> Reading installed packages...
> 
> Nothing to do.
> 
> > sb2 -t SailfishOS-3.3.0.16-armv7hl -m sdk-install -R zypper se *ssl*
> 
> Loading repository data...
> Reading installed packages...
> 
> S | Name | Summary |
> Type
> --+--+-+
>  i | openssl-libs | A general purpose cryptography library with TLS i->
> | package
> 
> > ls
> 
> /host_install/mersdk/targets/SailfishOS-3.3.0.16-armv7hl/usr/include/openssl
> * ls: cannot access
> '/host_install/mersdk/targets/SailfishOS-3.3.0.16-armv7hl/usr/include/openss
> l': No such file or directory
> 
> It seems to me that the openssl-devel package is not available in the repo,
> neither installed in the system. Same issue for libxml2-devel.
> 
> Further suggestions are welcome :-).
> 
> Best regards
> Schorsch
> 
> Am Mo., 11. Mai 2020 um 22:14 Uhr schrieb Martin Kampas <
> 
> martin.kam...@jolla.com>:
> > Hi George,
> > 
> > 
> > 
> > As long as you list all your dependencies in the .spec file (you seem to
> > do so in the linked sources), you do not need to do anything to get them
> > installed. Installing build time dependencies happens automatically as
> > part
> > of the build process.
> > 
> > 
> > 
> > Should you need to manage packages under build targets for some reason,
> > you may use either Qt Creator > Options > Sailfish OS > Build Engine >
> > Manage Build Targets > Manage packages, or achieve the same on command
> > line
> > with `sfdk tools package-install` and related commands. Find sfdk in the
> > bin subdirectory of Sailfish SDK installation directory.
> > 
> > 
> > 
> > BR,
> > 
> > Martin


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

Re: [SailfishDevel] Docker build engine

2020-05-11 Thread Ville Nummela

On 11.5.2020 22.43, george b wrote:

 > sb2 -t SailfishOS-3.3.0.16-armv7hl -m sdk-install -R zypper in 
openssl-devel
And obviously, even if that works, it will be gone on the next 
shutdown of the docker container.


Any hints here?


As long as you shutdown the container using the tools provided by the 
SDK (i.e. either sfdk or Qt Creator), the changes will be preserved.


 -Ville

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

Re: [SailfishDevel] Docker build engine

2020-05-11 Thread Martin Kampas
Hi George,

As long as you list all your dependencies in the .spec file (you seem to do so 
in the 
linked sources), you do not need to do anything to get them installed. 
Installing 
build time dependencies happens automatically as part of the build process.

Should you need to manage packages under build targets for some reason, you may 
use either Qt Creator > Options > Sailfish OS > Build Engine > Manage Build 
Targets > 
Manage packages, or achieve the same on command line with `sfdk tools package-
install` and related commands. Find sfdk in the bin subdirectory of Sailfish 
SDK 
installation directory.

BR,
Martin


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

Re: [SailfishDevel] Docker build engine

2020-05-11 Thread Андрей Кожевников
sdk-assistant target list

пн, 11 мая 2020 г. в 22:43, george b :

> Hi
>
> I just installed the new SDK and selected Docker as build environment. For
> my project shmoose [1] I need some devel libs like openssl.
>
> What is the correct way to resolve this dependencies here?
>
> I tried to log into the container with:
>  > docker exec -it sailfish-os-build-engine bash
> and would like to install the dependency. But:
>  > sb2 -t SailfishOS-3.3.0.16-armv7hl -m sdk-install -R zypper in
> openssl-devel
> sb2: Error: Invalid target specified, aborting.
>
> And obviously, even if that works, it will be gone on the next shutdown of
> the docker container.
>
> Any hints here?
>
> [1] https://github.com/geobra/harbour-shmoose
> ___
> 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