-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libdecor support for manylinux wheels #9
Comments
The added code to build libdecor and its dependencies from source using the # Update Wayland to newer version for libdecor
apt-get install -y libffi-dev libxml2-dev
export WAYLAND_VERSION=1.20.0
export WAYLAND_URL=https://gitlab.freedesktop.org/wayland/wayland/-/archive
curl $WAYLAND_URL/$WAYLAND_VERSION/wayland-$WAYLAND_VERSION.tar.gz | tar -xz
cd wayland-$WAYLAND_VERSION
meson build --buildtype=release -Ddocumentation=false
ninja -C build/ install
cd ..
# Update wayland-protocols to newer version for libdecor
export PROTOCOLS_VERSION=1.24
export PROTOCOLS_URL=https://gitlab.freedesktop.org/wayland/wayland-protocols/-/archive
curl $PROTOCOLS_URL/$PROTOCOLS_VERSION/wayland-protocols-$PROTOCOLS_VERSION.tar.gz | tar -xz
cd wayland-protocols-$PROTOCOLS_VERSION
meson build --buildtype=release
ninja -C build/ install
cd ..
# Install libdecor once wayland and other depedencies are installed
apt-get install -y libpango1.0-dev
export LIBDECOR_VERSION=0.1.0
export LIBDECOR_URL=https://gitlab.gnome.org/jadahl/libdecor/-/archive
curl $LIBDECOR_URL/$LIBDECOR_VERSION/libdecor-$LIBDECOR_VERSION.tar.gz | tar -xz
cd libdecor-$LIBDECOR_VERSION
meson build --buildtype release
meson install -C build
cd .. ... after the rest of the apt-get dependencies have been installed. |
Closed by #25. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Linux, SDL2 recently added support for a library called 'libdecor', which seems to be necessary to create windows with titles and control buttons using Wayland.
Unfortunately Debian 9 (used by the
manylinux_2_24
wheels) doesn't offer libdecor through apt-get, meaning the manylinux SDL2 binaries don't get built with libdecor support. Making matters worse, compiling libdecor from source on Debian 9 doesn't seem to work due to a problem with thememfd_create
kernel function missing:The
memfd_create
function seems to have been introduced several kernel versions ago, so it's unclear why meson doesn't seem to be finding it for Debian 9.So far, the available options are:
memfd_create
bug\The text was updated successfully, but these errors were encountered: