Make libsdl3 NOT use Wayland #9726
Unanswered
RolandHughes
asked this question in
Q&A
Replies: 4 comments 24 replies
add |
11 replies
|
I tried it on linux. I don't see Wayland being installed; it has been disabled. It works for me. add_rules("mode.debug", "mode.release")
add_requires("libsdl3", {configs = {wayland = false}})
target("test")
set_kind("binary")
add_files("src/*.cpp")
add_packages("libsdl3")ruki@0865ad527ff9:/tmp/test$ xmake f -c
checking for platform ... linux (x86_64)
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> ninja v1.13.1 [host, from:cmake, license:Apache-2.0]
-> cmake 4.2.3 [host, from:libsdl3, license:BSD-3-Clause]
-> egl-headers 2023.12.16 [from:libsdl3,opengl-headers, license:MIT]
-> opengl-headers 2024.01.04 [from:libsdl3, license:MIT]
-> util-macros 1.20.0 [from:libx11,libx11#1,libxcursor,xorgproto,libxau,xtrans]
-> libxext 1.3.7 [private, shared:y, from:libsdl3, license:X11]
-> libxfixes 6.0.1 [shared:y, from:libxcursor,libxi]
-> libxrender 0.9.12 [shared:y, from:libxcursor,libxrandr]
-> libxcursor 1.2.3 [private, shared:y, from:libsdl3]
-> libxfixes#1 6.0.1 [private, shared:y, from:libsdl3]
-> libxext#1 1.3.7 [shared:y, from:libxss,libxi,libxrandr, license:X11]
-> libxi 1.8.2 [private, shared:y, from:libsdl3]
-> libxrandr 1.5.4 [private, shared:y, from:libsdl3]
-> libxrender#1 0.9.12 [private, shared:y, from:libsdl3]
-> libtool 2.6.0 [host, from:libxss]
-> libxss 1.2.5 [private, shared:y, from:libsdl3, license:MIT]
-> libsdl3 3.4.4 [wayland:n, license:zlib]
please input: y (y/n/m)
=> download https://www.x.org/archive/individual/util/util-macros-1.20.0.tar.gz .. ok
=> install util-macros 1.20.0 .. ok
=> download https://github.com/ninja-build/ninja/archive/refs/tags/v1.13.1.tar.gz .. ok
=> download https://www.x.org/archive/individual/lib/libXext-1.3.7.tar.gz .. ok
=> install ninja v1.13.1 .. ok
=> download https://distfiles.gentoo.org/distfiles/78/libtool-2.6.0.tar.xz .. ok
=> install libxext 1.3.7 .. ok
=> download https://www.x.org/archive/individual/lib/libXfixes-6.0.1.tar.gz .. ok
=> install libtool 2.6.0 .. ok
=> install libxfixes 6.0.1 .. ok
=> download https://www.x.org/archive/individual/lib/libXrender-0.9.12.tar.gz .. ok
=> download https://www.x.org/archive/individual/lib/libXfixes-6.0.1.tar.gz .. ok
=> install libxfixes#1 6.0.1 .. ok
=> install libxrender 0.9.12 .. ok
=> download https://www.x.org/archive/individual/lib/libXext-1.3.7.tar.gz .. ok
=> install libxext#1 1.3.7 .. ok
=> download https://www.x.org/archive/individual/lib/libXcursor-1.2.3.tar.gz .. ok
=> install libxcursor 1.2.3 .. ok
=> download https://www.x.org/archive/individual/lib/libXi-1.8.2.tar.gz .. ok
=> install libxi 1.8.2 .. ok
=> download https://www.x.org/archive/individual/lib/libXrandr-1.5.4.tar.gz .. ok
=> download https://www.x.org/archive/individual/lib/libXrender-0.9.12.tar.gz .. ok
=> install libxrender#1 0.9.12 .. ok
=> download https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/archive/libXScrnSaver-1.2.5/libxscrnsaver-libXScrnSaver-1.2.5.tar.gz .. ok
=> install libxrandr 1.5.4 .. ok
=> clone https://github.com/KhronosGroup/EGL-Registry.git 2023.12.16 .. ok
=> install egl-headers 2023.12.16 .. ok
=> install libxss 1.2.5 .. ok
=> download https://github.com/Kitware/CMake/releases/download/v4.2.3/cmake-4.2.3-linux-x86_64.tar.gz .. ok
=> install cmake 4.2.3 (binary) .. ok
=> clone https://github.com/KhronosGroup/OpenGL-Registry.git 2024.01.04 .. ok
=> install opengl-headers 2024.01.04 .. ok
=> download https://github.com/libsdl-org/SDL/releases/download/release-3.4.4/SDL3-3.4.4.zip .. ok
=> install libsdl3 3.4.4 .. ok |
8 replies
|
I'm working around the issue now. Documentation was unclear with add_deps() vs. add_packages() to add dependencies. add_deps() of something in the repo, whether intended or not, forces a build. Please wait until morning unless you are looking to track that down. |
4 replies
|
libsdl3 was still installed successfully, and no Wayland issues were found. I don't know what you changed, but I couldn't reproduce the problem. ruki@0865ad527ff9:/tmp/basisdoctrina-code$ ./build-BasisDoctrina-local.sh
MUST BE RUN FROM ROOT OF PROJECT DIRECTORY TREE
This will delete existing local build or release
directories and create new ones. It will then prep
the build directory for a ninja build. Finally it
will perform the actual build.
*** Establishing fresh directories
SCRIPT_DIR /tmp/basisdoctrina-code
XMAKE_CACHE_DIR /tmp/basisdoctrina-code/../basisdoctrina_local_xmake_cache
BUILD_DIR /tmp/basisdoctrina-code/../basisdoctrina_local_build
RELEASE_DIR /tmp/basisdoctrina-code/../basisdoctrina_local_release
Found 4 cores so setting job count to 3
***********
***********
XMAKE_PKG_CACHEDIR /tmp/basisdoctrina-code/../basisdoctrina_local_xmake_cache
XMAKE_PKG_INSTALLDIR /tmp/basisdoctrina-code/../basisdoctrina_local_xmake_install
***********
***********
**************
************** WAYLAND_SUPPORT not defined
************** will not build Wayland
**************
**************
************** WAYLAND_SUPPORT not defined
************** will not build Wayland
**************
checking for platform ... linux (x86_64)
**************
************** WAYLAND_SUPPORT not defined
************** will not build Wayland
**************
**************
************** WAYLAND_SUPPORT not defined
************** will not build Wayland
**************
=> download https://www.x.org/archive/individual/util/util-macros-1.20.0.tar.gz .. ok
=> install util-macros 1.20.0 .. ok
=> download https://github.com/ninja-build/ninja/archive/refs/tags/v1.13.1.tar.gz .. ok
=> download https://github.com/libffi/libffi/releases/download/v3.4.8/libffi-3.4.8.tar.gz .. ok
=> download https://github.com/madler/zlib/archive/refs/tags/v1.3.2.tar.gz .. ok
=> clone https://github.com/KhronosGroup/EGL-Registry.git 2023.12.16 .. ok
=> install egl-headers 2023.12.16 .. ok
=> install libffi 3.4.8 .. ok
=> install zlib v1.3.2 .. ok
=> install ninja v1.13.1 .. ok
=> download https://github.com/xmake-mirror/xmake-cacert/archive/refs/tags/20250131.zip .. ok
=> install ca-certificates 20250131 .. ok
=> download https://distfiles.gentoo.org/distfiles/78/libtool-2.6.0.tar.xz .. ok
=> download https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1w.zip .. ok
=> install libtool 2.6.0 .. ok
=> download https://github.com/libffi/libffi/releases/download/v3.4.8/libffi-3.4.8.tar.gz .. ok
=> install libffi#1 3.4.8 .. ok
=> download https://github.com/madler/zlib/archive/refs/tags/v1.3.2.tar.gz .. ok
=> install zlib#1 v1.3.2 .. ok
=> download https://cmake.org/files/v4.2/cmake-4.2.3-linux-x86_64.tar.gz .. ok
=> install cmake 4.2.3 (binary) .. ok
=> clone https://github.com/KhronosGroup/OpenGL-Registry.git 2024.01.04 .. ok
=> install opengl-headers 2024.01.04 .. ok
=> download https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.44/pcre2-10.44.tar.gz .. ok
=> install openssl 1.1.1-w .. ok
=> download https://www.python.org/ftp/python/3.14.3/Python-3.14.3.tgz .. ok
=> install pcre2 10.44 .. ok
=> install python 3.14.3 .. ok
=> download https://www.x.org/archive/individual/lib/libXfixes-6.0.1.tar.gz .. ok
=> download https://www.x.org/archive/individual/lib/libXrender-0.9.12.tar.gz .. ok
=> download https://www.x.org/archive/individual/lib/libXext-1.3.7.tar.gz .. ok
=> install libxfixes#1 6.0.1 .. ok
=> download https://www.x.org/archive/individual/lib/libXfixes-6.0.1.tar.gz .. ok
=> install libxfixes 6.0.1 .. ok
=> install libxrender 0.9.12 .. ok
=> install libxext 1.3.7 .. ok
=> download https://www.x.org/archive/individual/lib/libXext-1.3.7.tar.gz .. ok
=> install libxext#1 1.3.7 .. ok
=> download https://www.x.org/archive/individual/lib/libXrender-0.9.12.tar.gz .. ok
=> install libxrender#1 0.9.12 .. ok
=> download https://www.x.org/archive/individual/lib/libXcursor-1.2.3.tar.gz .. ok
=> install libxcursor 1.2.3 .. ok
=> download https://www.x.org/archive/individual/lib/libXrandr-1.5.4.tar.gz .. ok
=> download https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/archive/libXScrnSaver-1.2.5/libxscrnsaver-libXScrnSaver-1.2.5.tar.gz .. ok
=> download https://www.x.org/archive/individual/lib/libXi-1.8.2.tar.gz .. ok
=> install libxrandr 1.5.4 .. ok
=> install libxi 1.8.2 .. ok
=> install libxss 1.2.5 .. ok
=> download https://github.com/mesonbuild/meson/releases/download/1.10.2/meson-1.10.2.tar.gz .. ok
=> install meson 1.10.2 .. ok
=> download https://download.gnome.org/sources/glib/2.85/glib-2.85.0.tar.xz .. ok
=> install glib 2.85.0 .. failed
ninja: Entering directory `/tmp/basisdoctrina_local_xmake_cache/2604/g/glib/2.85.0/source/build_760fa6c9'
[1/500] Copying file gio/gdbus-2.0/codegen/codegen_docbook.py
[2/500] Copying file gio/gdbus-2.0/codegen/__init__.py
[3/500] Copying file gio/gdbus-2.0/codegen/codegen_main.py
[4/500] Copying file gio/gdbus-2.0/codegen/codegen_rst.py
[5/500] Copying file gio/gdbus-2.0/codegen/codegen.py
[6/500] Copying file gio/gdbus-2.0/codegen/codegen_md.py
[7/500] Copying file gio/gdbus-2.0/codegen/dbustypes.py
[8/500] Copying file gio/gdbus-2.0/codegen/parser.py
[9/500] Generating glib/gversionmacros.h with a custom command
[10/500] Copying file gio/gdbus-2.0/codegen/utils.py
[11/500] Generating gobject/glib_enumtypes_h with a custom command (wrapped by meson to capture output)
[12/500] Generating glib/glib-visibility.h with a custom command
[13/500] Generating gobject/gobject-visibility.h with a custom command
[14/500] Generating gmodule/gmodule-visibility.h with a custom command
[15/500] Generating gio/gio-visibility.h with a custom command
[16/500] Generating gio/gdbus-daemon-generated with a custom command
if you want to get more verbose errors, please see:
-> /tmp/basisdoctrina-code/../basisdoctrina_local_xmake_cache/2604/g/glib/2.85.0/installdir.failed/logs/install.txt
=> download https://www.libsdl.org/release/SDL3-3.4.4.zip .. failed
=> download https://github.com/libsdl-org/SDL/releases/download/release-3.4.4/SDL3-3.4.4.zip .. ok
=> install libsdl3 3.4.4 .. ok
error: install failed!
*** Building BasisDoctrina Local
note: xmake.lua not found, try generating it (pass -y or --confirm=y/n/d to skip confirm)?
please input: n (y/n)
^C |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
I'm building a branch of the fledgling BasisDoctrina project, converting to XMake. Dev system is MX Linux VM to deliberately avoid all things Wayland.
Documentation for libsdl3 says all I should have to turn off is wayland_shared. Reading the .lua file on that page it appears there is also a wayland variable that is not documented as needing to be set.
In my xmake.lua I have the following:
When I run the build shell script I see
Then it dies here.
There is nothing more "verbose" at the end of that log.
I Ass-U-Me the expat. h error is somehow related to the Wayland issue. If not, does not matter, I will shoot that bug later. Main focus now is properly killing Wayland. I'm running X11 here.
The master branch uses CMake and builds fine.
So, my question is, what is missing from the libsdl3 documentation with respect to completely putting two behind Wayland's ear and leaving it in the woods?
All reactions