GNOME Bugzilla – Bug 748993
Used cerbero build gstreamer on android, I found libgsttag-1.0.so contain libz.so with rpath
Last modified: 2015-05-06 07:51:31 UTC
1. I used cerbero to build gst-plugins-base-1.0, and copy the dynamic .so to android to execute the command "./gst-inspect-1.0" . But found error : (gst-plugin-scanner:3238): GStreamer-WARNING **: Failed to load plugin '/data/android_arm/lib/libgstaudio-1.0.so': dlopen failed: could not load library "libgsttag-1.0.so" needed by "libgstaudio-1.0.so"; caused by could not load library "/home/qys/cerbero/dist/android_arm/lib/libz.so" needed by "libgsttag-1.0.so"; caused by library "/home/qys/cerbero/dist/android_arm/lib/libz.so" not found (gst-plugin-scanner:3238): GStreamer-WARNING **: Failed to load plugin '/data/android_arm/lib/libgstpbutils-1.0.so': dlopen failed: could not load library "libgstaudio-1.0.so" needed by "libgstpbutils-1.0.so"; caused by could not load library "libgsttag-1.0.so" needed by "libgstaudio-1.0.so"; caused by could not load library "/home/qys/cerbero/dist/android_arm/lib/libz.so" needed by "libgsttag-1.0.so"; caused by library "/home/qys/cerbero/dist/android_arm/lib/libz.so" not found. 2. I used ndk-depends command to see libgsttag-1.0.so, found that: qys@his-Lenovo:~/cerbero/dist/android_arm/lib$ ndk-depends libgsttag-1.0.so WARNING: Could not find library: /home/qys/cerbero/dist/android_arm/lib/libz.so libsttag-1.0.so libgstbase-1.0.so libgtreamer-1.0.so libm.so libgobect-2.0.so libgmodule-2.0.so libglib-2.0.so libintl.so libiconv.so.2 libffi.so libdl.so libc.so /home/qys/cerbero/dist/android_arm/lib/libz.so I don't known why libz.so is rpath? Thank you very much.
For using GStreamer on Android, you're not supposed to use the shared libraries but the static libraries build system that is provided with the binaries. *** This bug has been marked as a duplicate of bug 737429 ***