Let's say i'm having libFoo.so
compiled for android (arm). I'm not sure what STL implementation it was linked to (there are options ). How can i get dependencies (as .so list) for it to understand what files i should provide and load using System.load(...)/loadLibrary(...)
?
You can use the objdump
tool and filter out the relevant part. In this case, eg arm-linux-androideabi-objdump -p libFoo.so | grep NEEDED
arm-linux-androideabi-objdump -p libFoo.so | grep NEEDED
.
The ldd
tool as suggested normally also does this, but it tries to actually find all the files that would be loaded, and it is not always available in cross-compilation environments.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.