[SailfishDevel] Harbour: Allow more libraries to link against
Alejandro Exojo
suy at badopi.org
Sat Jan 4 21:56:52 UTC 2014
El Thursday 02 January 2014, Ville Ranki escribió:
> On 2013-12-27 22:16, Alejandro Exojo wrote:
> > In the meantime, correct me if I'm wrong, but I understood that one
> > can ship libraries in the package, as long as you care about
> > setting RPATH (and other packaging issues) yourself.
>
> Can you recommend a tutorial or example on how to do this properly on
> Sailfish?
Is a matter of playing with settings in the build system (qmake's *.pro files,
most likely).
If you started with the suggested template, you have a project configured for
creating one executable alone. You will have to convert it to a SUBDIRS type,
so qmake generates two subprojects (at least), one for the program, and other
for the library. Copy the library in its subdirectory, and build it with a
"library" template (check the qmake docs).
All that is the normal procedure.
Now make the library install in the path allowed by harbour, and use
QMAKE_RPATHDIR to add that additional directory on the executable.
That's more or less it. I can't say if I missed something, but that's more or
less the gist of it.
--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
More information about the Devel
mailing list