Closed codewiz closed 2 years ago
I got it to work by building and installing the latest version of libxkbcommon in /usr/local:
tar xvf libxkbcommon-1.4.0.tar.xz
meson setup build -Denable-wayland=false -Ddefault_library=shared
ninja -C build
sudo ninja -C build install
# Perhaps unnecessary? I couldn't get the linker to use my library until I removed /usr/lib/x86_64-linux-gnu/libxkbcommon.so
export PKG_CONFIG_PATH=/usr/local/lib/x86_64-linux-gnu/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu
cd wezterm
cargo build --release
# The library looks for locale files in /usr/local/share/X11... I had to symlink them over:
sudo ln -s /usr/share/X11 /usr/local/share/X11
Yes, it's a pile of hacks, but I couldn't figure out how to statically link with a locally built libxkbcommon.a while still using the system's /usr/share/X11.
I'm not inclined to "fix" this in wezterm: we need that function for sane handling of keyboard input, so we can't lower the version requirement. An alternative option for you might be to install an older version of wezterm: https://github.com/wez/wezterm/releases/tag/20210814-124438-54e29167 was the last version to support Ubuntu 16.
Including our own static version of that dependency might be doable, but the more of the "core" X stuff we pull in in that way, the more chance there is of some kind of symbol collision with other system libraries, not to mention that it makes it more work overall for me to maintain wezterm.
I think the right path is to require that the system has libxkbcommon 0.6.0 or higher available; that was released 6 years ago, so that shouldn't be a tremendous burden.
Do you really need to run the gui on Ubuntu 16?
I'm not inclined to "fix" this in wezterm: [...]
I agree. None of the available fixes seems particularly appealing, and given that Ubuntu 16.04 is already past its regular lifetime, the problem will solve itself in time.
Do you really need to run the gui on Ubuntu 16?
Well, I could run a VM with a current Linux distro and make it full screen... but I wonder if IT will be ok with that? 😂
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Build Environment (please complete the following information):
Dependencies
Did you run the
get-deps
script to install required system dependencies? Yes Was it successful? YesThe build output
Please include the output from running the build command: