MediaInfoLib
MediaInfoLib copied to clipboard
How to build libmediainfo.so for Linux to sysv format,not GNU/LINUX format?
How to build libmediainfo.so for Linux to sysv format,not GNU/LINUX format? We use libmediainfo.so for JNI, we built the lastest libmediainfo.so, but JNI loadlarary can not find the lib,we use "file libmediainfo.so",we found the so and so objedct file is gnu/linux format, which can be found.
Tested our JNI example with openJDK 21, its working.
ELFOSABI is determined by the entire build environment and is not easy to tweak.
If your Java implementation cannot load the library, you can try compiling a static version of libmediainfo in an older build environment (such a chroot or container) that does not use ELFOSABI_LINUX (e.g. CentOS 7).