kronihias / ambix

cross-platform Ambisonic VST, LV2 plug-ins with variable order for use in Digital Audio Workstations like Reaper or Ardour or as Jack standalone applications
GNU General Public License v2.0
237 stars 34 forks source link

Missing gtk/gtk.h files #33

Open muziker opened 2 years ago

muziker commented 2 years ago

Tried building this on a modern ubuntu 20.04 with all the recommended packages installed. The build fails while building a juce cpp file.

modules/juce_gui_extra/juce_gui_extra.cpp:119:12: fatal error: gtk/gtk.h : No such file or directory

Is there a flag or directory that needs to be provided to get this to compile?

muziker commented 2 years ago

Ok managed to solve this one. In the CmakeLists.txt add this:

find_package(PkgConfig Required) pkg_check_modules(GTK3 REQUIRED gtk+-3.0) pkg_check_modules(WEBKIT2 REQUIRED webkit2gtk-4.0) pkg_check_modules(LIBCURL REQUIRED libcurl)

And add this to the include_directories ${GTK3_INCLUDE_DIRS} ${WEBKIT2_INCLUDE_DIRS} and add this to SET ( JUCE_LIBRARIES ${GTK3_LIBRARIES} ${WEBKIT2_LIBRARIES} ${LIBCURL_LIBRARIES} )

The documentation says there's a way to compile JUCE to not include a web browser and the curl libraries, so webkit2 and libcurl doesn't need to be linked in, but so far the flags JUCE_WEB_BROWSER and JUCE_USE_CURL don't seem to work for me