cmake - CMake 错误:找不到 VTK 文件
问题描述
我正在使用 OpenCV 和 PCL。最近一直在尝试实现一个demo,但是程序无法正确编译。以下是我的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, 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.
** 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.so
and vtk
,但我确实找到了这两个文件,但名称不完全相同—— libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.so
and vtk6
。现在我不知道该怎么办。我应该重新安装VTK还是什么?
解决方案
推荐阅读
- azure-devops - 无法更新 Azure Devops (VSTS) 扩展
- git - Stash 在另一个分支中进行更改并返回
- c# - 数据库中的数据不会加载到数据网格视图上
- node.js - 无法在 Dialogflow Fulfillment(内嵌编辑器)中从 Firestore 获取数据
- spring - Spring - 如何调试以找到spring的自动装配或请求参数的具体用途?
- javascript - 为什么在 foreach 循环中不能在 Typescript 中使用全局变量?
- c# - 第一条数据线跳过
- javascript - 如此接近......进行秒针扫描所需的代码更改是什么?
- xml - 使用 VBA 在 VBA 中使用 xslt 将 XML 导入 MS Access
- c - mingw64 pjsip sizeof(fd_set) 总是双倍 sizeof(pj_fd_set_t) 导致 sock_select.c 中的断言