<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi,</span></div><div><span><br></span></div><div><span>Please also provide the log when you run your application. </span></div><div><br></div><div><span>Cheers,</span></div><div><span>BogDan.</span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Ederson de Moura <ederbsd@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> necessitas-devel@kde.org<br><b><span style="font-weight: bold;">Sent:</span></b> Friday, August 5, 2011 10:57 PM<br><b><span style="font-weight:
bold;">Subject:</span></b> [External Shared Lib in QtAndroid]<br></font><br>Hello all!<br><br>Porting applications and libraries Maemo-5 to Android.<br><br>My application depends on an "external library", also written in C++<br>and Qt compiled in "shared lib" Android by QtCreator/Necessitas.<br><br>Now the application in use at the AVD Android! I am not able to load<br>the shared library. The application simply does not open is locked!!!<br><br>I tried the following below:<br><br>1) In file project ".pro" the application, added the line:<br><br>...<br>LIBS += -L /home/edm/app/lib -l geodroid<br>...<br><br>2) The lib was copied to the directory: android/libs/armeabi/libgeodroid.so<br><br>3) The tag was added in file libs.xml "bundled_libs"<br><br><?xml version='1.0' encoding='utf-8'?><br><resources><br> <array name="qt_libs"><br> <item>QtCore</item><br>
<item>QtGui</item><br> </array><br> <array name="bundled_libs"><br> <item>libgeodroid</item><br> </array><br></resources><br><br>4) The package ".APK" created. Check:<br><br>% unzip -l App-debug.apk<br>Archive: App-debug.apk<br> Length Date Time Name<br>--------- ---------- ----- ----<br> 2904 2011-08-05 14:34 AndroidManifest.xml<br> 1320 2011-08-05 14:34 resources.arsc<br> 3966 2011-08-05 14:34 res/drawable-hdpi/icon.png<br> 1537 2011-08-05 14:34 res/drawable-ldpi/icon.png<br> 2200 2011-08-05 14:34 res/drawable-mdpi/icon.png<br> 99444 2011-08-05 14:34 classes.dex<br> 26752 2011-08-04
17:42 lib/armeabi/libapp.so<br> 260680 2011-08-04 17:42 lib/armeabi/gdbserver<br> 6520 2011-08-05 14:32 lib/armeabi/libgeodroid.so<br><----------------------- [LIB HERE! NICE]<br> 721 2011-08-05 14:34 META-INF/MANIFEST.MF<br> 774 2011-08-05 14:34 META-INF/CERT.SF<br> 776 2011-08-05 14:34 META-INF/CERT.RSA<br>--------- -------<br> 407594 12 files<br><br>5) Ok! file APK installed on the AVD! But the application does not<br>open on Android???<br>Force close application.<br><br>Tests:<br><br>% file libgeodroid.so<br>libgeodroid.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV),<br>dynamically linked, not stripped<br><br>In AVD Shell:<br><br>#
pwd<br>/data/data/eu.licentia.necessitas.industrius.example.app/lib<br><br># strace ./libgeodroid.so<br>execve("./libgeodroid.so", ["./libgeodroid.so"], [/* 11 vars */]) = 0<br>syscall: unknown syscall trap 0x00000062<br><br># strace ./libapp.so<br>execve("./libapp.so", ["./libapp.so"], [/* 11 vars */]) = 0<br>syscall: unknown syscall trap 0xe5bcf12c<br><br>What can I be doing wrong? I found some threads on this list, but no solution.<br><br>Some hope for it???<br><br>-----------------------------------------------------------------------------<br>Versions: necessitas-0.2.1-online-sdk-installer-linux - 2011-06-25 - 23.0 MB<br><br>Qt Creator 2.2.0<br>Based on Qt 4.7.3 (32 bit)<br>Built on May 25 2011 at 16:18:43<br><br>Android emulator avd: target-8<br>Ministro 2.0<br><br>Linux kubuntu 32 Bits 11.04<br>-----------------------------------------------------------------------------<br><br>Best regards,<br><br>EDM.<br><br>-- <br>Ederson de Moura<br><a
href="http://sites.google.com/site/edersondemoura/" target="_blank">http://sites.google.com/site/edersondemoura/</a><br>_______________________________________________<br>Necessitas-devel mailing list<br><a ymailto="mailto:Necessitas-devel@kde.org" href="mailto:Necessitas-devel@kde.org">Necessitas-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/necessitas-devel" target="_blank">https://mail.kde.org/mailman/listinfo/necessitas-devel</a><br><br><br></div></div></blockquote></div></div></body></html>