<div dir="ltr"><div><div>This was may assumption.<br></div>But when I try to combine the static library (libSwiften) within my qt app, I got the following error during linking:<br><br>g++ -Wl,-O1 -Wl,-rpath,/usr/share/kaidan/lib -o kaidan main.o Kaidan.o RosterContoller.o RosterItem.o Persistence.o MessageController.o Database.o qrc_qml.o moc_Kaidan.o moc_RosterContoller.o moc_RosterItem.o moc_Persistence.o moc_MessageController.o moc_Database.o   -L../swift-3.0/Swiften -L../../swift-3.0/3rdParty/Boost -lSwiften -lSwiften_Boost -lrt -lz -lssl -lcrypto -lxml2 -lresolv -ldl -lm -lc -lstdc++ -pie -rdynamic -L/usr/lib/ -lsailfishapp -lmdeclarativecache5 -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Sql -lQt5Core -lGLESv2 -lpthread <br>/opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: ../swift-3.0/Swiften/libSwiften.a(CoreClient.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN5Swift10CoreClient21handleMessageReceivedEN5boost10shared_ptrINS_7MessageEEE' can not be used when making a shared object; recompile with -fPIC<br>../swift-3.0/Swiften/libSwiften.a: error adding symbols: Bad value<br><br></div>Any suggestions what went wrong?<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-22 21:18 GMT+01:00 Andrey Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div><div>of course you can static compile selected libraries only.</div><div><br></div>
<div>------ Исходное сообщение ------</div>
<div>От: "george b" <<a href="mailto:scooterschorschi@gmail.com" target="_blank">scooterschorschi@gmail.com</a>></div>
<div>Кому: "Sailfish OS Developers" <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>></div>
<div>Отправлено: 22.11.2016 23:05:17</div>
<div>Тема: [SailfishDevel] Static build</div><div><div class="h5"><div><br></div>
<div id="m_-8031936737426754881x939be2e6a167429"><blockquote cite="http://CAL30P+buuoz90Q3AZqJ8gOTCCsb+_V3UbHArDyJQecG=+JCesQ@mail.gmail.com" type="cite" class="m_-8031936737426754881cite2">
<div dir="ltr"><div><div><div>Hi<br><br></div></div><div>I try to develop a xmpp client [1], based on libSwiften. A console example compiled against a static Swiften lib works well. No I compiled Swiften as a shared object, to combine it in a sailfish app. This way I got a sasl error on runtime. Similar posts in different forums pointed out that the error message results from a bug in a sasl library. I can work around this problem using the static version of Swiften.<br></div><div><br>Are there packages for static versions of qt and libsailfishapp available, to be installed in the sdk? Or is there a possibility to combine a static libraray archive with a sailfish application which uses shared librarys?<br><br></div>Regards<br></div>Georg<br><br>[1] <a href="https://github.com/KaidanIM/Kaidan" target="_blank">https://github.com/KaidanIM/<wbr>Kaidan</a><br><br></div>
</blockquote></div>
</div></div></div><br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br></blockquote></div><br></div>