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

CreateRedist build failure on Ubuntu #15

Open
sirramsalott opened this issue Nov 1, 2018 · 1 comment
Open

CreateRedist build failure on Ubuntu #15

sirramsalott opened this issue Nov 1, 2018 · 1 comment

Comments

@sirramsalott
Copy link

When running ./CreateRedist on Ubuntu 15, I get the following error:

In file included from ../../../../Include/XnDDK.h:27:0,
                 from ../../../../Include/XnDevice.h:29,
                 from ../../../../Source/XnDeviceSensorV2/XnDeviceSensor.h:33,
                 from ../../../../Source/XnDeviceSensorV2/XnDeviceSensorInit.h:27,
                 from ../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:24:
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp: In constructor ‘XnSensorImageStream::XnSensorImageStream(const XnChar*, XnSensorObjects*)’:
../../../../Include/XnStreamParams.h:261:44: error: ‘XN_CAPABILITY_AUTO_EXPOSURE’ was not declared in this scope
 #define XN_STREAM_PROPERTY_AUTO_EXPOSURE   XN_CAPABILITY_AUTO_EXPOSURE
                                            ^
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:56:17: note: in expansion of macro ‘XN_STREAM_PROPERTY_AUTO_EXPOSURE’
  m_AutoExposure(XN_STREAM_PROPERTY_AUTO_EXPOSURE, XN_IMAGE_STREAM_DEFAULT_AUTO_EXPOSURE),
                 ^
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp: In member function ‘XnStatus XnSensorImageStream::SetColorTemperature(XnInt32)’:
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:729:17: error: ‘XN_PAUSE_AUTO_CONTROL’ was not declared in this scope
   if (nValue != XN_PAUSE_AUTO_CONTROL)
                 ^

The Redist directory is not created. Any help with this would be really appreciated! Could it be something wrong with my OpenNI install?

@hustchenli
Copy link

I just solved this problem. Change"XN_CAPABILITY_AUTO_EXPOSURE" to "XN_CAPABILITY_EXPOSURE" in "../Source/XnDeviceSensorV2/XnSensorImageGenerator.cpp" and ../Include/XnStreamParams.h. And change "XN_PAUSE_AUTO_CONTROL" to "XN_AUTO_CONTROL" in "../Source/XnDeviceSensorV2/XnSensorImageStream.cpp".

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

2 participants