v7b1/mi-UGens

Braids build on linux does not work anymore

Closed this issue · 7 comments

I get this error:

Building libsamplerate
mkdir: cannot create directory ‘build’: File exists
CMake Error: The source directory "/home/andrea/Code/livecoding/mi-UGens/MiBraids/libsamplerate" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.
Building MiBraids
mkdir: cannot create directory ‘build’: File exists
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andrea/Code/livecoding/mi-UGens/MiBraids/build
make[1]: Entering directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make[2]: Entering directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make[2]: Leaving directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make[2]: Entering directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
[ 10%] Building CXX object CMakeFiles/MiBraids.dir/MiBraids.cpp.o
/home/andrea/Code/livecoding/mi-UGens/MiBraids/MiBraids.cpp:51:10: fatal error: samplerate.h: No such file or directory
   51 | #include "samplerate.h"
      |          ^~~~~~~~~~~~~~
v7b1 commented

Build locations changed a little in the latest libsamplerate version. I updated MiBraids' CMakeLists.txt to reflect these changes. Also I can't seem to build the examples from libsamplerate on mac (using SDK 10.14) anymore. Don't know if this is also an issue on linux, but I simply set the options for building examples and test-suite to 'off' in the linux- and mac-build.sh scripts. Please test and report back.
Would be good if you try that on a cleaned up folder structure.

I can confirm, build of MiBraids now succeeds, where it failed before. Thanks.
( Linux Ubuntu 20.04 )

I deleted everything, and did a clean clone, but Braids still fails:

Building libsamplerate
CMake Error: The source directory "/home/andrea/Code/livecoding/mi-UGens/MiBraids/libsamplerate" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.
Building MiBraids
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andrea/Code/livecoding/mi-UGens/MiBraids/build
make[1]: Entering directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make[2]: Entering directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
Scanning dependencies of target MiBraids
make[2]: Leaving directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make[2]: Entering directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
[ 10%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/stmlib/utils/random.cc.o
[ 20%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/stmlib/dsp/atan.cc.o
[ 30%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/stmlib/dsp/units.cc.o
[ 40%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/braids/analog_oscillator.cc.o
[ 50%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/braids/digital_oscillator.cc.o
[ 60%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/braids/macro_oscillator.cc.o
[ 70%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/braids/quantizer.cc.o
[ 80%] Building CXX object CMakeFiles/MiBraids.dir/home/andrea/Code/livecoding/mi-UGens/eurorack/braids/resources.cc.o
[ 90%] Building CXX object CMakeFiles/MiBraids.dir/MiBraids.cpp.o
/home/andrea/Code/livecoding/mi-UGens/MiBraids/MiBraids.cpp:51:10: fatal error: samplerate.h: No such file or directory
   51 | #include "samplerate.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/MiBraids.dir/build.make:167: CMakeFiles/MiBraids.dir/MiBraids.cpp.o] Error 1
make[2]: Leaving directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/MiBraids.dir/all] Error 2
make[1]: Leaving directory '/home/andrea/Code/livecoding/mi-UGens/MiBraids/build'
make: *** [Makefile:84: all] Error 2
v7b1 commented

Hm, don't know what's going on here, but can you check that libsamplerate actually contains the source code? i.e. did you do --recurse-submodules when cloning mi-UGens?

v7b1 commented

@sc3sc3 - thanks for the confirmation!

@v7b1 thank you for your work !

@v7b1 yeah sorry I forgot it, now it works like a charm! thanks