Hi,

My procedure for adding packages & repositories to MerSDK and Sailfish Emulator (Alpha Qt5), for example, the "mer-python3" repository (https://build.merproject.org/project/show?project=mer-python3) and "python3" package :

1) In MerSDK & target i486 (via ssh) :
a) adding repository to MerSDK, for example the "mer-python3" one :
mersdk@SailfishSDK:~$ sudo zypper ar -f http://repo.merproject.org/obs/mer-python3/latest_i486/ mer-python3
mersdk@SailfishSDK:~$ sudo zypper ref
b) adding repository to i486 target in MerSDK :
mersdk@SailfishSDK:~$ sb2 -t SailfishOS-i486-x86 -m sdk-install -R zypper ar -f http://repo.merproject.org/obs/mer-python3/latest_i486/ mer-python3 mersdk@SailfishSDK:~$ sb2 -t SailfishOS-i486-x86 -m sdk-install -R zypper ref
c) adding packages to MerSDK :
mersdk@SailfishSDK:~$ sudo zypper in python3-base python3-devel
d) adding packages to i486 target in MerSDK :
I. go to "SailfishOS IDE (Qt Creator) -> SailfishOS mode -> Targets -> Manage SailfishOS-i486-x86" and select the packages to install;
II. or :
mersdk@SailfishSDK:~$ sb2 -t SailfishOS-i486-x86 -m sdk-install -R zypper in python3-base python3-devel then go to "SailfishOS IDE (Qt Creator) -> SailfishOS mode -> Targets -> Manage SailfishOS-i486-x86 -> sync".

2) In Sailfish Emulator (via ssh) :
[nemo@SailfishEmul ~]$ sudo zypper ar -f http://repo.merproject.org/obs/mer-python3/latest_i486/ mer-python3
[nemo@SailfishEmul ~]$ sudo zypper ref
[nemo@SailfishEmul ~]$ sudo zypper in python3-base

If there is some error, feel free to comment. I want to update the 1st post of the topic "Sailfish SDK Alpha Qt5 released " in Talk Maemo.org (http://talk.maemo.org/showthread.php?t=89294) with useful info.

        Regards,

        Roberto


Em 06-08-2013 06:32, Reto Zingg escreveu:
Hi,

On 06.08.2013 12:14, christopher.l...@thurweb.ch wrote:
Hi Benoit

B.t.w, zypper in to the MERSDK and adding packages to the toolchain via
the SDK Control Center are NOT the same thing*.

I was also a bit confused on this, but as I see it, using zypper in the
MERSDK makes stuff available to the underlaying operating system, but
not necessarily to the toolchain.

yes installing something with zypper logged into the build engine, just installs that package in the build engine it self (the vbox image). You can install packages in the sb2 target also on the command line[0], but it's recommended to do it in the control center, since it assures that

a) it gets installed in the right sb2 target (aka toolchain)
b) call caches are in sync

If you install via cli, please hit the "sync" button, in the control center.

I know it's rather confusing at the beginning, but once you understand the differences between Build engine, SB2 Target / Toolchain and Emulator it should be clearer.

best regards
Reto

[0]
sb2 -t SailfishOS-i486-x86 -m sdk-install -R zypper install PACKAGE

_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to