maartendamen / py-openzwave

py-openzwave is a python wrapper around the open-zwave c++ project.
http://projects.maartendamen.com/projects/pyopenzwave
40 stars 13 forks source link

Build error OpenZWave::ValueID::ValueID() is private #11

Open xando opened 11 years ago

xando commented 11 years ago

py-openzwave git hash 97663544f028578f496aa7987d88aaa0ab50d8b3

openzwave svn Last Changed Author: glsatz Last Changed Rev: 661 Last Changed Date: 2013-04-29 17:11:23 +0200 (pon, 29 kwi 201

(zwave) ~/Projects/py-openzwave git:master > python setup.py build
running build
running build_ext
skipping 'openzwave.cpp' Cython extension (up-to-date)
building 'openzwave' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -I/usr/include/python2.7 -c openzwave.cpp -o build/temp.linux-x86_64-2.7/openzwave.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from openzwave/cpp/src/Notification.h:32:0,
                 from openzwave.cpp:310:
/usr/include/c++/4.7/bits/stl_pair.h: In instantiation of ‘std::pair<_T1, _T2>::pair() [with _T1 = long unsigned int; _T2 = OpenZWave::ValueID]’:
openzwave.cpp:1880:42:   required from here
openzwave/cpp/src/value_classes/ValueID.h:244:3: error: ‘OpenZWave::ValueID::ValueID()’ is private
In file included from /usr/include/c++/4.7/utility:72:0,
                 from openzwave.cpp:300:
/usr/include/c++/4.7/bits/stl_pair.h:101:25: error: within this context
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
kstaniek commented 10 years ago

Has anybody already fixed this?

daiuto commented 10 years ago

I can't build due to this error.

abattech commented 9 years ago

Same problem here!

texnofobix commented 9 years ago

I made the function public and rebuilt both.

balloob commented 9 years ago

sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h

This will remove the private declaration of the constructor and it can build.

If anyone is interested in a Python Z-Wave wrapper that shows a bit more activity then this repo, join us at bibi21000/python-openzwave .