libopencv_hal.a 尝试安装 iai_kinect2 时不存在错误

libopencv_hal.a doesn't exist error when trying to install iai_kinect2

我正在尝试在 ubuntu 15.04 catkin_ws 内的 ROS 上安装 iai_kinect2 软件包。

当我makecatkin_make时,遇到如下错误:

CMake Error at /usr/local/share/OpenCV/OpenCVModules.cmake:117 (message):
  The imported target "opencv_hal" references the file

     "/usr/local/lib/libopencv_hal.a"

  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/local/share/OpenCV/OpenCVModules.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/share/OpenCV/OpenCVConfig.cmake:86 (include)
  vision_opencv/image_geometry/CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/satellite/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/satellite/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

我该如何解决这个错误?

谢谢,

您可能尝试通过 rpmbuild 构建 opencv?对我来说,解决方案是将 hal 模块类型更改为在 opencv/modules/hal/CMakeLists.txt

中共享

设置(OPENCV_MODULE_TYPE 共享)