Building failed. Running ./RedistMaker

asked 2019-05-31 17:00:15 -0500

Tufte gravatar image

updated 2019-06-01 01:00:11 -0500

gvdhoorn gravatar image

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!
edit retag flag offensive close merge delete

Comments

1

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.

gvdhoorn gravatar imagegvdhoorn ( 2019-06-01 03:38:43 -0500 )edit

I see, I'll try that. Thx

Tufte gravatar imageTufte ( 2019-06-10 19:51:28 -0500 )edit