[SailfishDevel] adding libraries to sailfish app.

Thomas Perl th.perl at gmail.com
Mon Dec 23 22:00:40 UTC 2013

2013/12/22 Mike Sheldon <mike at mikeasoft.com>:
> 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).

Use rpath, don't put LD_LIBRARY_PATH into the Exec= line. An upcoming
version of libsailfishapp will take care of setting the rpath for you
if you're using "CONFIG += sailfishapp" in your Qt project (this is
not yet available in the SDK).

The path of your private shared libraries must be
/usr/share/$APPNAME/lib/ (e.g. /usr/share/harbour-mycoolapp/lib/), and
the linking restrictions (against which system libraries the shared
library may be linked) are the same as for the main application
binary; those can be found at https://harbour.jolla.com/faq ("Can I
link against shared libraries which I ship with the app together in
the same rpm?").

HTH :)

More information about the Devel mailing list