mysmartgrid / hexabus

The HexaBus Project: An IPv6-based home automation bus. We develop both hard- and software for the future of home automation.
http://hexabus.net
49 stars 15 forks source link

hexabus does not compile on latest rasberian (Jan 2014) #219

Closed ChristianKniep closed 10 years ago

ChristianKniep commented 10 years ago

Bonjour,

I am trying to compile hexabus as instructed in the howto. But I get the following error:

[ 50%] Building CXX object src/CMakeFiles/hexalog.dir/hexalog.cpp.o
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp: In member function 'void ReadingLogger::acceptPacket(float, uint32_t)':
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:86:54: error: 'class klio::Store' has no member named 'getSensorUUIDs'
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:89:44: error: 'class klio::Store' has no member named 'getSensor'
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:106:51: error: no matching function for call to 'klio::SensorFactory::createSensor(std::string&, const char*, std::string&)'
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:106:51: note: candidates are:
/usr/include/libklio/sensor-factory.hpp:37:27: note: klio::Sensor::Ptr klio::SensorFactory::createSensor(const string&, const string&, const string&, const string&)
/usr/include/libklio/sensor-factory.hpp:37:27: note:   candidate expects 4 arguments, 3 provided
/usr/include/libklio/sensor-factory.hpp:44:27: note: klio::Sensor::Ptr klio::SensorFactory::createSensor(const string&, const string&, const string&, const string&, const string&)
/usr/include/libklio/sensor-factory.hpp:44:27: note:   candidate expects 5 arguments, 3 provided
/usr/include/libklio/sensor-factory.hpp:52:27: note: klio::Sensor::Ptr klio::SensorFactory::createSensor(const string&, const string&, const string&, const string&, const string&, const string&)
/usr/include/libklio/sensor-factory.hpp:52:27: note:   candidate expects 6 arguments, 3 provided
/usr/include/libklio/sensor-factory.hpp:68:27: note: klio::Sensor::Ptr klio::SensorFactory::createSensor(const uuid_t&, const string&, const string&, const string&, const string&, const string&)
/usr/include/libklio/sensor-factory.hpp:68:27: note:   candidate expects 6 arguments, 3 provided
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:107:13: error: 'class klio::Store' has no member named 'addSensor'
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp: In function 'int main(int, char**)':
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:302:41: error: 'class klio::StoreFactory' has no member named 'openStore'
/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp:302:51: error: 'SQLITE3' is not a member of 'klio'
make[3]: *** [src/CMakeFiles/hexalog.dir/hexalog.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/hexalog.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [release] Error 2
root@raspberrypi:~/hexabus/hostsoftware/libhexabus#

I patched this include:

/root/hexabus/hostsoftware/libhexabus/src/hexalog.cpp
+#include <libklio/store-factory.hpp>
-#include <libklio/storefactory.hpp>

Cheers Christian

ghost commented 10 years ago

Are you compiling from master or development?

ChristianKniep commented 10 years ago

damn you are fast... :) From master.

ghost commented 10 years ago

master is really old (we're working on changing that). If you want current software, use development for time being.

ChristianKniep commented 10 years ago

thanks. will do...