disable JUCE_USE_CURL to fix Linux link (undefined curl_* symbols)

This commit is contained in:
Armin 2026-10-01 00:48:33 +02:00
commit bc6cea9662
2 changed files with 14 additions and 9 deletions

View file

@ -68,11 +68,15 @@ endif()
add_subdirectory(${JUCE_ROOT} juce) add_subdirectory(${JUCE_ROOT} juce)
# RMX-19 has no web view. juce_audio_processors depends on juce_gui_extra, whose # RMX-19 has no web UI and does no networking.
# Linux source includes <gtk/gtk.h> and the WebKit headers unless the browser # - JUCE_WEB_BROWSER=0: juce_audio_processors depends on juce_gui_extra, whose
# component is switched off. Disabling it keeps the Linux build free of GTK and # Linux source includes <gtk/gtk.h> and the WebKit headers unless the browser
# WebKit (and of native file-chooser dialogs, which this plug-in never uses). # component is switched off. This keeps the Linux build free of GTK/WebKit
add_compile_definitions(JUCE_WEB_BROWSER=0) # (and of native file-chooser dialogs, which this plug-in never uses).
# - JUCE_USE_CURL=0: juce_core otherwise compiles libcurl-backed code, which
# fails to link on Linux (curl_* undefined) unless libcurl is linked in.
# JUCE falls back to its own socket-based implementation.
add_compile_definitions(JUCE_WEB_BROWSER=0 JUCE_USE_CURL=0)
# AU is only buildable on Apple; on Linux (and everywhere else) ship VST3. # AU is only buildable on Apple; on Linux (and everywhere else) ship VST3.
if(APPLE) if(APPLE)

View file

@ -217,10 +217,11 @@ Linux:
- CMake ≥ 3.22, a C++17 compiler (GCC or Clang), `git`, `pkg-config` - CMake ≥ 3.22, a C++17 compiler (GCC or Clang), `git`, `pkg-config`
- Development packages used by JUCE (Debian/Ubuntu): - Development packages used by JUCE (Debian/Ubuntu):
`libasound2-dev libx11-dev libxext-dev libxinerama-dev libxrandr-dev` `libasound2-dev libx11-dev libxext-dev libxinerama-dev libxrandr-dev`
`libxcursor-dev libxcomposite-dev libfreetype6-dev libfontconfig1-dev `libxcursor-dev libxcomposite-dev libfreetype6-dev libfontconfig1-dev`
libcurl4-openssl-dev libgl1-mesa-dev` `libgl1-mesa-dev`
- No GTK/WebKit packages are needed: the plug-in does not use the web browser, - No GTK/WebKit or libcurl packages are needed: the plug-in does not use the web
native file-chooser dialogs, or `<gtk/gtk.h>`. browser, native file-chooser dialogs, `<gtk/gtk.h>`, or networking
(`JUCE_WEB_BROWSER=0`, `JUCE_USE_CURL=0`).
The build fetches **JUCE 8.0.4** automatically into `build/JUCE` on first The build fetches **JUCE 8.0.4** automatically into `build/JUCE` on first
configure - no manual JUCE setup is required. configure - no manual JUCE setup is required.