evil-helix icon indicating copy to clipboard operation
evil-helix copied to clipboard

build hx with static libraries

Open ksandvik opened this issue 11 months ago • 4 comments

Any chance to build hx as a standalone binary with static libraries? For example, with this app where the .so files are not co-signed, someone needs to allow each and every .so file the first time the .so is accessed.

ksandvik avatar Feb 06 '25 22:02 ksandvik

I like the idea, although that would mean we're adding about 150 MiB (IIRC) to the hx binary. I'll have to check the feasibility though; no doubt we'd have to d ig into the loading of the grammars and change something there.

usagi-flow avatar Feb 09 '25 19:02 usagi-flow

I second this. I'm running evil-helix on a Ubuntu 22.04.5 machine, and the latest version fails with the following error:

/home/user/helix/./hx: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /home/user/helix/./hx)

HopeGerbil avatar Apr 28 '25 17:04 HopeGerbil

I have the same issue in Pop!_OS that is based on Ubuntu 22.04.

hx: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by hx)

ronilaukkarinen avatar Jul 25 '25 15:07 ronilaukkarinen

Just to give a small update: I'm leaning a lot towards distributing evil-helix as an AppImage (in addition to the other options of course). This would avoid the side effects of a monolithic binary, but it should solve issues people have with incompatible glibc versions.

See also this issue which describes the same problem: #119

If no PR is submitted, I'll seek to do it myself. Either way, thank you all for your patience.

usagi-flow avatar Jul 26 '25 19:07 usagi-flow