CMake Error:'cv_bridge'에서 제공하는 패키지 구성 파일을 찾을 수 없습니다.

3521 단어 기타

문제 발생:


CMake Error at/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by “cv_bridge” with any of the following names:
cv_bridgeConfig.cmake cv_bridge-config.cmake

해결 방법:

  • 다운로드 vision_오픈 cv 패키지
  • git clone https://github.com/ros-perception/vision_opencv.git
    
  • 번역
  • $ cd vision_opencv/cv_bridge
    
    $ sudo mkdir build
    
    $ cd build
    
    $ cmake ..
    
    $ make & make install
    

    오류 1:
    Could not find a package configuration file provided by “rosconsole” with any of the following names:
    rosconsoleConfig.cmake
    rosconsole-config.cmake
    

    Add the installation prefix of “rosconsole” to CMAKE_PREFIX_PATH or set “rosconsole_DIR” to a directory containing one of the above files. If “rosconsole” provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:4 (find_package)
    해결 방법:
  • 설치 console_bridge, 명령은 다음과 같습니다
  • git clone https://github.com/ros/console_bridge
    mkdir build
    cd build
    cmake ..
    sudo make install
    
  • CMakeLists 수정.txt 파일

  • 네 번째 줄 삭제:find_패키지(catkin REQUIRED COMPONENTS rosconsole sensor_msgs), 문장 추가:
    set(console_bridge_DIR /home/ouc/install/console_bridge)
    

    뒤에 네가 설치한 콘솔_bridge가 있는 경로입니다.
    오류 2:
    CMake Error at/usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message): Unable to find the requested Boost libraries.
    Boost version: 1.58.0
    Boost include path:/usr/include
    Could not find the following Boost libraries:
          boost_python37
    

    No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): CMakeLists.txt:12 (find_package)
    해결 방법:
  • boost 라이브러리 설치:https://blog.csdn.net/zym1348010959/article/details/87821713
  • CMakeLists 수정.txt 파일 삭제 열 두 번째 줄:find_패키지(Boost REQUIRED python37):
  • set(boost_DIR /home/ouc/install/boost_1_69_0)
    

    다음은 당신이 설치한 boost 라이브러리가 있는 경로입니다.

    좋은 웹페이지 즐겨찾기