<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">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">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">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">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">http://upstream.rosalinux.ru/v<wbr>ersions/liboauth.html</a><br>
</blockquote></div><br></div>