Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 2.7.0-beta
-
None
-
Ubuntu 13.04
Description
Wrong name library in bundled_libs section.
Example:
<array name="bundled_libs">
<item>libMyLib.so</item>
</array>
Need:
<array name="bundled_libs">
<item>MyLib</item>
</array>
More info:
1. Create project
Other Project-Subdirs Project
2. In window "New Subproject" add gui application
Applications-Qt GuiApplication
3. Add new subproject. In window "New Subproject" add C++ library
Libraries-C++ Library
4. Add in gui application library.
Context menu-Add Library-Internal library-check library(created in step 3)
5. Set project in Android Kit.
Build project
Open menu configurations: Project-Package configurations(Kit in Run).
In Prebundled libraries have "libMyLib.so". Need "MyLib"
Check "libMyLib.so".
In file android/res/values/libs.xml section "bundled_libs" contains <item>libMyLib.so</item>. Need <item>MyLib</item>
Log:
E/AndroidRuntime(16689): FATAL EXCEPTION: main
E/AndroidRuntime(16689): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1891]: 12034 could not load needed library 'libMyLib.so' for 'libgui.so' (load_library[1093]
Solved as:
http://pastebin.com/4TGiVawE
Attachments
For Gerrit Dashboard: QTCREATORBUG-9319 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
56918,1 | Android: Fix prebundled libraries use case | 2.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |