We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

where are the libs ?

asked 2015-07-27 13:41:38 +0300

michello gravatar image

updated 2015-07-27 14:02:27 +0300

jiit gravatar image

Hello saillors, I'm a noob in sailfish sdk, i'm confuse where are the path of the libs ? when connecting on ssh : ssh -p 2222 -i SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost

there is:

  1. /usr/lib,
  2. /srv/mer/targets/SailfishOS-i486/usr/lib,
  3. /host_targets/SailfishOS-i486/usr/lib/
  4. /home/mersdk/share/SailfishOS/lib/
  5. /home/mersdk/share/SailfishOS/mersdk/targets/SailfishOS-i486/usr/lib/

    I'm trying to compile a project lib. From the Sailfish IDE, qmake do not find some of the libs needed for the compilation, but i know they are here since i find them on the paths above. Maybe they are in the wrong path so which path do i have to put in PKG_CONFIG_PATH ? I also tryed to compile it manualy from ssh by using :

mb2 -t SailfishOS-i486 -s SPECS/thelib.spec build

and

sb2 -t SailfishOS-i486 -m sdk-install -R pkcon install-local thelib.i486.rpm

I have now a bunch of file in /home/deploy/installroot/ where am i suppose to put them ?

So my questions are what are those path related to ? How can i build a lib from Sailfish sdk ?

Thanks

edit retag flag offensive close delete

Comments

Are you sure you have the dev libraries installed, not just the normal ones? I haven't done any development on Sailfish but this has bitten me on Ubuntu before.

Feathers_McGraw ( 2015-07-27 14:43:22 +0300 )edit

yes, they are installed.

michello ( 2015-07-27 14:45:42 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-07-27 16:44:17 +0300

tortoisedoc gravatar image

Are you trying to find the correct place to deploy libraries to (for your app) or to build / link your app against them?

edit flag offensive delete publish link more

Comments

i'm trying to compile an app from sources wich require a lib that is not find with the package tools (zypper). So i need to compile the lib from source and link it to my app. When i compile the lib from the sdk, qmake tell me that some lib (ie:qt5opengl) are not find. So yes i suppose i have to deploy the lib for my app. But deploy and crosscompilation are things very new. Actualy How it works is not very clear for me.

michello ( 2015-07-27 18:45:44 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-07-27 13:41:38 +0300

Seen: 394 times

Last updated: Jul 27 '15