full build log
```
cmake -G Ninja -DGTK_FILESELECTOR=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DLEGACY=ON -B profiler/build -S profiler
LANG=c cmake --build profiler/build --config Release --parallel (nproc)
Parsing public/common/TracyVersion.hpp file
VERSION 0.10.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.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'
-- Found capstone, version 4.0.2
-- CPM: Adding package capstone@5.0.1 (5.0.1)
Enabling CAPSTONE_ARM_SUPPORT
Enabling CAPSTONE_ARM64_SUPPORT
Enabling CAPSTONE_M68K_SUPPORT
Enabling CAPSTONE_MIPS_SUPPORT
Enabling CAPSTONE_PPC_SUPPORT
Enabling CAPSTONE_SPARC_SUPPORT
Enabling CAPSTONE_SYSZ_SUPPORT
Enabling CAPSTONE_XCORE_SUPPORT
Enabling CAPSTONE_X86_SUPPORT
Enabling CAPSTONE_TMS320C64X_SUPPORT
Enabling CAPSTONE_M680X_SUPPORT
Enabling CAPSTONE_EVM_SUPPORT
Enabling CAPSTONE_MOS65XX_SUPPORT
Enabling CAPSTONE_WASM_SUPPORT
Enabling CAPSTONE_BPF_SUPPORT
Enabling CAPSTONE_RISCV_SUPPORT
Enabling CAPSTONE_SH_SUPPORT
Enabling CAPSTONE_TRICORE_SUPPORT
-- Checking for module 'glfw3'
-- Found glfw3, version 3.3.8
-- Checking for module 'freetype2'
-- Found freetype2, version 26.0.20
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.14.10
-- Checking for module 'tbb'
-- Found tbb, version 2021.9.0
-- Configuring done (9.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/scarf/opt/tracy/profiler/build
[0/2] Re-checking globbed directories...
[29/203] Building CXX object CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o
FAILED: CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o
ccache /usr/bin/c++ -DIMGUI_ENABLE_FREETYPE -I/home/scarf/opt/tracy/cmake/../nfd -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -march=native -g -std=gnu++20 -MD -MT CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o -MF CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o.d -o CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o -c /home/scarf/opt/tracy/nfd/nfd_gtk.cpp
/home/scarf/opt/tracy/nfd/nfd_gtk.cpp:11:10: fatal error: gtk/gtk.h: No such file or directory
11 | #include
| ^~~~~~~~~~~
compilation terminated.
[40/203] Building CXX object CMakeFiles/TracyImGui.dir/home/scarf/opt/tracy/imgui/imgui.cpp.o
ninja: build stopped: subcommand failed.
```
System Info
OS: Kubuntu 23.10
DE: Plasma 5.27.8
xdg-desktop-portal: 1.18.0-1ubuntu1
xdg-desktop-portal-kde: 5.27.8-0ubuntu1
built on 565656b0218bf1373617bf217f8c3373e5edab84
apt show libgtk-3-dev
Package: libgtk-3-dev
Architecture: amd64
Version: 3.24.38-5ubuntu1
To Reproduce
despite having
libgtk-3-dev
installed on Kubuntu (KDE Ubuntu), the build errors with missing<gtk/gtk.h>
headers when building with cmake.full build log
``` cmake -G Ninja -DGTK_FILESELECTOR=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DLEGACY=ON -B profiler/build -S profiler LANG=c cmake --build profiler/build --config Release --parallel (nproc) Parsing public/common/TracyVersion.hpp file VERSION 0.10.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.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' -- Found capstone, version 4.0.2 -- CPM: Adding package capstone@5.0.1 (5.0.1) Enabling CAPSTONE_ARM_SUPPORT Enabling CAPSTONE_ARM64_SUPPORT Enabling CAPSTONE_M68K_SUPPORT Enabling CAPSTONE_MIPS_SUPPORT Enabling CAPSTONE_PPC_SUPPORT Enabling CAPSTONE_SPARC_SUPPORT Enabling CAPSTONE_SYSZ_SUPPORT Enabling CAPSTONE_XCORE_SUPPORT Enabling CAPSTONE_X86_SUPPORT Enabling CAPSTONE_TMS320C64X_SUPPORT Enabling CAPSTONE_M680X_SUPPORT Enabling CAPSTONE_EVM_SUPPORT Enabling CAPSTONE_MOS65XX_SUPPORT Enabling CAPSTONE_WASM_SUPPORT Enabling CAPSTONE_BPF_SUPPORT Enabling CAPSTONE_RISCV_SUPPORT Enabling CAPSTONE_SH_SUPPORT Enabling CAPSTONE_TRICORE_SUPPORT -- Checking for module 'glfw3' -- Found glfw3, version 3.3.8 -- Checking for module 'freetype2' -- Found freetype2, version 26.0.20 -- Checking for module 'dbus-1' -- Found dbus-1, version 1.14.10 -- Checking for module 'tbb' -- Found tbb, version 2021.9.0 -- Configuring done (9.0s) -- Generating done (0.0s) -- Build files have been written to: /home/scarf/opt/tracy/profiler/build [0/2] Re-checking globbed directories... [29/203] Building CXX object CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o FAILED: CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o ccache /usr/bin/c++ -DIMGUI_ENABLE_FREETYPE -I/home/scarf/opt/tracy/cmake/../nfd -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -march=native -g -std=gnu++20 -MD -MT CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o -MF CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o.d -o CMakeFiles/TracyNfd.dir/home/scarf/opt/tracy/nfd/nfd_gtk.cpp.o -c /home/scarf/opt/tracy/nfd/nfd_gtk.cpp /home/scarf/opt/tracy/nfd/nfd_gtk.cpp:11:10: fatal error: gtk/gtk.h: No such file or directory 11 | #includeSystem Info