Suyixiu / robot_sim

A ROS based Open Source Simulation Environment for Robotics Beginners
217 stars 42 forks source link

VTK相关报错 #7

Open BoronFan opened 2 years ago

BoronFan commented 2 years ago

请问博主这种VTK报错应该如何解决呢,卡在这里了。。。 环境: Ubuntu 16.04 gazebo7 ROS Kinetic PCL 1.9.0 VTK 7.1

CMakeFiles/GPD_method_grasp.dir/grasp/GPD_method/src/main.cpp.o:在函数‘__static_initialization_and_destruction_0(int, int)’中: main.cpp:(.text+0x3a34):对‘vtkObjectFactoryRegistryCleanup::vtkObjectFactoryRegistryCleanup()’未定义的引用 main.cpp:(.text+0x3a43):对‘vtkObjectFactoryRegistryCleanup::~vtkObjectFactoryRegistryCleanup()’未定义的引用 CMakeFiles/GPD_method_grasp.dir/grasp/GPD_method/src/main.cpp.o:在函数‘vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit()’中: main.cpp:(.text._ZN25vtkRenderingCore_AutoInitC2Ev[_ZN25vtkRenderingCore_AutoInitC5Ev]+0x17):对‘vtkRenderingOpenGL2_AutoInit_Construct()’未定义的引用 CMakeFiles/GPD_method_grasp.dir/grasp/GPD_method/src/main.cpp.o:在函数‘vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit()’中: main.cpp:(.text._ZN25vtkRenderingCore_AutoInitD2Ev[_ZN25vtkRenderingCore_AutoInitD5Ev]+0x17):对‘vtkRenderingOpenGL2_AutoInit_Destruct()’未定义的引用 collect2: error: ld returned 1 exit status robot_sim/experiment/CMakeFiles/GPD_method_grasp.dir/build.make:601: recipe for target '/home/boron/catkin_ws/devel/lib/robot_sim/GPD_method_grasp' failed make[2]: [/home/boron/catkin_ws/devel/lib/robot_sim/GPD_method_grasp] Error 1 CMakeFiles/Makefile2:13484: recipe for target 'robot_sim/experiment/CMakeFiles/GPD_method_grasp.dir/all' failed make[1]: [robot_sim/experiment/CMakeFiles/GPD_method_grasp.dir/all] Error 2 make[1]: *** 正在等待未完成的任务....

Suyixiu commented 2 years ago

代码已更新,你试试这一版