undefined reference to `vtkRenderingOpenGL2_AutoInit_Construct()' collect2: error: ld returned 1 exit status
undefined reference to `vtkRenderingOpenGL2_AutoInit_Construct()' collect2: error: ld returned 1 exit status
我有一个链接器错误,我不太确定这到底是什么意思,但这就是我在网上看到的。所以我需要专家的帮助,我收到如下错误
CMakeFiles/run_emvs.dir/src/main.cpp.o: In function
`vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit()':
/usr/include/vtk-6.2/vtkRenderingCoreModule.h:41: undefined reference to `vtkRenderingOpenGL2_AutoInit_Destruct()'
CMakeFiles/run_emvs.dir/src/main.cpp.o: In function `vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit()':
/usr/include/vtk-6.2/vtkRenderingCoreModule.h:41: undefined reference to `vtkRenderingOpenGL2_AutoInit_Construct()'
collect2: error: ld returned 1 exit status
rpg_emvs/mapper_emvs/CMakeFiles/run_emvs.dir/build.make:623: recipe for target '/home/ubuntu/emvs_ws/devel/lib/mapper_emvs/run_emvs' failed
make[2]: *** [/home/ubuntu/emvs_ws/devel/lib/mapper_emvs/run_emvs] Error 1
CMakeFiles/Makefile2:6871: recipe for target 'rpg_emvs/mapper_emvs/CMakeFiles/run_emvs.dir/all' failed
make[1]: *** [rpg_emvs/mapper_emvs/CMakeFiles/run_emvs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target realtime_emvs
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
当 catkin_make 达到 100% 时发生!
只需要我安装VTK库:)
我有一个链接器错误,我不太确定这到底是什么意思,但这就是我在网上看到的。所以我需要专家的帮助,我收到如下错误
CMakeFiles/run_emvs.dir/src/main.cpp.o: In function
`vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit()':
/usr/include/vtk-6.2/vtkRenderingCoreModule.h:41: undefined reference to `vtkRenderingOpenGL2_AutoInit_Destruct()'
CMakeFiles/run_emvs.dir/src/main.cpp.o: In function `vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit()':
/usr/include/vtk-6.2/vtkRenderingCoreModule.h:41: undefined reference to `vtkRenderingOpenGL2_AutoInit_Construct()'
collect2: error: ld returned 1 exit status
rpg_emvs/mapper_emvs/CMakeFiles/run_emvs.dir/build.make:623: recipe for target '/home/ubuntu/emvs_ws/devel/lib/mapper_emvs/run_emvs' failed
make[2]: *** [/home/ubuntu/emvs_ws/devel/lib/mapper_emvs/run_emvs] Error 1
CMakeFiles/Makefile2:6871: recipe for target 'rpg_emvs/mapper_emvs/CMakeFiles/run_emvs.dir/all' failed
make[1]: *** [rpg_emvs/mapper_emvs/CMakeFiles/run_emvs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target realtime_emvs
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
当 catkin_make 达到 100% 时发生!
只需要我安装VTK库:)