Installing wxWidgets 3.2.x on Ubuntu 24.04 (Noble Numbat)

Best choice for most C++ GUI projects

sudo apt update
sudo apt install libwxgtk3.2-dev

Very useful optional packages:

# WebView (HTML/browser control)
sudo apt install libwxgtk-webview3.2-dev

# Media support (wxMediaCtrl)
sudo apt install libwxgtk-media3.2-dev

# Internationalization & common files
sudo apt install wx3.2-i18n wx-common

wx-config --version
# Expected: 3.2.4 (or very close)

wx-config --cxxflags
wx-config --libs
wx-config not found?
→ You probably installed only the runtime package.
Make sure you have libwxgtk3.2-dev installed.

1. Install build dependencies
sudo apt update
sudo apt install build-essential libgtk-3-dev \
    libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
    libwebkit2gtk-4.0-dev libcurl4-openssl-dev libsecret-1-dev \
    libnotify-dev freeglut3-dev libopencv-dev
2. Download & build (example: 3.2.5)
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.5/wxWidgets-3.2.5.tar.bz2
tar xjf wxWidgets-3.2.5.tar.bz2
cd wxWidgets-3.2.5

mkdir build-gtk && cd build-gtk

../configure --with-gtk=3 --enable-unicode --with-opengl --enable-webview
make -j$(nproc)
sudo make install
sudo ldconfig
3. Check
wx-config --version

  • Code::Blocks, wxSmith, CMake, most tutorials → use apt (3.2.4)
  • Need wxWebView, media, i18n → install extra -dev packages
  • Want 3.2.5+ / 3.3.x / static libs / GTK2 / special features → build from source
Quality, Reliability & Service
Thank You For Visiting
Brooks Computing Systems - Jacksonville
Visit https://bcs.archman.us