2015-08-26 32 views
0

我試圖在ubuntu 15.04上的catkin_ws裏面的ROS上安裝iai_kinect2軟件包。libopencv_hal.a在嘗試安裝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 

我怎樣才能解決這個問題?

感謝,

回答

1

也許,你嘗試通過建立的rpmbuild OpenCV的?對我來說,解決方案是在opencv/modules/hal/CMakeLists.txt中共享的改變hal模塊類型。

set(OPENCV_MODULE_TYPE SHARED)