CMake错误:找不到VTK文件

问题描述

我正在使用OpenCV和PCL。最近,我一直在尝试实现一个演示,但该程序无法正确编译。以下是我的CMakeLists.txt

cmake_minimum_required(VERSION 2.8)
project(point_cloud_join)

set( CMAKE_BUILD_TYPE Release )
set( CMAKE_CXX_FLAGS "-std=c++11 -O3" )

find_package(OpenCV required)
include_directories(${OpenCV_INCLUDE_Dirs})

include_directories("/usr/include/eigen3/")
include_directories("/usr/include/pcl-1.8")


find_package(PCL required QUIET
 COMPONENT common io
 )

include_directories(${PCL_INCLUDE_Dirs})
# message(${PCL_INCLUDE_Dirs})
add_deFinitions(${PCL_DEFinitioNS})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

add_executable(joinMap joinMap.cpp)

target_link_libraries(joinMap ${OpenCV_LIBS} ${PCL_LIBRARIES})

我总是遇到这些错误

-- Could NOT find ensenso (missing: ENSENSO_LIBRARY ENSENSO_INCLUDE_DIR) 
** WARNING ** io features related to ensenso will be disabled
-- Could NOT find DAVIDSDK (missing: DAVIDSDK_LIBRARY DAVIDSDK_INCLUDE_DIR) 
** WARNING ** io features related to davidSDK will be disabled
-- Could NOT find DSSDK (missing: _DSSDK_LIBRARIES) 
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled

-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted,renamed,or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted,or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.

** WARNING ** io features related to libusb-1.0 will be disabled
-- looking for PCL_COMPONENT
-- Could NOT find PCL_COMPONENT (missing: PCL_COMPONENT_LIBRARY PCL_COMPONENT_INCLUDE_DIR) 
-- looking for PCL_COMMON
-- looking for PCL_OCTREE
-- looking for PCL_IO
-- Configuring done
-- Generating done

cmake表示找不到libvtkRenderingPythonTkWidgets.sovtk,但是我确实找到了两个文件,但名称却不完全相同– libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.sovtk6。 现在我不确定该怎么办。我应该重新安装VTK还是什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)