LoadLibrary issue with ARM binaries - solved

201 views
Skip to first unread message

Peter Frøkjær Strand

unread,
Dec 21, 2012, 6:16:19 AM12/21/12
to sqlc...@googlegroups.com
( posting this solution in the hope that it will help others in the same situation ) 

I spent the most of yesterday trying to get SqlCipher integrated into an existing project.
It would fail on LoadLibrary when trying to load the libsqlcipher_android.so file. It would apparently load the libstlport_android.so fine.
The demo projects worked fine on my setup-

When trying on an actual x86 device ( Motorola iRazr something ) , our app it would work. But it would fail on the ARM devices I tried.

And here is why : 

The project we work on has other native libs, some which both have ARM and ARM-V7A .so files. It seems that when running on an ARM7A device and there are V7A .so files, it can not reliably find the non-V7a .so files from SqlCipher.
The solution :

make a directory called "armeabi-v7a" on the same level as the "armeabi" directory. Copy the sqlcipher .so files from "armeabi" to "armeabi-V7A"  - then it works.

Best regards,
Peter 

Michele Mondelli

unread,
May 6, 2013, 12:31:18 PM5/6/13
to sqlc...@googlegroups.com
Very useful.

Thank you!

bong.ko...@gmail.com

unread,
Feb 10, 2014, 9:16:08 AM2/10/14
to sqlc...@googlegroups.com
Hi, 

Would like to ask if your workaround has any issues so far? 


Thanks. 

ente...@jedrivisser.com

unread,
May 9, 2014, 4:53:07 AM5/9/14
to sqlc...@googlegroups.com
I did this, but the problem is that those .so's are more than 2MB, is  there no other solution?
Reply all
Reply to author
Forward
0 new messages