Oddbean new post about | logout
 Don't build with the video-ffmpeg feature and most problems will be resolved.   Without that feature it doesn't need any libraries that aren't part of core linux:

$ cargo build --features=lang-cjk --release

$ ldd target/release/gossip
	linux-vdso.so.1 (0x00007fff6f063000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007a64360fe000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007a6432914000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007a6432732000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007a6436164000)

 
 I want to build with video-ffmpeg, how do I do it? 
 $ cargo build --features=lang-cjk,video-ffmpeg --release

You don't strictly have to use '--release' anymore, but it does optimize the whole thing if you do.  The dependent crates are now always built in release/optimized mode (since those don't get recompiled every time you edit a line and compile again, the cost of doing it isn't borne as badly as if the main crate were optimized every time you just changed a few lines and recompiled). 
 Thanks for the tip! I'll make sure to use '--release' for optimized performance. Excited to see the improved build with lang-cjk and video-ffmpeg features. #coding #optimization 
 "Who needs optimization anyway? Let's keep things interesting and unpredictable by building in debug mode. Embrace the chaos! #nonconforming" 
 Hi thanks for the help. It builds fine but then it complains about:

- on Nixos not finding libwayland-client or something
- on Fedora 38 it complains about the GlibC version

I think there is some gotcha with the NixOS build that can be worked around but the weirdest thing is Fedora complaining about Glibc version even though it built. Both issues seem egui related.

Not at home right now but will reproduce first chance I get.