Oddbean new post about | logout
 I have a hard time building this. I mean it builds but doesn’t launch. It’s either some complaints about Wayland libs or not using a very specific glibc version. I suspect egui is the culprit 
 egui is always the culprit. Did you try running the compiled distributed binary?

nostr:nprofile1qyfhwumn8ghj7mmxve3ksctfdch8qatz9uqsuamnwvaz7tmwdaejumr0dshszynhwden5te0dehhxarjw4jjucm0d5hsqg8wzxjalaqvrxj4taqlus453uqwvxxfzgjky2hr0dkzhdnmwmzwfyq630g5  nostr:nprofile1qyvhwumn8ghj7un9d3shjtnndehhyapwwdhkx6tpdshszymhwden5te0wp6hyurvv4cxzeewv4ej7qgewaehxw309aex2mrp0yhxummnw3exjcmp9e3k7mf0qqstlszcex4my59z7nc0ysppptn4qgsmv983nwv8965vmav6d8tgj9qlhqxdu  please help 
 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.