zpriddy / open-zwave-controller

Automatically exported from code.google.com/p/open-zwave-controller
0 stars 0 forks source link

Unable to compile Main.cpp #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I donwloaded the trunk as indicated, no problem at all.

Then When I try to compile the Main.cpp after putting in 
open-zwave/cpp/examples/linux/MinOZW/ I have a error.

I think I miss a library or some code because I do not have Socket.h files nor 
SocketException.h

I tried to download those located at 
http://tldp.org/LDP/LG/issue74/tougher.html but still no luck with
undefined reference to `ServerSocket::ServerSocket(int)

Is there something else I need to install ?

Thank you

Original issue reported on code.google.com by ch.hall...@gmail.com on 26 Jun 2012 at 3:02

GoogleCodeExporter commented 8 years ago
Use SVN checkout of 
svn checkout http://open-zwave-controller.googlecode.com/svn/trunk/ 
open-zwave-controller-read-only

then copy 
cp *Socket* /usr/src/open-zwave/cpp/src/
and Main.cpp to /usr/src/open-zwave/cpp/examples/linux/MinOZW
After this you will be able to compile

Original comment by Antek.Ma...@gmail.com on 15 Jul 2012 at 11:58

GoogleCodeExporter commented 8 years ago
Unable to compile on Fedora. Get the following errors:

> make
g++ -c -Wall -Wno-format -g -DDEBUG -I ../../../src -I 
../../../src/command_classes/ -I ../../../src/value_classes/ -I 
../../../src/platform/ -I ../../../h/platform/unix -I ../../../tinyxml/ -I 
../../../hidapi/hidapi/ -o Main.o Main.cpp
Main.cpp: In function 'int main(int, char**)':
Main.cpp:299: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_SOFCnt'
Main.cpp:299: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_ACKWaiting'
Main.cpp:299: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_readAborts'
Main.cpp:299: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_badChecksum'
Main.cpp:300: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_readCnt'
Main.cpp:300: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_writeCnt'
Main.cpp:300: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_CANCnt'
Main.cpp:300: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_NAKCnt'
Main.cpp:300: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_ACKCnt'
Main.cpp:300: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_OOFCnt'
Main.cpp:301: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_dropped'
Main.cpp:301: error: 'struct OpenZWave::Driver::DriverData' has no member named 
's_retries'
make: *** [Main.o] Error 1

Original comment by chris.ca...@dominionenterprises.com on 11 Mar 2013 at 7:35

GoogleCodeExporter commented 8 years ago
it seems that the code has changed somewhat in the openzwave.

Replace the offending lines at line number 299 with the original code from 
Main.cpp. It should compile then.

printf("SOF: %d ACK Waiting: %d Read Aborts: %d Bad Checksums: %d\n", 
data.m_SOFCnt, data.m_ACKWaiting, data.m_readAborts, data.m_badChecksum);
printf("Reads: %d Writes: %d CAN: %d NAK: %d ACK: %d Out of Frame: %d\n", 
data.m_readCnt, data.m_writeCnt, data.m_CANCnt, data.m_NAKCnt, data.m_ACKCnt, 
data.m_OOFCnt);
printf("Dropped: %d Retries: %d\n", data.m_dropped, data.m_retries);

Original comment by optimalm...@gmail.com on 19 Apr 2013 at 9:41

GoogleCodeExporter commented 8 years ago
Getting the same error. Don't quite understand the part replacing lines from 
the original code. Replace what with what. Anyway any chance this will be fixed 
:)

Original comment by lonefer...@gmail.com on 14 Aug 2013 at 9:44