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