Page 1 of 1

Z-wave wrapper compile problem

Posted: Wed Dec 12, 2012 10:02 am
by jdr0berts
I'm trying to build the z-wave wrapper - I've followed the instructions as per the wiki, as was well until:

Code: Select all

$ cd ~/domotiga/wrappers/domozwave
$ ln -s ~/install/open-zwave-read-only ./open-zwave
$ make
Which failed to compile with the following errors:

Code: Select all

g++ -c -Wall -Wno-format -g -DDEBUG -fPIC -I open-zwave/cpp/src -I open-zwave/cpp/src/command_classes/ -I open-zwave/cpp/src/value_classes/ -I open-zwave/cpp/src/platform/ -I open-zwave/cpp/tinyxml/ -I open-zwave/cpp/build/linux/ -I default/ -o DomoZWave.o DomoZWave.cpp
DomoZWave.cpp: In function ‘void OnNotification(const OpenZWave::Notification*, void*)’:
DomoZWave.cpp:1437:8: error: ‘Type_MsgComplete’ is not a member of ‘OpenZWave::Notification’
DomoZWave.cpp:1462:8: error: ‘Type_Error’ is not a member of ‘OpenZWave::Notification’
DomoZWave.cpp:1465:64: error: ‘const class OpenZWave::Notification’ has no member named ‘GetErrorCode’
DomoZWave.cpp: In function ‘const char* DomoZWave_GetDriverStatistics(int32)’:
DomoZWave.cpp:3227:79: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_SOFCnt’
DomoZWave.cpp:3227:94: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_ACKWaiting’
DomoZWave.cpp:3227:113: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_readAborts’
DomoZWave.cpp:3227:132: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_badChecksum’
DomoZWave.cpp:3227:152: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_readCnt’
DomoZWave.cpp:3227:168: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_writeCnt’
DomoZWave.cpp:3227:185: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_CANCnt’
DomoZWave.cpp:3227:200: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_NAKCnt’
DomoZWave.cpp:3227:215: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_ACKCnt’
DomoZWave.cpp:3227:230: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_OOFCnt’
DomoZWave.cpp:3227:245: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_dropped’
DomoZWave.cpp:3227:261: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_retries’
DomoZWave.cpp:3227:277: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_controllerReadCnt’
DomoZWave.cpp:3227:303: error: ‘struct OpenZWave::Driver::DriverData’ has no member named ‘s_controllerWriteCnt’
make: *** [DomoZWave.o] Error 1
Sadly, my coding skills are long since gone, so I'm a little stuck - I have the latest versions of domotiga and open-zwave from svn.

Thanks
James

Re: Z-wave wrapper compile problem

Posted: Wed Dec 12, 2012 1:30 pm
by wwolkers
There's already an open issue about this: http://www.domotiga.nl/issues/213, patch is included, but needs to be tested.
It compiles cleanly though.

Re: Z-wave wrapper compile problem

Posted: Wed Dec 12, 2012 7:40 pm
by uAlex73
The patch works fine here, but i won't submit it yet into the SVN. One of the main developers of open-zwave will submit new code changes end-of-this-week or weekend which should stabilize the open-zwave code more. After this is done, i will submit it into the SVN (it requires people to upgrade their open-zwave and remove the zwcfg*xml).

open-zwave wrapper r598+ will not compile

Posted: Sun Dec 23, 2012 11:58 am
by uAlex73
Today an updated open-zwave revision 598+ has been submitted, which isn't backwards compatible. The DomotiGa DomoZWave wrapper has to be updated and will be done in the next 1-1.5 weeks. Until then, please use r591 (command to checkout: svn checkout http://open-zwave.googlecode.com/svn/trunk/ open-zwave -r 591).

http://domotiga.nl/issues/222