- Edited
I have built Flucoma for Bela with clients for SuperCollider, Pure Data and C++ https://github.com/jarmitage/flucoma-bela
Original post (for posterity)
See also: https://discourse.flucoma.org/t/guidance-building-for-bela-platform/876
I am trying to build the SuperCollider version of Flucoma (https://www.flucoma.org/) on Bela.
Flucoma depends on CMake ≥3.11 whereas Bela has CMake 3.7ish
I downloaded a recent CMake and am trying to install it. I am using distcc
so my install command looks like CC="distcc-clang" CXX="distcc-clang++" ./bootstrap && make && sudo make install
.
The initial compile pass seems to work fine, then at the linking stage I get this error:
loading initial cache file /root/cmake-3.22.1/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Error at Modules/Compiler/._ADSP-DetermineCompiler.cmake:1:
Parse error. Expected a command name, got bad character with text "".
Call Stack (most recent call first):
Modules/CMakeCompilerIdDetection.cmake:6 (include)
Modules/CMakeCompilerIdDetection.cmake:33 (_readFile)
Modules/CMakeDetermineCompilerId.cmake:283 (compiler_id_detection)
Modules/CMakeDetermineCompilerId.cmake:302 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:7 (project)
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/root/cmake-3.22.1/CMakeFiles/CMakeOutput.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
root@bela:~/cmake-3.22.1# cat CMakeFiles/CMakeOutput.log
The system is: Linux - 4.14.108-ti-xenomai-r143 - armv7l
Unsure of what to do, I prepended these lines to CMakeFiles.txt
to see what would happen:
set(CMAKE_C_COMPILER "/usr/local/bin/distcc-clang")
set(CMAKE_CXX_COMPILER "/usr/local/bin/distcc-clang++")
Tried again, got these errors:
loading initial cache file /root/cmake-3.22.1/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Error at Modules/Compiler/._ADSP-DetermineCompiler.cmake:1:
Parse error. Expected a command name, got bad character with text "".
Call Stack (most recent call first):
Modules/CMakeCompilerIdDetection.cmake:6 (include)
Modules/CMakeCompilerIdDetection.cmake:33 (_readFile)
Modules/CMakeDetermineCompilerId.cmake:283 (compiler_id_detection)
Modules/CMakeDetermineCompilerId.cmake:302 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:9 (project)
-- Configuring incomplete, errors occurred!
See also "/root/cmake-3.22.1/CMakeFiles/CMakeOutput.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
The only thing I can think to do next is to not use distcc
, which would require me to have slightly more time on my hands. Any ideas?