google-code-export / openzwave-control-panel

Automatically exported from code.google.com/p/openzwave-control-panel
1 stars 0 forks source link

Linking errors with ozwcp rev. 40 and openzwave rev. 903 #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. checkout latest openzwave from svn
2. checkeout latest openzwave-control-panel from svn
3. run "make" in openzwave-control-panel folder

What is the expected output? What do you see instead?
It's expected, that project is compiled successfully and "ozwcp" executable 
file is created. Instead compilation is aborted on linker step.

What version of the product are you using? On what operating system?
URL: http://open-zwave.googlecode.com/svn/trunk
Repository Root: http://open-zwave.googlecode.com/svn
Repository UUID: db0adee0-878e-11de-bed6-6d316fbe0868
Revision: 903
Node Kind: directory
Schedule: normal
Last Changed Author: ualex73@gmail.com
Last Changed Rev: 903
Last Changed Date: 2014-09-14 21:00:11 +0200 (Sun, 14 Sep 2014)

URL: http://openzwave-control-panel.googlecode.com/svn/trunk
Repository Root: http://openzwave-control-panel.googlecode.com/svn
Repository UUID: 45ec40ab-35f4-8ce3-9c7d-be537e79909c
Revision: 40
Node Kind: directory
Schedule: normal
Last Changed Author: justin@dynam.ac
Last Changed Rev: 40
Last Changed Date: 2014-06-18 13:21:14 +0200 (Wed, 18 Jun 2014)

Compilation is done on a RaspberryPi with Rapbian OS.

Please provide any additional information below.
Solution for "...undefined reference to...":
in Makefile change LIBZWAVE path from "$(OPENZWAVE)/cpp/lib/linux/*.a" to 
"$(OPENZWAVE)/cpp/build/*.a" and add to LIBS list " -lrt

Original issue reported on code.google.com by oleksii.g@gmail.com on 25 Sep 2014 at 12:59

GoogleCodeExporter commented 9 years ago
Latest versions of the programs needed and added changes 
in Makefile change LIBZWAVE path from "$(OPENZWAVE)/cpp/lib/linux/*.a" to 
"$(OPENZWAVE)/cpp/build/*.a" and add to LIBS list " -lrt removed mac and added 
linux.

When run make on Mint Linux 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

g++ -c -Wall -Wno-unknown-pragmas -Wno-inline -Werror -Wno-format -g -DDEBUG -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/src/platform/unix -I ../open-zwave/cpp/tinyxml/ -I 
../libmicrohttpd/src/include -o ozwcp.o ozwcp.cpp
ozwcp.cpp: In member function ‘void MyNode::updatePoll(char*, char*)’:
ozwcp.cpp:317:30: error: format ‘%d’ expects argument of type ‘int’, 
but argument 3 has type ‘std::vector<char*>::size_type {aka long unsigned 
int}’ [-Werror=format=]
      ids.size(), polls.size());
                              ^
ozwcp.cpp:317:30: error: format ‘%d’ expects argument of type ‘int’, 
but argument 4 has type ‘std::vector<bool>::size_type {aka long unsigned 
int}’ [-Werror=format=]
cc1plus: all warnings being treated as errors
make: *** [ozwcp.o] Error 1

Any idea

Original comment by roy.sven...@gmail.com on 28 Nov 2014 at 11:15

GoogleCodeExporter commented 9 years ago
Apparently there were modifications to open-zwave project that changed stucture 
of some objects. Just put "//" in front of mentioned lines, as they are only 
there for information.

Original comment by oleksii.g@gmail.com on 9 Dec 2014 at 5:10