giuliomoro the compiler seems to have trouble with finding the "I2cRt.h" file . echo 'Building render.cpp...'
Building render.cpp...
g++ -I/root/Bela/projects/CapSens_HEAVY_2 -I./include/legacy -I./include -I./build/pru/ -I./ -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -march=armv7-a -mfpu=vfp3 -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -D__COBALT__ -D__COBALT_WRAP__ -DXENOMAI_SKIN_posix -DXENOMAI_MAJOR=3 -O3 -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -ftree-vectorize -ffast-math -DNDEBUG -DBELA_USE_RTDM -I/root/Bela/resources/stretch/include -save-temps=obj -std=c++11 -Wall -c -fmessage-length=0 -U_FORTIFY_SOURCE -MMD -MP -MF"/root/Bela/projects/CapSens_HEAVY_2/build/render.d" -o "/root/Bela/projects/CapSens_HEAVY_2/build/render.o" "/root/Bela/projects/CapSens_HEAVY_2/render.cpp"
/root/Bela/projects/CapSens_HEAVY_2/render.cpp:45:19: fatal error: I2cRt.h: No such file or directory
#include <I2cRt.h>
^
compilation terminated.
Makefile:459: recipe for target '/root/Bela/projects/CapSens_HEAVY/build/render.o' failed
make: *** [/root/Bela/projects/CapSens_HEAVY/build/render.o] Error 1
make: Leaving directory '/root/Bela'
I tried compiling two different projects: one with files from the old better-i2c branch; (the libpd version builds and works fine) and the other one is the same project but with all files updated to those of the rebased better-i2c branch. they gave me excactly the same results.
also, you might want to know: when i updated the default_libpd_render.cpp
file to the rebased one, it gave me some errors:
no matching member function for call to 'sendBuffer' column: 8, line: 202
and
no matching member function for call to 'sendBuffer' column: 10, line: 214
./libraries/Gui/Gui.h:128:10: note: candidate function template not viable: requires 2 arguments, but 3 were provided
int Gui::sendBuffer(unsigned int bufferId, std::vector<T,A> & buffer)
^
./libraries/Gui/Gui.h:135:10: note: candidate function template not viable: requires 2 arguments, but 3 were provided
int Gui::sendBuffer(unsigned int bufferId, T (&buffer)[N])
^
./libraries/Gui/Gui.h:142:10: note: candidate function template not viable: requires 2 arguments, but 3 were provided
int Gui::sendBuffer(unsigned int bufferId, T value)
^
/root/Bela/projects/I2c_Rebase/render.cpp:214:10: error: no matching member function for call to 'sendBuffer'
gui.sendBuffer(bufNum, s, strlen(s));
~~~~^~~~~~~~~~
./libraries/Gui/Gui.h:128:10: note: candidate function template not viable: requires 2 arguments, but 3 were provided
int Gui::sendBuffer(unsigned int bufferId, std::vector<T,A> & buffer)
^
./libraries/Gui/Gui.h:135:10: note: candidate function template not viable: requires 2 arguments, but 3 were provided
int Gui::sendBuffer(unsigned int bufferId, T (&buffer)[N])
^
./libraries/Gui/Gui.h:142:10: note: candidate function template not viable: requires 2 arguments, but 3 were provided
int Gui::sendBuffer(unsigned int bufferId, T value)
. because it said: requires 2 arguments but 3 were provided, i removed the second argument in the corresponding functions: removed "buf"
in gui.sendBuffer(bufNum, buf, argc - 1);
(line 202) and "s"
in gui.sendBuffer(bufNum, s, strlen(s));
(line 214) Again, i do not know excactly what this is doing; but only after removing these arguments the project built and the libpd version worked with no problems.