vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

Linux '[sdl2] Build error'

Open RedactedCode opened this issue 3 years ago • 7 comments

Package: sdl2[core,x11]:x64-linux -> 2.0.22#1 Host Environment

  • Host: x64-linux
  • Compiler: GNU 9.3.0
  • vcpkg-tool version: 2022-06-17-9268e366206712e38102b28dbd1617697a99ff2e vcpkg-scripts version: cef0b3e 2022-06-20 (4 weeks ago)

To Reproduce vcpkg install libsndfile[core,external-libs] kissfft fmt crossguid sdl2[x11] gl3w reproc gsl-lite concurrentqueue platform-folders catch2

Failure logs

-- Using cached libsdl-org-SDL-53dea9830964eee8b5c2a7ee0a65d6e268dc78a1.tar.gz.
-- Cleaning sources at /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/src/e268dc78a1-d09ea46a1c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/downloads/libsdl-org-SDL-53dea9830964eee8b5c2a7ee0a65d6e268dc78a1.tar.gz
-- Applying patch 0001-sdl2-Enable-creation-of-pkg-cfg-file-on-windows.patch
-- Applying patch 0002-sdl2-skip-ibus-on-linux.patch
-- Applying patch 0003-sdl2-disable-sdlmain-target-search-on-uwp.patch
-- Applying patch 0004-Define-crt-macros.patch
-- Using source at /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/src/e268dc78a1-d09ea46a1c.clean
CMake Warning at ports/sdl2/portfile.cmake:26 (message):
  You will need to install Xorg dependencies to use feature x11:

  sudo apt install libx11-dev libxft-dev libxext-dev

Call Stack (most recent call first):
  scripts/ports.cmake:146 (include)


-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:83 (message):
    Command failed: /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/downloads/tools/cmake-3.22.2-linux/cmake-3.22.2-linux-x86_64/bin/cmake /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/src/e268dc78a1-d09ea46a1c.clean -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/packages/sdl2_x64-linux/debug -DSDL_VULKAN=OFF -DSDL_X11_SHARED=ON -DSDL_STATIC=1 -DSDL_SHARED=0 -DSDL_FORCE_STATIC_VCRT=0 -DSDL_LIBC=ON -DSDL_HIDAPI_JOYSTICK=ON -DCMAKE_MAKE_PROGRAM=/mnt/home/data/src/sonic-pi-4.0.3/app/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/mnt/home/data/src/sonic-pi-4.0.3/app/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg -D_VCPKG_INSTALLED_DIR=/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF
    Working Directory: /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/x64-linux-dbg
    Error code: 1
    See logs for more information:
      /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/config-x64-linux-dbg-out.log
      /initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/config-x64-linux-dbg-err.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:250 (vcpkg_execute_required_process)
  ports/sdl2/portfile.cmake:33 (vcpkg_cmake_configure)
  scripts/ports.cmake:146 (include)



/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/config-x64-linux-dbg-out.log
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Performing Test HAVE_GCC_WALL
-- Performing Test HAVE_GCC_WALL - Success
-- Performing Test HAVE_GCC_NO_STRICT_ALIASING
-- Performing Test HAVE_GCC_NO_STRICT_ALIASING - Success
-- Performing Test HAVE_GCC_WDECLARATION_AFTER_STATEMENT
-- Performing Test HAVE_GCC_WDECLARATION_AFTER_STATEMENT - Success
-- Performing Test HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT
-- Performing Test HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT - Success
-- Performing Test HAVE_GCC_ATOMICS
-- Performing Test HAVE_GCC_ATOMICS - Success
-- Performing Test HAVE_GCC_PREFERRED_STACK_BOUNDARY
-- Performing Test HAVE_GCC_PREFERRED_STACK_BOUNDARY - Failed
-- Performing Test HAVE_GCC_FVISIBILITY
-- Performing Test HAVE_GCC_FVISIBILITY - Success
-- Performing Test HAVE_GCC_WSHADOW
-- Performing Test HAVE_GCC_WSHADOW - Success
-- Performing Test HAVE_NO_UNDEFINED
-- Performing Test HAVE_NO_UNDEFINED - Success
-- Performing Test HAVE_MMX
-- Performing Test HAVE_MMX - Success
-- Performing Test HAVE_3DNOW
-- Performing Test HAVE_3DNOW - Success
-- Performing Test HAVE_SSE
-- Performing Test HAVE_SSE - Success
-- Performing Test HAVE_SSE2
-- Performing Test HAVE_SSE2 - Success
-- Performing Test HAVE_SSE3
-- Performing Test HAVE_SSE3 - Success
-- Looking for immintrin.h
-- Looking for immintrin.h - found
-- Performing Test HAVE_ALTIVEC_H_HDR
-- Performing Test HAVE_ALTIVEC_H_HDR - Failed
-- Performing Test HAVE_ALTIVEC
-- Performing Test HAVE_ALTIVEC - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for wchar.h
-- Looking for wchar.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for iconv.h
-- Looking for iconv.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for libunwind.h
-- Looking for libunwind.h - found
-- Looking for 7 include files stddef.h, ..., float.h
-- Looking for 7 include files stddef.h, ..., float.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Looking for M_PI
-- Looking for M_PI - found
-- Performing Test HAVE_MPROTECT
-- Performing Test HAVE_MPROTECT - Success
-- Looking for strtod
-- Looking for strtod - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for calloc
-- Looking for calloc - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for free
-- Looking for free - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for qsort
-- Looking for qsort - found
-- Looking for abs
-- Looking for abs - found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for memset
-- Looking for memset - found
-- Looking for memcpy
-- Looking for memcpy - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for memcmp
-- Looking for memcmp - found
-- Looking for strlen
-- Looking for strlen - found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for _strrev
-- Looking for _strrev - not found
-- Looking for _strupr
-- Looking for _strupr - not found
-- Looking for _strlwr
-- Looking for _strlwr - not found
-- Looking for index
-- Looking for index - found
-- Looking for rindex
-- Looking for rindex - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for itoa
-- Looking for itoa - not found
-- Looking for _ltoa
-- Looking for _ltoa - not found
-- Looking for _uitoa
-- Looking for _uitoa - not found
-- Looking for _ultoa
-- Looking for _ultoa - not found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoul
-- Looking for strtoul - found
-- Looking for _i64toa
-- Looking for _i64toa - not found
-- Looking for _ui64toa
-- Looking for _ui64toa - not found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for atoi
-- Looking for atoi - found
-- Looking for atof
-- Looking for atof - found
-- Looking for strcmp
-- Looking for strcmp - found
-- Looking for strncmp
-- Looking for strncmp - found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for _strnicmp
-- Looking for _strnicmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for wcscmp
-- Looking for wcscmp - found
-- Looking for _wcsdup
-- Looking for _wcsdup - not found
-- Looking for wcsdup
-- Looking for wcsdup - found
-- Looking for wcslcat
-- Looking for wcslcat - not found
-- Looking for wcslcpy
-- Looking for wcslcpy - not found
-- Looking for wcslen
-- Looking for wcslen - found
-- Looking for wcsncmp
-- Looking for wcsncmp - found
-- Looking for wcsstr
-- Looking for wcsstr - found
-- Looking for wcscasecmp
-- Looking for wcscasecmp - found
-- Looking for _wcsicmp
-- Looking for _wcsicmp - not found
-- Looking for wcsncasecmp
-- Looking for wcsncasecmp - found
-- Looking for _wcsnicmp
-- Looking for _wcsnicmp - not found
-- Looking for sscanf
-- Looking for sscanf - found
-- Looking for vsscanf
-- Looking for vsscanf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for fopen64
-- Looking for fopen64 - not found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for fseeko64
-- Looking for fseeko64 - not found
-- Looking for _Exit
-- Looking for _Exit - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for setjmp
-- Looking for setjmp - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for sysctlbyname
-- Looking for sysctlbyname - not found
-- Looking for getauxval
-- Looking for getauxval - found
-- Looking for elf_aux_info
-- Looking for elf_aux_info - not found
-- Looking for poll
-- Looking for poll - found
-- Looking for pow in m
-- Looking for pow in m - found
-- Looking for atan
-- Looking for atan - found
-- Looking for atan2
-- Looking for atan2 - found
-- Looking for atanf
-- Looking for atanf - found
-- Looking for atan2f
-- Looking for atan2f - found
-- Looking for ceil
-- Looking for ceil - found
-- Looking for ceilf
-- Looking for ceilf - found
-- Looking for copysign
-- Looking for copysign - found
-- Looking for copysignf
-- Looking for copysignf - found
-- Looking for cos
-- Looking for cos - found
-- Looking for cosf
-- Looking for cosf - found
-- Looking for exp
-- Looking for exp - found
-- Looking for expf
-- Looking for expf - found
-- Looking for fabs
-- Looking for fabs - found
-- Looking for fabsf
-- Looking for fabsf - found
-- Looking for floor
-- Looking for floor - found
-- Looking for floorf
-- Looking for floorf - found
-- Looking for fmod
-- Looking for fmod - found
-- Looking for fmodf
-- Looking for fmodf - found
-- Looking for log
-- Looking for log - found
-- Looking for logf
-- Looking for logf - found
-- Looking for log10
-- Looking for log10 - found
-- Looking for log10f
-- Looking for log10f - found
-- Looking for lround
-- Looking for lround - found
-- Looking for lroundf
-- Looking for lroundf - found
-- Looking for pow
-- Looking for pow - found
-- Looking for powf
-- Looking for powf - found
-- Looking for round
-- Looking for round - found
-- Looking for roundf
-- Looking for roundf - found
-- Looking for scalbn
-- Looking for scalbn - found
-- Looking for scalbnf
-- Looking for scalbnf - found
-- Looking for sin
-- Looking for sin - found
-- Looking for sinf
-- Looking for sinf - found
-- Looking for sqrt
-- Looking for sqrt - found
-- Looking for sqrtf
-- Looking for sqrtf - found
-- Looking for tan
-- Looking for tan - found
-- Looking for tanf
-- Looking for tanf - found
-- Looking for acos
-- Looking for acos - found
-- Looking for acosf
-- Looking for acosf - found
-- Looking for asin
-- Looking for asin - found
-- Looking for asinf
-- Looking for asinf - found
-- Looking for trunc
-- Looking for trunc - found
-- Looking for truncf
-- Looking for truncf - found
-- Looking for iconv_open in iconv
-- Looking for iconv_open in iconv - not found
-- Looking for iconv_open in c
-- Looking for iconv_open in c - found
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Looking for alloca
-- Looking for alloca - found
-- Looking for alloca
-- Looking for alloca - found
-- Looking for alloca
-- Looking for alloca - not found
-- Performing Test HAVE_SA_SIGACTION
-- Performing Test HAVE_SA_SIGACTION - Success
-- Looking for dlopen
-- Looking for dlopen - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Performing Test HAVE_O_CLOEXEC
-- Performing Test HAVE_O_CLOEXEC - Success
-- Performing Test OSS_FOUND
-- Performing Test OSS_FOUND - Success
-- Looking for alsa/asoundlib.h
-- Looking for alsa/asoundlib.h - found
-- Looking for snd_pcm_recover in asound
-- Looking for snd_pcm_recover in asound - found
-- dynamic libasound -> libasound.so.2
-- Checking for module 'jack'
--   Found jack, version 0.125.0rc1
-- dynamic libjack -> libjack.so.0
-- Checking for module 'libpipewire-0.3>=0.3.20'
--   No package 'libpipewire-0.3' found
-- Checking for module 'libpulse-simple'
--   No package 'libpulse-simple' found
-- Checking for module 'esound'
--   No package 'esound' found
-- Looking for audio/audiolib.h
-- Looking for audio/audiolib.h - found
-- dynamic libaudio -> libaudio.so.2
-- Looking for sndio.h
-- Looking for sndio.h - found
-- dynamic libsndio -> libsndio.so.7
-- Looking for samplerate.h
-- Looking for samplerate.h - found
-- dynamic libsamplerate -> libsamplerate.so.0
-- Checking for modules 'bcm_host;brcmegl'
--   No package 'bcm_host' found
--   No package 'brcmegl' found
-- Performing Test HAVE_RPI
-- Performing Test HAVE_RPI - Failed
-- dynamic libX11 -> libX11.so.6
-- dynamic libXext -> libXext.so.6
-- dynamic libXcursor -> libXcursor.so.1
-- dynamic libXinerama -> libXinerama.so.1
-- dynamic libXi -> libXi.so.6
-- dynamic libXfixes -> libXfixes.so.3
-- dynamic libXrandr -> libXrandr.so.2
-- dynamic libXrender -> libXrender.so.1
-- dynamic libXss -> libXss.so.1
-- dynamic libXxf86vm -> libXxf86vm.so.1
-- Looking for X11/Xcursor/Xcursor.h
-- Looking for X11/Xcursor/Xcursor.h - found
-- Looking for X11/extensions/Xinerama.h
-- Looking for X11/extensions/Xinerama.h - found
-- Looking for X11/extensions/XInput2.h
-- Looking for X11/extensions/XInput2.h - found
-- Looking for X11/extensions/Xrandr.h
-- Looking for X11/extensions/Xrandr.h - found
-- Looking for X11/extensions/Xfixes.h
-- Looking for X11/extensions/Xfixes.h - found
-- Looking for X11/extensions/Xrender.h
-- Looking for X11/extensions/Xrender.h - found
-- Looking for X11/extensions/scrnsaver.h
-- Looking for X11/extensions/scrnsaver.h - found
-- Looking for X11/extensions/shape.h
-- Looking for X11/extensions/shape.h - found
-- Looking for include files X11/Xlib.h, X11/extensions/Xdbe.h
-- Looking for include files X11/Xlib.h, X11/extensions/Xdbe.h - found
-- Looking for include files X11/Xlib.h, X11/extensions/xf86vmode.h
-- Looking for include files X11/Xlib.h, X11/extensions/xf86vmode.h - found
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xext.h
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xext.h - found
-- Looking for shmat
-- Looking for shmat - found
-- Performing Test HAVE_XGENERICEVENT
-- Performing Test HAVE_XGENERICEVENT - Success
-- Looking for XkbKeycodeToKeysym
-- Looking for XkbKeycodeToKeysym - found
-- Performing Test HAVE_XINPUT2_MULTITOUCH
-- Performing Test HAVE_XINPUT2_MULTITOUCH - Success
-- Performing Test HAVE_XFIXES_H
-- Performing Test HAVE_XFIXES_H - Success
-- Checking for module 'egl'
--   Found egl, version 1.5
-- Performing Test HAVE_OPENGL_EGL
-- Performing Test HAVE_OPENGL_EGL - Success
-- Checking for modules 'libdrm;gbm;egl'
--   Found libdrm, version 2.4.101
--   Found gbm, version 20.0.8
--   Found egl, version 1.5
-- dynamic libdrm -> libdrm.so.2
-- dynamic libgbm -> libgbm.so.1
-- Performing Test HAVE_OPENGL_GLX
-- Performing Test HAVE_OPENGL_GLX - Success
-- Performing Test HAVE_OPENGL
-- Performing Test HAVE_OPENGL - Success
-- Performing Test HAVE_OPENGLES_V1
-- Performing Test HAVE_OPENGLES_V1 - Failed
-- Performing Test HAVE_OPENGLES_V2
-- Performing Test HAVE_OPENGLES_V2 - Success
-- Checking for modules 'wayland-client>=1.18;wayland-egl;wayland-cursor;egl;xkbcommon>=0.5.0'
--   Found wayland-client, version 1.18.0
--   Found wayland-egl, version 18.1.0
--   Found wayland-cursor, version 1.18.0
--   Found egl, version 1.5
--   Found xkbcommon, version 0.10.0
-- Configuring incomplete, errors occurred!
See also "/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/x64-linux-dbg/CMakeFiles/CMakeOutput.log".
See also "/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/x64-linux-dbg/CMakeFiles/CMakeError.log".
/initrd/mnt/dev_save/data/src/sonic-pi-4.0.3/app/vcpkg/buildtrees/sdl2/config-x64-linux-dbg-err.log
CMake Error at cmake/sdlchecks.cmake:638 (find_program):
  Could not find WAYLAND_SCANNER using the following names: wayland-scanner
Call Stack (most recent call first):
  CMakeLists.txt:1287 (CheckWayland)

Additional context

RedactedCode avatar Jul 20 '22 11:07 RedactedCode

sudo apt install libx11-dev libxft-dev libxext-dev

ALittleDruid avatar Jul 20 '22 12:07 ALittleDruid

I'm not able to repro this issue. Please install Xorg dependencies and try again.

CMake Warning at ports/sdl2/portfile.cmake:26 (message):
  You will need to install Xorg dependencies to use feature x11:

  sudo apt install libx11-dev libxft-dev libxext-dev

Adela0814 avatar Jul 21 '22 05:07 Adela0814

CMake Error at cmake/sdlchecks.cmake:638 (find_program):
  Could not find WAYLAND_SCANNER using the following names: wayland-scanner

I don't think this error is related to libx11-dev libxft-dev libxext-dev. It looks like the port needs feature control for --enable_video_wayland=yes/no, and additonal system packages for wayland if not provided through ports.

dg0yt avatar Jul 21 '22 06:07 dg0yt

I think @dg0yt is correct. It is clear from the logs posted that the problem is wayland-scanner related. Installing the suggested x11 etc deps anyway made no difference & the build failed at the same point with the same error even after installing them, but it didn't anyway recognise that they were installed - the same "you will need to install Xorg dependencies" warning was displayed

NB I have also installed the only "wayland-scanner" package available from my distribution's repo, and this made no difference either : failed at same point, same errors.

RedactedCode avatar Jul 21 '22 08:07 RedactedCode

when tring to build sdl2 I have a link error (in the wayland implementation) with libdecor:

[1/1] Linking CXX executable VkGuide
FAILED: VkGuide 
: && /usr/bin/c++   CMakeFiles/VkGuide.dir/src/main.cpp.o CMakeFiles/VkGuide.dir/src/vk_engine.cpp.o -o VkGuide  -Wl,-rpath,/home/shatn/.apps/vulkan-sdk/current/x86_64/lib  /home/shatn/.apps/vulkan-sdk/current/x86_64/lib/libvulkan.so  vcpkg_installed/x64-linux/debug/lib/libimguid.a  vcpkg_installed/x64-linux/debug/lib/libSDL2d.a  vcpkg_installed/x64-linux/debug/lib/libtinyobjloader.a  vendor/vk-bootstrap/libvk-bootstrap.a  -lwayland-egl  -lwayland-client  -lwayland-cursor  -lEGL  -lxkbcommon  -lm  -ldbus-1  -lrt  -Wl,--no-undefined  -pthread  -ldl && :
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandvideo.c.o): in function `Wayland_VideoInit':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandvideo.c:926: undefined reference to `libdecor_new'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandvideo.c.o): in function `Wayland_VideoQuit':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandvideo.c:1050: undefined reference to `libdecor_unref'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `SetMinMaxDimensions':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:354: undefined reference to `libdecor_frame_set_min_content_size'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:357: undefined reference to `libdecor_frame_set_max_content_size'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `SetFullscreen':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:406: undefined reference to `libdecor_frame_set_capabilities'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:409: undefined reference to `libdecor_frame_set_fullscreen'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:411: undefined reference to `libdecor_frame_unset_fullscreen'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:414: undefined reference to `libdecor_frame_unset_capabilities'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `decoration_frame_configure':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:713: undefined reference to `libdecor_configuration_get_window_state'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:762: undefined reference to `libdecor_configuration_get_content_size'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:783: undefined reference to `libdecor_configuration_get_content_size'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:808: undefined reference to `libdecor_state_new'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:809: undefined reference to `libdecor_frame_commit'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:810: undefined reference to `libdecor_state_free'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_GetWindowWMInfo':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1053: undefined reference to `libdecor_frame_get_xdg_surface'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1055: undefined reference to `libdecor_frame_get_xdg_toplevel'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_SetWindowModalFor':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1121: undefined reference to `libdecor_frame_set_parent'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_ShowWindow':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1167: undefined reference to `libdecor_decorate'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1174: undefined reference to `libdecor_frame_set_app_id'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1175: undefined reference to `libdecor_frame_map'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_HideWindow':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1351: undefined reference to `libdecor_frame_unref'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_RestoreWindow':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1590: undefined reference to `libdecor_frame_unset_maximized'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_SetWindowBordered':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1617: undefined reference to `libdecor_frame_set_visibility'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_SetWindowResizable':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1639: undefined reference to `libdecor_frame_set_capabilities'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1641: undefined reference to `libdecor_frame_unset_capabilities'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_MaximizeWindow':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1674: undefined reference to `libdecor_frame_set_maximized'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_MinimizeWindow':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1702: undefined reference to `libdecor_frame_set_minimized'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_SetWindowSize':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1958: undefined reference to `libdecor_frame_is_floating'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1976: undefined reference to `libdecor_state_new'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1977: undefined reference to `libdecor_frame_commit'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:1978: undefined reference to `libdecor_state_free'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o): in function `Wayland_SetWindowTitle':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandwindow.c:2018: undefined reference to `libdecor_frame_set_title'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o): in function `SDL_WAYLAND_LoadSymbols':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:155: undefined reference to `libdecor_unref'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:156: undefined reference to `libdecor_new'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:157: undefined reference to `libdecor_decorate'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:161: undefined reference to `libdecor_frame_unref'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:162: undefined reference to `libdecor_frame_set_title'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:163: undefined reference to `libdecor_frame_set_app_id'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:164: undefined reference to `libdecor_frame_set_max_content_size'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:167: undefined reference to `libdecor_frame_set_min_content_size'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:170: undefined reference to `libdecor_frame_resize'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:174: undefined reference to `libdecor_frame_move'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:177: undefined reference to `libdecor_frame_commit'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:180: undefined reference to `libdecor_frame_set_minimized'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:181: undefined reference to `libdecor_frame_set_maximized'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:182: undefined reference to `libdecor_frame_unset_maximized'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:183: undefined reference to `libdecor_frame_set_fullscreen'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:184: undefined reference to `libdecor_frame_unset_fullscreen'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:185: undefined reference to `libdecor_frame_set_capabilities'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:187: undefined reference to `libdecor_frame_unset_capabilities'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:189: undefined reference to `libdecor_frame_has_capability'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:191: undefined reference to `libdecor_frame_set_visibility'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:192: undefined reference to `libdecor_frame_is_visible'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:193: undefined reference to `libdecor_frame_is_floating'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:194: undefined reference to `libdecor_frame_set_parent'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:196: undefined reference to `libdecor_frame_get_xdg_surface'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:197: undefined reference to `libdecor_frame_get_xdg_toplevel'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:198: undefined reference to `libdecor_frame_map'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:199: undefined reference to `libdecor_state_new'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:200: undefined reference to `libdecor_state_free'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:201: undefined reference to `libdecor_configuration_get_content_size'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandsym.h:205: undefined reference to `libdecor_configuration_get_window_state'
/usr/bin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandevents.c.o): in function `ProcessHitTest':
/home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandevents.c:487: undefined reference to `libdecor_frame_move'
/usr/bin/ld: /home/shatn/.apps/vcpkg/buildtrees/sdl2/src/e268dc78a1-8128fd6574.clean/src/video/wayland/SDL_waylandevents.c:511: undefined reference to `libdecor_frame_resize'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

*more readable mold output:

[1/1] Linking CXX executable VkGuide
FAILED: VkGuide 
: && /usr/bin/c++   CMakeFiles/VkGuide.dir/src/main.cpp.o CMakeFiles/VkGuide.dir/src/vk_engine.cpp.o -o VkGuide  -Wl,-rpath,/home/shatn/.apps/vulkan-sdk/current/x86_64/lib  /home/shatn/.apps/vulkan-sdk/current/x86_64/lib/libvulkan.so  vcpkg_installed/x64-linux/debug/lib/libimguid.a  vcpkg_installed/x64-linux/debug/lib/libSDL2d.a  vcpkg_installed/x64-linux/debug/lib/libtinyobjloader.a  vendor/vk-bootstrap/libvk-bootstrap.a  -lwayland-egl  -lwayland-client  -lwayland-cursor  -lEGL  -lxkbcommon  -lm  -ldbus-1  -lrt  -Wl,--no-undefined  -pthread  -ldl && :
mold: error: undefined symbol: libdecor_frame_unset_fullscreen
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(SetFullscreen)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_unset_capabilities
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(SetFullscreen)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowResizable)
mold: error: undefined symbol: libdecor_frame_set_capabilities
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(SetFullscreen)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowResizable)
mold: error: undefined symbol: libdecor_frame_resize
>>> referenced by SDL_waylandevents.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandevents.c.o):(ProcessHitTest)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_new
>>> referenced by SDL_waylandvideo.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandvideo.c.o):(Wayland_VideoInit)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_state_free
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(decoration_frame_configure)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowSize)
mold: error: undefined symbol: libdecor_frame_set_fullscreen
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(SetFullscreen)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_set_max_content_size
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(SetMinMaxDimensions)
mold: error: undefined symbol: libdecor_configuration_get_content_size
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(decoration_frame_configure)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(decoration_frame_configure)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_set_visibility
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowBordered)
mold: error: undefined symbol: libdecor_frame_set_app_id
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_ShowWindow)
mold: error: undefined symbol: libdecor_frame_is_visible
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_set_parent
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowModalFor)
mold: error: undefined symbol: libdecor_frame_set_min_content_size
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(SetMinMaxDimensions)
mold: error: undefined symbol: libdecor_state_new
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(decoration_frame_configure)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowSize)
mold: error: undefined symbol: libdecor_frame_get_xdg_toplevel
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_GetWindowWMInfo)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_set_minimized
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_MinimizeWindow)
mold: error: undefined symbol: libdecor_frame_unref
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_HideWindow)
mold: error: undefined symbol: libdecor_decorate
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_ShowWindow)
mold: error: undefined symbol: libdecor_frame_set_maximized
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_MaximizeWindow)
mold: error: undefined symbol: libdecor_frame_move
>>> referenced by SDL_waylandevents.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandevents.c.o):(ProcessHitTest)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_set_title
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowTitle)
mold: error: undefined symbol: libdecor_frame_commit
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(decoration_frame_configure)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowSize)
mold: error: undefined symbol: libdecor_frame_map
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_ShowWindow)
mold: error: undefined symbol: libdecor_frame_unset_maximized
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_RestoreWindow)
mold: error: undefined symbol: libdecor_unref
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandvideo.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandvideo.c.o):(Wayland_VideoQuit)
mold: error: undefined symbol: libdecor_frame_get_xdg_surface
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_GetWindowWMInfo)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_frame_is_floating
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(Wayland_SetWindowSize)
mold: error: undefined symbol: libdecor_frame_has_capability
>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
mold: error: undefined symbol: libdecor_configuration_get_window_state
>>> referenced by SDL_waylandwindow.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandwindow.c.o):(decoration_frame_configure)>>> referenced by SDL_waylanddyn.c
>>>               vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylanddyn.c.o):(SDL_WAYLAND_LoadSymbols)
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

even though it is installed on my machine

shatn@pop-os:~$ aptitude search libdecor
i A libdecor-0-0                                                                                       - client-side window decoration library
p   libdecor-0-0:i386                                                                                  - client-side window decoration library
i   libdecor-0-dev                                                                                     - client-side window decoration library - development files
p   libdecor-0-dev:i386                                                                                - client-side window decoration library - development files

Canvas02 avatar Aug 25 '22 15:08 Canvas02

Does your problem still exist? @RedactedCode

Adela0814 avatar Sep 16 '22 06:09 Adela0814

@Adela0814 I haven't tried again as I haven't seen further replies suggesting what might be wrong in my setup that I can change. if there's been a relevant update to the code I can try again but it will be a few days until I can get round to it

RedactedCode avatar Sep 16 '22 10:09 RedactedCode

I'm having the same libdecor linking issue as @Canvas02. Here is how I use SDL2: vcpkg.json

{
  "name": "sdl-framework",
  "version-string": "1.0.0",
  "license": "GPL-2.0-only",
  "dependencies": [
    "sdl2",
    "sdl2-image",
    "sdl2-ttf"
  ]
}

CMakeLists.txt:

set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "vcpkg toolchain path")

find_package(SDL2 CONFIG REQUIRED)
find_package(SDL2_ttf CONFIG REQUIRED)
find_package(sdl2-image CONFIG REQUIRED)

find_package(OpenGL REQUIRED)

target_link_libraries("${PROJECT_NAME}" PRIVATE SDL2::SDL2 SDL2::SDL2main SDL2::SDL2_image SDL2_ttf::SDL2_ttf-static
  ${OPENGL_LIBRARIES}
  ${CMAKE_DL_LIBS}
)

First line of linker errors:

/sbin/ld: vcpkg_installed/x64-linux/debug/lib/libSDL2d.a(SDL_waylandvideo.c.o): in function `Wayland_LoadLibdecor':
/home/sunny/SDL-Framework/vcpkg/buildtrees/sdl2/src/bfc793b2ac-a3edea5847.clean/src/video/wayland/SDL_waylandvideo.c:948: undefined reference to `libdecor_new'

TheSunCat avatar Oct 08 '22 20:10 TheSunCat

@Adela0814 I haven't tried again as I haven't seen further replies suggesting what might be wrong in my setup that I can change. if there's been a relevant update to the code I can try again but it will be a few days until I can get round to it

Try installing sdl2[wayland] - that worked for me.

abhishekmishra avatar Oct 09 '22 04:10 abhishekmishra