[SailfishDevel] adding libraries to sailfish app.

Mike Sheldon mike at mikeasoft.com
Sun Dec 22 15:57:28 UTC 2013


On Sun, 2013-12-22 at 19:11 +0530, Sadika Sumanapala wrote:
> thank you. is there a way to deploy compiled shared libraries with
> app?

Just include them in your rpm and set the -rpath value for your binary
at compilation time (alternatively you could be setting LD_LIBRARY_PATH
at runtime from your .desktop's Exec line). You can see an example of
this in the CuteSpotify Sailfish port which includes libspotify (of
particular interest will be src/src.pro):

 https://github.com/Elleo/cutespotify/tree/sailfish

It's not a perfect example as it doesn't work with the new out of tree
builds that QtCreator does (I tend to just build from the command line,
so haven't got around to updating it yet), but it should give a rough
idea of what to do.

Cheers,
 Mike.




More information about the Devel mailing list