Open TheDarkula opened 2 years ago
linux-vdso.so.1 (0x00007fff6adfe000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f991c3cf000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f991c37f000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f991c354000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f991c334000) libm.so.6 => /usr/lib/libm.so.6 (0x00007f991b118000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f991af31000) /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f991c4e7000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f991c318000) libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f991c305000) libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f991aef8000) libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f991ae0d000) libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007f991adff000) libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f991addd000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f991aca0000) libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007f991ac7d000) libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f991abe2000)
most of those are gnu / rendering libs used by eframe.
with dynamic linking in rust the dependencies you specify in Cargo.toml
are meant those are statically linked but if one of those needs external dependencies they have to be installed on the system
@RegenJacob I understand, however, it is failing when trying to link the fontconfig-sys crate. In their documentation, they have this:
Alternatively, set the environment variable RUST_FONTCONFIG_DLOPEN=on or enable the dlopen Cargo feature to load the library at runtime rather than link at build time (useful for cross compiling).
That is why I tried running a build with RUST_FONTCONFIG_DLOPEN=on
set, which should not actually try to link the library at build time, but it still is.
First off, thank you for all of your work!
I had a look at issue #339.
I am presuming that things have changed with egui's dependencies, because
ldd
shows that the binaries are dynamic:I tried compiling with cross using:
env RUST_FONTCONFIG_DLOPEN=on cross build --target x86_64-unknown-linux-musl
I have a
Cross.toml
with the following contents:I tried with
RUST_FONTCONFIG_DLOPEN=on
, as suggested here.Cross outputs these errors:
Something similar, but not really helpful is this issue
Is there something obvious I am missing to get a static binary?