I try co compile Domoticz under faspberry.
I get the following messages:
[ 49%] Building CXX object CMakeFiles/domoticz.dir/hardware/I2C.cpp.o
/usr/local/src/domoticz/hardware/I2C.cpp: In member function ‘int I2C::ReadInt(int, uint8_t*, uint8_t, uint8_t)’:
/usr/local/src/domoticz/hardware/I2C.cpp:239:29: error: aggregate ‘I2C::ReadInt(int, uint8_t*, uint8_t, uint8_t)::i2c_rdwr_ioctl_data messagebuffer’ has incomplete type and cannot be defined
/usr/local/src/domoticz/hardware/I2C.cpp:262:17: error: ‘I2C_RDWR’ was not declared in this scope
/usr/local/src/domoticz/hardware/I2C.cpp: In member function ‘int I2C::WriteCmd(int, uint8_t)’:
/usr/local/src/domoticz/hardware/I2C.cpp:277:29: error: aggregate ‘I2C::WriteCmd(int, uint8_t)::i2c_rdwr_ioctl_data messagebuffer’ has incomplete type and cannot be defined
/usr/local/src/domoticz/hardware/I2C.cpp:303:17: error: ‘I2C_RDWR’ was not declared in this scope
CMakeFiles/domoticz.dir/build.make:1434: recipe for target 'CMakeFiles/domoticz.dir/hardware/I2C.cpp.o' failed
make[2]: *** [CMakeFiles/domoticz.dir/hardware/I2C.cpp.o] Error 1
CMakeFiles/Makefile2:64: recipe for target 'CMakeFiles/domoticz.dir/all' failed
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
I need help.
Boost is at the level explained in the Wiki
My raspberry
Linux raspberry 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux
# git pull
Already up-to-date.
Philippe
Error compiling I2C.cpp Raspberry
Moderator: leecollings
Who is online
Users browsing this forum: No registered users and 1 guest