Hello,
I have also tried to follow the steps in the wiki to build projects in Eclipse on macOS (El Capitan) but I have a ton of errors. I added the paths /usr/local/linaro/arm-linux-gnueabihf/include/xenomai/include
and /usr/local/linaro/arm-linux-gnueabihf/include/xenomai/lib
to the Eclipse project, and every software (Bela image, Eclipse, bla bla) is up to date.
I tried building in Debug mode and I get this:
Building file: ../core/default_main.cpp
Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"core/default_main.d" -MT"core/default_main.d" -o "core/default_main.o" "../core/default_main.cpp"
In file included from ../core/default_main.cpp:13:
../core/../include/Bela.h:33:10: fatal error: 'rtdk.h' file not found
The path /usr/local/linaro/arm-linux-gnueabihf/include/xenomai/include
is added to the Eclipse project and the file rtdk.h
exists in that location. So, I do not know exactly what the error means and how to solve it.
I also tried building in Release mode, and in this case I got a different and longer warning list:
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libpthread.so.0, needed by /usr/local/linaro/arm-linux-gnueabihf/bin/../arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf/librt.so, not found (try using -rpath or -rpath-link)
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libFLAC.so.8, needed by /usr/local/linaro/arm-linux-gnueabihf/lib/libsndfile.so, not found (try using -rpath or -rpath-link)
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libvorbisenc.so.2, needed by /usr/local/linaro/arm-linux-gnueabihf/lib/libsndfile.so, not found (try using -rpath or -rpath-link)
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libvorbis.so.0, needed by /usr/local/linaro/arm-linux-gnueabihf/lib/libsndfile.so, not found (try using -rpath or -rpath-link)
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libogg.so.0, needed by /usr/local/linaro/arm-linux-gnueabihf/lib/libsndfile.so, not found (try using -rpath or -rpath-link)
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libdl.so.2, needed by /Users/JuanGil/Documents/Programming/_SDK_/Bela/lib/libpd.so, not found (try using -rpath or -rpath-link)
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libpthread_rt.so.1, needed by /Users/JuanGil/Documents/Programming/_SDK_/Bela/lib/libpd.so, not found (try using -rpath or -rpath-link)
I thought that I needed to copy libpthread.so.0
, libFLAC.so.8
, etc... so I did, and after that the warning message is:
/usr/local/linaro/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: warning: ld-linux.so.3, needed by /usr/local/linaro/arm-linux-gnueabihf/lib/libFLAC.so, not found (try using -rpath or -rpath-link)
Not to mention the ton of undefined references in files like PRU.cpp
, Midi.cpp
, and Scope.cpp
.
I tried the project that @AndyCap shared in dropbox, and I do not get any of the warnings above, but I do get all the errors about undefined references to many snd_...
functions in the cpp files.
Can anyone tell me what is it that I am missing?