Hello,
I'm trying to integrate PD and C++.
I copied over the default file as per the instructions here https://forum.bela.io/d/567-simple-way-to-send-numbers-from-c-to-puredata/2
However, when I compile, I get the following error:
Building project ...
Building render.cpp...
...done
Using library Gui
Using library WSServer
Using library Midi
Using library Pipe
Using library Scope
Using library ne10
Using library Serial
Using library Trill
Using library libpd
Building library Scope
Makefile.libraries:61: recipe for target 'libraries/Scope/build/Scope.o' failed
Makefile.linkbela:26: recipe for target 'libraries/Scope/build/Scope.o' failed
Makefile:574: recipe for target '/root/Bela/projects/C-integration/C-integration' failed
Build finished
Stack dump:
0. Program arguments: /usr/lib/llvm-3.9/bin/clang -cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name Scope.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -menable-no-infs -menable-no-nans -menable-unsafe-fp-math -fno-signed-zeros -freciprocal-math -ffp-contract=fast -ffast-math -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu cortex-a8 -target-feature -fp-only-sp -target-feature -d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature +neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi hard -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-file /root/Bela/libraries/Scope/build/Scope.o -resource-dir /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1 -dependency-file libraries/Scope/build/Scope.d -MP -MT libraries/Scope/build/Scope.o -I /usr/xenomai/include/cobalt -I /usr/xenomai/include -D _GNU_SOURCE -D _REENTRANT -D __COBALT__ -D __COBALT_WRAP__ -D XENOMAI_SKIN_posix -D XENOMAI_MAJOR=3 -I /root/Bela -I /root/Bela/include -D NDEBUG -D BELA_USE_RTDM -I /root/Bela/resources/stretch/include -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/c++/6.3.0 -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/arm-linux-gnueabihf/c++/6.3.0 -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/arm-linux-gnueabihf/c++/6.3.0 -internal-isystem /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../include/c++/6.3.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include -internal-externc-isystem /usr/include/arm-linux-gnueabihf -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /root/Bela -ferror-limit 19 -fmessage-length 0 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o libraries/Scope/build/Scope.o -x c++ libraries/Scope/Scope.cpp
1. <unknown> parser at unknown location
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.9.1-9 (tags/RELEASE_391/rc2)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault
clang: note: diagnostic msg: Error generating preprocessed source(s).
make[2]: *** [libraries/Scope/build/Scope.o] Error 254
make[1]: *** [libraries/Scope/build/Scope.o] Error 2
make: *** [/root/Bela/projects/C-integration/C-integration] Error 2
I get the same error if I try to use the custom-render example.
Any ideas? Many thanks, Harry