Bass21 icon indicating copy to clipboard operation
Bass21 copied to clipboard

juceaide fail to build on Debian 10 x86_64

Open cobe571 opened this issue 4 years ago • 3 comments

I tried to build your Bass21 on my Debian 10 x86_64. There's the output from the shell ->

user@K-Xg3:~/Documenti/Bass21/Bass21/build$ cmake -DCMAKE_BUILD_TYPE=Release .. -- Checking for module 'libcurl' -- No package 'libcurl' found -- Checking for modules 'webkit2gtk-4.0;gtk+-x11-3.0' -- No package 'webkit2gtk-4.0' found -- No package 'gtk+-x11-3.0' found -- Checking for module 'alsa' -- Found alsa, version 1.1.8 -- Configuring juceaide -- Building juceaide CMake Error at thirdparty/JUCE/extras/Build/juceaide/CMakeLists.txt:86 (message): Failed to build juceaide

[ 12%] Building CXX object extras/Build/juceaide/CMakeFiles/juceaide.dir///__/modules/juce_gui_basics/juce_gui_basics.cpp.o

In file included from /home/user/Documenti/Bass21/Bass21/thirdparty/JUCE/modules/juce_gui_basics/juce_gui_basics.cpp:46:

/home/user/Documenti/Bass21/Bass21/thirdparty/JUCE/modules/juce_gui_basics/juce_gui_basics.h:312:13: fatal error: X11/extensions/Xrandr.h: File o directory non esistente

  #include <X11/extensions/Xrandr.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

make[2]: *** [extras/Build/juceaide/CMakeFiles/juceaide.dir/build.make:89: extras/Build/juceaide/CMakeFiles/juceaide.dir///__/modules/juce_gui_basics/juce_gui_basics.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:127: extras/Build/juceaide/CMakeFiles/juceaide.dir/all] Error 2

make: *** [Makefile:130: all] Error 2

-- Configuring incomplete, errors occurred! See also "/home/user/Documenti/Bass21/Bass21/build/CMakeFiles/CMakeOutput.log".

I added also the cmake output log ->

CMakeOutput.log

cobe571 avatar Jul 09 '21 19:07 cobe571

Hello, This missing file seems to be part of debian package libxrandr-dev. [1] Install this and try again please.

[1] https://packages.debian.org/search?searchon=contents&keywords=Xrandr.h&mode=path&suite=stable&arch=any

jpcima avatar Jul 09 '21 20:07 jpcima

I fixed webkit2gtk-4.0 and gtk+-x11-3.0. libxrandr-dev was already prior installed. I tried again to build but failed on this point ->

user@K-Xg3:~/Documenti/Bass21/Bass21/build$ cmake -DCMAKE_BUILD_TYPE=Release .. -- Checking for module 'libcurl' -- No package 'libcurl' found -- Checking for modules 'webkit2gtk-4.0;gtk+-x11-3.0' -- Found webkit2gtk-4.0, version 2.32.1 -- Found gtk+-x11-3.0, version 3.24.5 -- Configuring juceaide -- Building juceaide -- Exporting juceaide CMake Error at thirdparty/JUCE/extras/Build/CMake/JUCEUtils.cmake:1532 (message): Plugin targets require CMake 3.15 or higher Call Stack (most recent call first): thirdparty/JUCE/extras/Build/CMake/JUCEUtils.cmake:2083 (_juce_configure_plugin_targets) CMakeLists.txt:16 (juce_add_plugin)

-- Configuring incomplete, errors occurred! See also "/home/user/Documenti/Bass21/Bass21/build/CMakeFiles/CMakeOutput.log".

My CMake is 3.13.4-1. So the problem is there I can't build cause of my outdate version

cobe571 avatar Jul 09 '21 20:07 cobe571

Unfortunately this is dependent on JUCE's build architecture, it's not possible to bring down the version requirement easily.

3.13.4 is from Debian stable aka buster. https://packages.debian.org/buster/cmake

I notice a newer one in buster-backports that would fit the requirement. [1] [1] https://wiki.debian.org/Backports

jpcima avatar Jul 09 '21 20:07 jpcima