在 Ubuntu 18.4 上安装 PCL

在 Ubuntu 18.4 上安装 PCL

我安装了 Ubuntu 18.4 作为 Windows 10 子系统。我尝试按照以下步骤安装 PCL关联。

./RedistMaker 构建失败。请帮忙。

以下是一些错误消息。

../../../../../Samples/NiViewer/Device.cpp:251:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &chosen);

In file included from ../../../../../Samples/NiViewer/glh/glh_obs.h:62:0,
               from ../../../../../Samples/NiViewer/NiViewer.cpp:62:
/usr/include/c++/7/system_error:115:5: error: expected unqualified-id before ‘int’
   equivalent(int __i, const error_condition& __cond) const noexcept;
   ^
/usr/include/c++/7/system_error:115:5: error: expected ‘)’ before ‘int’
/usr/include/c++/7/system_error:115:5: error: expected ‘)’ before ‘int’
/usr/include/c++/7/system_error:115:5: error: expected ‘)’ before ‘int’
/usr/include/c++/7/system_error:118:5: error: expected unqualified-id before ‘const’
   equivalent(const error_code& __code, int __i) const noexcept;
   ^
/usr/include/c++/7/system_error:118:5: error: expected ‘)’ before ‘const’
/usr/include/c++/7/system_error:118:5: error: expected ‘)’ before ‘const’
/usr/include/c++/7/system_error:118:5: error: expected ‘)’ before ‘const’
/usr/include/c++/7/system_error: In function ‘bool std::operator==(const std::error_code&, const std::error_condition&)’:
../../../../../Samples/NiViewer/glh/glh_linear.h:80:33: error: expected unqualified-id before ‘(’ token
#define     equivalent(a,b)     (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false)
                               ^
../../../../../Samples/NiViewer/glh/glh_linear.h:80:42: error: no match for ‘operator+’ (operand types are ‘const std::error_condition’ and ‘float’)
#define     equivalent(a,b)     (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false)
../../../../../Samples/NiViewer/glh/glh_linear.h:80:42: note: candidate: operator+(int, float) <built-in>
../../../../../Samples/NiViewer/glh/glh_linear.h:80:42: note:   no known conversion for argument 1 from ‘const std::error_condition’ to ‘int’
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
               from /usr/include/c++/7/algorithm:61,
               from ../../../../../Samples/NiViewer/glh/glh_glut2.h:51,
               from ../../../../../Samples/NiViewer/NiViewer.cpp:63:`

Another one 
`../../../../../Samples/NiViewer/glh/glh_linear.h:80:67: error: no match for ‘operator-’ (operand types are ‘const std::error_condition’ and ‘float’)
#define     equivalent(a,b)     (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false)
../../../../../Samples/NiViewer/glh/glh_linear.h:80:67: note: candidate: operator-(int, float) <built-in>
../../../../../Samples/NiViewer/glh/glh_linear.h:80:67: note:   no known conversion for argument 1 from ‘const std::error_condition’ to ‘int’
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
               from /usr/include/c++/7/algorithm:61,
               from ../../../../../Samples/NiViewer/glh/glh_glut2.h:51,
               from ../../../../../Samples/NiViewer/NiViewer.cpp:63:`

`make[1]: *** [x64-Release/NiViewer.o] Error 1
make: *** [Samples/NiViewer] Error 2
make: *** Waiting for unfinished jobs....
Note: ../../../../../Samples/UserTracker.java/org/openni/Samples/UserTracker/UserTracker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
failed to execute: make  -j16 -C /home/shukhrat/kinect/OpenNI/Platform/Linux/CreateRedist/../Build > /home/shukhrat/kinect/OpenNI/Platform/Linux/CreateRedist/Output/BuildOpenNI.txt
Building Failed!`

相关内容