<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Binaries is no. 2, see the harbour faq. The first variant may look
like this:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/monich/harbour-books/tree/master/fribidi">https://github.com/monich/harbour-books/tree/master/fribidi</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/monich/harbour-books/tree/master/linebreak">https://github.com/monich/harbour-books/tree/master/linebreak</a><br>
<br>
Basically, somehow pull the sources into your git, add them to your
project and setup include paths and other compiler options so that
the whole thing compiles.<br>
<br>
And of course there are many ways to do it. What I referenced is
just an example and probably not the best one. But I hope it helps.<br>
<br>
Cheers,<br>
-Slava<br>
<br>
<blockquote type="cite"
cite="mid:CAHB3x8G_+_Sn+T1mcZ=4BDYr=Si_yRwK=dmtALb8pM_CbBoq2Q@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">I want to use variant 1, but don't understand how.
Should I only download *.so file from engine and package it with
my application? Or I need something more to do this?<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-29 18:21 GMT+03:00 Slava Monich
<span dir="ltr"><<a href="mailto:slava.monich@jolla.com"
target="_blank" moz-do-not-send="true">slava.monich@jolla.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!
<div>
<div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello. I'm developing application with liboauth
dependency. This library<br>
exists in repos and I have installed it in SDK for
building and running app in<br>
emulator. On phone this library exists too.<br>
But this library is prohibited for harbour.<br>
What the proper way to package my application for
harbour?<br>
</blockquote>
<br>
</div>
</div>
You have 4 options here:<br>
<br>
1. Compile the library statically into your app<br>
2. Package the library with your app as described in the faq
[1]<br>
3. Convince Jolla to add liboauth to the list of allowed
libraries [2]<br>
4. Load pre-installed library with dlopen, e.g. [3]<br>
<br>
The last solution is a bit of a hack but it's probably
acceptable because liboauth doesn't seem to have had any
known ABI breakages in the past [4]. Which of course doesn't
guarantee anything in the future. Note that your rpm would
have to depend on liboauth package to make sure that the
library gets installed together with the app. Not sure if
that would pass the store QA though.<br>
<br>
Cheers,<br>
-Slava<br>
<br>
[1] <a
href="https://harbour.jolla.com/faq#Shared_Libraries"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://harbour.jolla.com/faq#<wbr>Shared_Libraries</a><br>
[2] <a
href="https://github.com/sailfishos/sdk-harbour-rpmvalidator/blob/harbour-qa/allowed_libraries.conf"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/sailfishos/<wbr>sdk-harbour-rpmvalidator/blob/<wbr>harbour-qa/allowed_libraries.c<wbr>onf</a><br>
[3] <a
href="https://github.com/monich/harbour-books/blob/master/app/stubs/libmagic.c"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/monich/harb<wbr>our-books/blob/master/app/stub<wbr>s/libmagic.c</a><br>
[4] <a
href="http://upstream.rosalinux.ru/versions/liboauth.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://upstream.rosalinux.ru/v<wbr>ersions/liboauth.html</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>