Re: [SailfishDevel] adding libraries to sailfish app.
2013/12/22 Mike Sheldon : > 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 :) Thomas ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] adding libraries to sailfish app.
Thank you On Sun, Dec 22, 2013 at 9:27 PM, Mike Sheldon wrote: > 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. > > > ___ > SailfishOS.org Devel mailing list > ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] adding libraries to sailfish app.
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. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] adding libraries to sailfish app.
thank you. is there a way to deploy compiled shared libraries with app? On Sat, Dec 21, 2013 at 11:02 PM, Andrey Kozhevnikov wrote: > static link object file to your binary > > > On 21.12.2013 23:28, Sadika Sumanapala wrote: > > My qt application uses 3rd party library which use Cmake to build. > How can I add it to qmake project (or required libraries) to create > sailfish application? > (I'm new to this) > > > > > ___ > SailfishOS.org Devel mailing list > > > > ___ > SailfishOS.org Devel mailing list > ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] adding libraries to sailfish app.
static link object file to your binary On 21.12.2013 23:28, Sadika Sumanapala wrote: My qt application uses 3rd party library which use Cmake to build. How can I add it to qmake project (or required libraries) to create sailfish application? (I'm new to this) ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] adding libraries to sailfish app.
My qt application uses 3rd party library which use Cmake to build. How can I add it to qmake project (or required libraries) to create sailfish application? (I'm new to this) ___ SailfishOS.org Devel mailing list