-DLEGACY still tries to build wayland
Doing my best to build on Debian Trixie with xfce4 X11, but no matter what I do it insists on trying to include Wayland. Specifying LEGACY (ON or 1), seems to have no effect. I've removed the profile/build directory, checked i have libglfw3 not libglfw3-wayland. Even gone through and purged every mention of Wayland in the entire repository, no change. Don't know what else to try, honestly don't even know how it still knows "wayland" is a thing at this point.
user@host:~/tracy-0.12.2 $ cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release -DLEGACY=1
Parsing public/common/TracyVersion.hpp file
VERSION 0.12.2
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.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
-- Performing Test COMPILER_SUPPORTS_MARCH_NATIVE
-- Performing Test COMPILER_SUPPORTS_MARCH_NATIVE - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'capstone'
-- Package 'capstone', required by 'virtual:world', not found
-- CPM: Adding package [email protected] (6.0.0-Alpha1 to /home/marc/LinuxSystemFiles/Tracy/tracy-0.12.2/profiler/build/.cpm-cache/capstone/c68db851083fcffa27a786090cedcce4c4f28330)
-- Performing Test SUPPORTS_MU
-- Performing Test SUPPORTS_MU - Success
-- Performing Test SUPPORTS_SHADOWING
-- Performing Test SUPPORTS_SHADOWING - Success
-- Performing Test SUPPORTS_SUNINIT
-- Performing Test SUPPORTS_SUNINIT - Failed
Enabling CAPSTONE_ARM_SUPPORT
Enabling CAPSTONE_AARCH64_SUPPORT
Enabling CAPSTONE_X86_SUPPORT
-- Checking for module 'glfw3'
-- Package 'glfw3', required by 'virtual:world', not found
-- CPM: Adding package [email protected] (3.4 to /home/marc/LinuxSystemFiles/Tracy/tracy-0.12.2/profiler/build/.cpm-cache/glfw/9fc60ad2c810b92f74235a589a9a0edee75bc2d3)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Including Wayland support
-- Including X11 support
-- Looking for memfd_create
-- Looking for memfd_create - found
CMake Error at build/.cpm-cache/glfw/9fc60ad2c810b92f74235a589a9a0edee75bc2d3/src/CMakeLists.txt:76 (message):
Failed to find wayland-scanner
-- Configuring incomplete, errors occurred!
-- Including Wayland support but why tho....
references seemed to be coming from profiler/build/.cpm-cache/glfw/<hash>/CMakeLists.txt, which I ended up having to modify to manually specify
set(GLFW_BUILD_WAYLAND OFF)
set(GLFW_BUILD_X11 ON)
although CMake subsequently complained about this being a dirty change (well excuse me!). I subsequently had to install:
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
- libdbus-1-dev
before compilation would complete. Most of these (all except libdbus perhaps) didn't seem to be mentioned as dependencies in the readme.
Because none of these are Tracy's dependencies.
... that may depend on whether you consider "needed for tracy to build" a dependency....
FWIW I hit a similar problem. Long and short of it is apt install libglfw3-dev.