OpenNI2 icon indicating copy to clipboard operation
OpenNI2 copied to clipboard

cannot make examples

Open brianng0305 opened this issue 3 years ago • 0 comments

Camera: Astra S issue: cannot make examples following steps from below link https://astra-wiki.readthedocs.io/en/latest/examples.html

errors: g++ -MD -MP -MT "./Bin/Intermediate/x64-Release/ClosestPointViewer/Viewer.d Bin/Intermediate/x64-Release/ClosestPointViewer/Viewer.o" -c -msse3 -DUNIX -DGLX_GLXEXT_LEGACY -Wall -O2 -DNDEBUG -I../../Include -I../ -I../../ThirdParty/GL/ -I../Common -I/home/brian/OpenNi/OpenNI-Linux-x64-2.3.0.66/Include -fPIC -fvisibility=hidden -Werror -o Bin/Intermediate/x64-Release/ClosestPointViewer/Viewer.o Viewer.cpp In file included from /usr/include/string.h:495, from ../../Include/Linux-x86/OniPlatformLinux-x86.h:34, from ../../Include/OniPlatform.h:44, from ../../Include/OpenNI.h:24, from ../MWClosestPoint/MWClosestPoint.h:24, from Viewer.h:24, from Viewer.cpp:21: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘SampleViewer::SampleViewer(const char*, const char*)’ at Viewer.cpp:60:9: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: error: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 256 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make: *** [CommonCppMakefile:133: Bin/Intermediate/x64-Release/ClosestPointViewer/Viewer.o] Error 1

brianng0305 avatar Jul 31 '22 06:07 brianng0305