Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue with private copy operator in XnDeviceSensorV2/XnServerSensorInvoker.h #10

Open
jeadorf opened this issue Oct 1, 2013 · 3 comments

Comments

@jeadorf
Copy link

jeadorf commented Oct 1, 2013

Hi,

when compiling the snapshot at fc51d0a
for Linux, I get the following compilation error when running ./RedistMaker in the Platform/Linux/CreateRedist directory:

g++ -MD -MP -MT "./x64-Release/XnServerSession.d x64-Release/XnServerSession.o" -c -msse3 -O2 -DNDEBUG -I/usr/include/ni -I../../../../Include -I../../../../Source -I../../../../Source/XnCommon -DXN_DEVICE_EXPORTS -fPIC -fvisibility=hidden -o x64-Release/XnServerSession.o ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp
In file included from /usr/include/ni/XnOS.h:29:0,
from /usr/include/ni/XnTypes.h:29,
from ../../../../Include/XnStreamFormats.h:29,
from ../../../../Include/XnStreamParams.h:28,
from ../../../../Include/XnDDK.h:28,
from ../../../../Include/XnDevice.h:30,
from ../../../../Source/XnDDK/IXnDevice.h:28,
from ../../../../Source/XnDDK/XnDeviceBase.h:28,
from ../../../../Source/XnDeviceSensorV2/XnSensor.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:28,
from ../../../../Source/XnDeviceSensorV2/XnSensorsManager.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp:25:
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h: In member function ‘XnServerSensorInvoker::XnLockedServerStreamsHash& XnServerSensorInvoker::XnLockedServerStreamsHash::operator=(const XnServerSensorInvoker::XnLockedServerStreamsHash&)’:
/usr/include/ni/XnMacros.h:121:7: error: ‘void XnServerSensorInvoker::_XnServerStreamsHash::operator=(const XnServerSensorInvoker::_XnServerStreamsHash&)’ is private
void operator=(const TypeName&);
^
/usr/include/ni/XnHash.h:966:3: note: in expansion of macro ‘XN_DISABLE_COPY_AND_ASSIGN’
XN_DISABLE_COPY_AND_ASSIGN(ClassName);
^
/usr/include/ni/XnStringsHash.h:91:2: note: in expansion of macro ‘XN_DECLARE_HASH_DECL’
XN_DECLARE_HASH_DECL(decl, const XnChar*, ValueType, ClassName, XnStringsKeyTranslator, ValueTranslator, XnStringsKeyManager)
^
/usr/include/ni/XnStringsHash.h:106:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL’
XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, XN_DEFAULT_TRANSLATOR_NAME(ClassName))
^
/usr/include/ni/XnStringsHash.h:113:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH_DECL’
XN_DECLARE_STRINGS_HASH_DECL(, ValueType, ClassName)
^
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:94:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH’
XN_DECLARE_STRINGS_HASH(SensorInvokerStream, _XnServerStreamsHash);
^
In file included from ../../../../Source/XnDeviceSensorV2/XnSensorsManager.h:28:0,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp:25:
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:108:17: error: within this context
this->m_hash = other.m_hash;

@Ingener74
Copy link

on android same error

@oliveRudoll
Copy link

is there a fix for this?

@gengshuhui
Copy link

still in Sensor-Unstable-5.1.0.41
I just change the macro to make compile ok
/usr/local/include/ni/XnHash.h (maybe /usr/include/ni/XnHash.h on you computer)

965     private: 

to

965     public: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants