JavaFx Linux vs Glibc
Kevin Rushforth
kevin.rushforth at oracle.com
Tue Aug 2 16:57:51 UTC 2022
On Linux you always need to be careful if you build on a newer machine
that you intended to deploy on. In our builds, we compile and statically
link with libc libraries from a devkit similar to what the JDK build
does. We do the same for the gtk3 libraries. In both cases, we try to
avoid linking with whatever happens to be on the build machine. We also
build on Oracle Linux 7 to avoid any problems for those cases where we
do pick up a system library. I believe Gluon does something similar,
although I think they use a different Linux system for their builds (but
still older than Ubuntu 20.04).
-- Kevin
On 8/2/2022 9:50 AM, Thiago Milczarek Sayão wrote:
> Hi,
>
> I have built my own jmods, but when running it complained about GLIBC
> version.
>
> ldd libglassgtk3.so
> ./libglassgtk3.so: /lib/x86_64-linux-gnu/libc.so.6: version
> `GLIBC_2.32' not found (required by ./libglassgtk3.so)
> ./libglassgtk3.so: /lib/x86_64-linux-gnu/libc.so.6: version
> `GLIBC_2.34' not found (required by ./libglassgtk3.so)
>
> I have built it on a Ubuntu 22.04 VM and tried to run on 20.04.
>
> Any build flags I should pass?
>
> -- Thiago.
More information about the openjfx-dev
mailing list