disable JUCE web browser (not needed anyway) to avoid GTK dependency on

Linux
This commit is contained in:
Armin 2026-08-14 12:49:28 +02:00
commit 5ca52e6f18
2 changed files with 23 additions and 0 deletions

View file

@ -44,6 +44,10 @@ target_sources(BEAMGRID PRIVATE
target_compile_definitions(BEAMGRID PUBLIC target_compile_definitions(BEAMGRID PUBLIC
JUCE_VST3_CAN_REPLACE_VST2=0 JUCE_VST3_CAN_REPLACE_VST2=0
JUCE_USE_CAMERA_PERMISSIONS=0 JUCE_USE_CAMERA_PERMISSIONS=0
# This plugin does not use a WebBrowserComponent. Disabling it avoids the
# GTK3 / WebKit2GTK development dependencies that juce_gui_extra pulls in
# on Linux (the <gtk/gtk.h> include fails to build otherwise).
JUCE_WEB_BROWSER=0
) )
target_link_libraries(BEAMGRID PRIVATE target_link_libraries(BEAMGRID PRIVATE

View file

@ -70,6 +70,25 @@ sudo pacman -S alsa-lib freetype2 libx11 libxcomposite libxcursor \
libxext libxinerama libxrandr libxext libxinerama libxrandr
``` ```
> **Note on `gtk/gtk.h` / `fatal error: gtk/gtk.h: No such file or directory`**
>
> BEAMGRID links `juce_gui_extra`, which on Linux unconditionally compiles a
> WebKit/GTK section (see `juce_gui_extra.cpp`). Even if the GTK *runtime* is
> installed, the build needs the **development** headers plus WebKit2GTK:
>
> ```sh
> # Debian / Ubuntu
> sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
> # Fedora
> sudo dnf install -y gtk3-devel webkit2gtk3-devel
> # Arch
> sudo pacman -S gtk3 webkit2gtk-4.1
> ```
>
> BEAMGRID does **not** use a web browser, so `JUCE_WEB_BROWSER` is disabled in
> `CMakeLists.txt`. With that, the GTK/WebKit dev packages above are **not**
> required to build — the error disappears even if you skip them.
Build BEAMGRID: Build BEAMGRID:
```sh ```sh