하루의 쉼터

[Error] Compilation Error: missing: GRAPHICSMAGICKCPP_INCLUDE_DIRS 본문

프로그래밍/ROS2

[Error] Compilation Error: missing: GRAPHICSMAGICKCPP_INCLUDE_DIRS

Changun An 2023. 2. 24. 10:30
반응형

nav2_map_server 포팅 중 아래와 같은 메시지를 만날 수 있다.

Compilation Error: missing: GRAPHICSMAGICKCPP_INCLUDE_DIRS

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  GRAPHICSMAGICKCPP_LIBRARIES (missing: GRAPHICSMAGICKCPP_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindGRAPHICSMAGICKCPP.cmake:31 (find_package_handle_standard_args)
  CMakeLists.txt:17 (find_package)

rosdep을 이용하여 관련 종속성을 준비해준다.

sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro eloquent -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers"
or 
rosdep install -y -r -q --from-paths src --ignore-src --rosdistro [ros_version] -y

src에는 자기 위치를 잡아주면 된다.
* src가 없다면 종속성 설정할 ws를 정하면 됨.

반응형
Comments