shiro / map2

Linux input remapping for your keyboard, mouse and more!
MIT License
118 stars 8 forks source link

Release binaries for older machines #1

Closed pepa65 closed 3 years ago

pepa65 commented 3 years ago

Looks very interesting, but it suffers from the common "requires a very recent GLIBC" issue. If you could release binaries that are made on an older machine, it would not affect people with a newer GLIBC, but it would extend your reach. I am on the latest Ubuntu-family LTS (20.04), but last month I was still running 18.04 and I ran into this issue a lot... Debug output:

map2: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by map2)
map2: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by map2)
shiro commented 3 years ago

I tried cross-compiling (with musl) but this throws some errors since we rely on kernel header (i.e. linux/types.h) and evdev headers.
I don't plan to setup CI builds or dockerized builds right now, so if you need to build against older libs consider building from source. I'll add other options in the future if the user base gets big enough and cross-compilation is not an option.

If someone is more familiar with cross-compilation I'd appreciate any input.

pepa65 commented 3 years ago

Do you have any pointers how I could build from source? Or do you think upgrading my rust version would help??

shiro commented 3 years ago

You should be able to build it as described by the README. The latest stable version of rust should compile it with no issues. If you have any issues compiling just let me know.