You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
前面装pcl-python,已装pcl-1.7,按照linux的教程,安装了QT,和教程一个版本,然后继续教程,在make阶段出现2个error。
make的输出如下图,请问是什么原因呢?
Scanning dependencies of target CloudViewer_automoc [ 8%] Automatic moc, uic and rcc for target CloudViewer Generating ui_AboutWin.h Generating ui_CloudViewer.h Generating moc_AboutWin.cpp Generating moc_CloudViewer.cpp [ 8%] Built target CloudViewer_automoc [ 16%] Generating qrc_CloudViewer.cpp Scanning dependencies of target CloudViewer [ 25%] Building CXX object src/CMakeFiles/CloudViewer.dir/MyCloud.cpp.o :0:15: warning: missing whitespace after the macro name In file included from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:1:0: /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:23:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 bool isValid = false; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:36:18: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 bool hasCloud = false; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:37:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 bool hasMesh = false; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:43:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 bool visible = true; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:45:19: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 string curMode = "point"; // default show mode ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp: In member function ‘void MyCloud::init(const QFileInfo&, bool, bool)’: /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:33:50: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 supportedModes = {"point", "mesh", "point+mesh"}; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:33:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 supportedModes = {"point", "mesh", "point+mesh"}; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:33:18: error: no match for ‘operator=’ (operand types are ‘std::vector<std::__cxx11::basic_string >’ and ‘’) In file included from /usr/include/c++/5/vector:69:0, from /usr/include/pcl-1.7/pcl/PCLPointField.h:9, from /usr/include/pcl-1.7/pcl/point_traits.h:48, from /usr/include/pcl-1.7/pcl/register_point_struct.h:57, from /usr/include/pcl-1.7/pcl/point_types.h:44, from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:4, from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:1: /usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator<std::__cxx11::basic_string >] vector<_Tp, _Alloc>:: ^ /usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from ‘’ to ‘const std::vector<std::__cxx11::basic_string >&’ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:38:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 supportedModes = {"point"}; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:38:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 supportedModes = {"point"}; ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:38:18: error: no match for ‘operator=’ (operand types are ‘std::vector<std::__cxx11::basic_string >’ and ‘’) In file included from /usr/include/c++/5/vector:69:0, from /usr/include/pcl-1.7/pcl/PCLPointField.h:9, from /usr/include/pcl-1.7/pcl/point_traits.h:48, from /usr/include/pcl-1.7/pcl/register_point_struct.h:57, from /usr/include/pcl-1.7/pcl/point_types.h:44, from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:4, from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:1: /usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator<std::__cxx11::basic_string >] vector<_Tp, _Alloc>:: ^ /usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from ‘’ to ‘const std::vector<std::__cxx11::basic_string >&’ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp: In member function ‘void MyCloud::showCloud()’: /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:67:23: error: ‘pcl::visualization::RenderingProperties’ is not a class or namespace pcl::visualization::RenderingProperties::PCL_VISUALIZER_OPACITY, 1.0, cloudId ^ /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp: In member function ‘void MyCloud::hideCloud()’: /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:72:23: error: ‘pcl::visualization::RenderingProperties’ is not a class or namespace pcl::visualization::RenderingProperties::PCL_VISUALIZER_OPACITY, 0.0, cloudId ^ src/CMakeFiles/CloudViewer.dir/build.make:92: recipe for target 'src/CMakeFiles/CloudViewer.dir/MyCloud.cpp.o' failed make[2]: *** [src/CMakeFiles/CloudViewer.dir/MyCloud.cpp.o] Error 1 CMakeFiles/Makefile2:86: recipe for target 'src/CMakeFiles/CloudViewer.dir/all' failed make[1]: *** [src/CMakeFiles/CloudViewer.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
前面装pcl-python,已装pcl-1.7,按照linux的教程,安装了QT,和教程一个版本,然后继续教程,在make阶段出现2个error。
make的输出如下图,请问是什么原因呢?
Scanning dependencies of target CloudViewer_automoc
[ 8%] Automatic moc, uic and rcc for target CloudViewer
Generating ui_AboutWin.h
Generating ui_CloudViewer.h
Generating moc_AboutWin.cpp
Generating moc_CloudViewer.cpp
[ 8%] Built target CloudViewer_automoc
[ 16%] Generating qrc_CloudViewer.cpp
Scanning dependencies of target CloudViewer
[ 25%] Building CXX object src/CMakeFiles/CloudViewer.dir/MyCloud.cpp.o
:0:15: warning: missing whitespace after the macro name
In file included from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:1:0:
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:23:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool isValid = false;
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:36:18: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool hasCloud = false;
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:37:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool hasMesh = false;
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:43:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool visible = true;
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:45:19: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
string curMode = "point"; // default show mode
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp: In member function ‘void MyCloud::init(const QFileInfo&, bool, bool)’:
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:33:50: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
supportedModes = {"point", "mesh", "point+mesh"};
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:33:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
supportedModes = {"point", "mesh", "point+mesh"};
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:33:18: error: no match for ‘operator=’ (operand types are ‘std::vector<std::__cxx11::basic_string >’ and ‘’)
In file included from /usr/include/c++/5/vector:69:0,
from /usr/include/pcl-1.7/pcl/PCLPointField.h:9,
from /usr/include/pcl-1.7/pcl/point_traits.h:48,
from /usr/include/pcl-1.7/pcl/register_point_struct.h:57,
from /usr/include/pcl-1.7/pcl/point_types.h:44,
from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:4,
from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:1:
/usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator<std::__cxx11::basic_string >]
vector<_Tp, _Alloc>::
^
/usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from ‘’ to ‘const std::vector<std::__cxx11::basic_string >&’
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:38:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
supportedModes = {"point"};
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:38:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
supportedModes = {"point"};
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:38:18: error: no match for ‘operator=’ (operand types are ‘std::vector<std::__cxx11::basic_string >’ and ‘’)
In file included from /usr/include/c++/5/vector:69:0,
from /usr/include/pcl-1.7/pcl/PCLPointField.h:9,
from /usr/include/pcl-1.7/pcl/point_traits.h:48,
from /usr/include/pcl-1.7/pcl/register_point_struct.h:57,
from /usr/include/pcl-1.7/pcl/point_types.h:44,
from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.h:4,
from /home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:1:
/usr/include/c++/5/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator<std::__cxx11::basic_string >]
vector<_Tp, _Alloc>::
^
/usr/include/c++/5/bits/vector.tcc:167:5: note: no known conversion for argument 1 from ‘’ to ‘const std::vector<std::__cxx11::basic_string >&’
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp: In member function ‘void MyCloud::showCloud()’:
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:67:23: error: ‘pcl::visualization::RenderingProperties’ is not a class or namespace
pcl::visualization::RenderingProperties::PCL_VISUALIZER_OPACITY, 1.0, cloudId
^
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp: In member function ‘void MyCloud::hideCloud()’:
/home/linxiu/Downloads/CloudViewer-master/src/MyCloud.cpp:72:23: error: ‘pcl::visualization::RenderingProperties’ is not a class or namespace
pcl::visualization::RenderingProperties::PCL_VISUALIZER_OPACITY, 0.0, cloudId
^
src/CMakeFiles/CloudViewer.dir/build.make:92: recipe for target 'src/CMakeFiles/CloudViewer.dir/MyCloud.cpp.o' failed
make[2]: *** [src/CMakeFiles/CloudViewer.dir/MyCloud.cpp.o] Error 1
CMakeFiles/Makefile2:86: recipe for target 'src/CMakeFiles/CloudViewer.dir/all' failed
make[1]: *** [src/CMakeFiles/CloudViewer.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: