#27010·wxWidgets

Build using CMake GUI with gtk2 backend fails

Author: alexr2507Created Sep 15, 2026Updated Sep 16, 2026
Labelslow priorityCMakebuild

Build System Used

I build wxWidgets and/or my application using:

  • CMake
  • configure
  • mingw32-make with makefile.gcc
  • MSBuild (Microsoft Visual Studio solution file)
  • nmake with makefile.vc
  • Xcode

Description

gtk2 doesn't work with the wayland protocol but wxHAVE_WAYLAND_SESSION_MANAGEMENT is defined unconditionally if the wayland development files exist. i think it should be undefined when building with the GTK2 backend. with the attached patch i was able to compile wxWidgets and then run an application which uses it (hugin in particular)

wxwidgets.patch

Platform and version information

  • wxWidgets version you are building: latest head from git
  • wxWidgets port you are building: wxGTK2
  • OS and its version: Debian unstable
  • Compiler being used: gcc 16.2.0
  • Non-default compiler options, if any : -std=c++26