Building failed. Running ./RedistMaker
Trying to install OpenNI to use Xbox Kinect camera. But when I follow the guide at:
http://wiki.ros.org/openni_camera https://www.20papercups.net/programmi...
I get to step 2. Then get this error. Looking around for a while, but I cant seem to find anything that fixes it. Anyone got a clue?
This is only some of the console. I cant scroll any higher. Might be a better way of doing this, but I'm trying :)
This is the command I'm running:
toby@toby-ubuntu:~/OpenNI/Platform/Linux/CreateRedist$ sudo ./RedistMaker
Thanks in advanced.
/usr/include/c++/7/bits/basic_string.h:6145:5: note: template argument deduction/substitution failed:
In file included from ../../../../../Samples/NiViewer/glh/glh_obs.h:62:0,
from ../../../../../Samples/NiViewer/NiViewer.cpp:62:
../../../../../Samples/NiViewer/glh/glh_linear.h:77:47: note: ‘const std::error_code’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
#define GLH_EPSILON GLH_REAL(10e-6)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ../../../../../Samples/NiViewer/glh/glh_convenience.h:52,
from ../../../../../Samples/NiViewer/glh/glh_glut2.h:61,
from ../../../../../Samples/NiViewer/NiViewer.cpp:63:
/usr/include/c++/7/bits/basic_string.h:6157:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator>(const _CharT* __lhs,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6157:5: note: template argument deduction/substitution failed:
In file included from ../../../../../Samples/NiViewer/glh/glh_obs.h:62:0,
from ../../../../../Samples/NiViewer/NiViewer.cpp:62:
../../../../../Samples/NiViewer/glh/glh_linear.h:77:47: note: mismatched types ‘const _CharT*’ and ‘std::error_code’
#define GLH_EPSILON GLH_REAL(10e-6)
^
make[1]: *** [x64-Release/NiViewer.o] Error 1
make: *** [Samples/NiViewer] Error 2
make: *** Waiting for unfinished jobs....
../../../../../Samples/NiUserSelection/SceneDrawer.cpp: In member function ‘void SceneDrawer::DrawDepthMapTexture()’:
../../../../../Samples/NiUserSelection/SceneDrawer.cpp:154:73: warning: narrowing conversion of ‘g_nXRes’ from ‘XnUInt16 {aka short unsigned int}’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
GLfloat verts[8] = { g_nXRes, g_nYRes, g_nXRes, 0, 0, 0, 0, g_nYRes };
^
../../../../../Samples/NiUserSelection/SceneDrawer.cpp:154:73: warning: narrowing conversion of ‘g_nYRes’ from ‘XnUInt16 {aka short unsigned int}’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
../../../../../Samples/NiUserSelection/SceneDrawer.cpp:154:73: warning: narrowing conversion of ‘g_nXRes’ from ‘XnUInt16 {aka short unsigned int}’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
../../../../../Samples/NiUserSelection/SceneDrawer.cpp:154:73: warning: narrowing conversion of ‘g_nYRes’ from ‘XnUInt16 {aka short unsigned int}’ to ‘GLfloat {aka float}’ inside { } [-Wnarrowing]
failed to execute: make -j4 -C /home/toby/OpenNI/Platform/Linux/CreateRedist/../Build > /home/toby/OpenNI/Platform/Linux/CreateRedist/Output/BuildOpenNI.txt
Building Failed!
The problem you're encountering seems to be one in OpenNI proper. Not in any ROS integration (yet).
The issue tracker of
OpenNI
also seems to have quite a few similar issues reported.I would suggest to try and get support there, as we're not OpenNI experts here.
I see, I'll try that. Thx