Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yanlemin1969 opened this issue Feb 20, 2025 · 1 comment

Comments

@yanlemin1969
Copy link

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.

@g-maxime
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants