MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

How to build libmediainfo.so for Linux to sysv format,not GNU/LINUX format?

Open yanlemin1969 opened this issue 10 months ago • 1 comments

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.

yanlemin1969 avatar Feb 20 '25 10:02 yanlemin1969

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).

g-maxime avatar Feb 21 '25 10:02 g-maxime