我正在尝试在ubuntu 15.04上的catkin_ws里面的ROS上安装iai_kinect2包。
当我make
catkin_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
如何解决此错误?
谢谢,
答案 0 :(得分:1)
也许你尝试通过rpmbuild构建opencv?对我来说,解决方案是在opencv / modules / hal / CMakeLists.txt中共享的更改hal模块类型
设置(OPENCV_MODULE_TYPE共享)