Problems compiling ros-mavlink-pkg [closed]

asked 2012-07-05 09:27:30 -0500

dhj0001 gravatar image

updated 2014-04-20 14:09:39 -0500

ngrennan gravatar image

Hey ROS Gurus,

I'm having some issues while trying to compile the ros-mavlink-pkg. I got the package from https://github.com/mavlink/mavlink-ros and followed the README to try and get it installed correctly. It seems to be a problem with the mavlink header file but I have tried putting it everywhere I know possible. Maybe the build script doesn't know that the file is there without telling it so? Can anyone help me please?

Here is the error I am getting:

[rosmake-2] Starting >>> serial_mavlink_ros [ make ]                                                                                      
[ rosmake ] All 20 lineserial_mavlink_ros: 1.2 sec ]          [ 1 Active 13/14 Complete ]
{-------------------------------------------------------------------------------
  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
  [rosbuild] Building package serial_mavlink_ros
  [rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
  [rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
  [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
  -- Could NOT find MAVLink protocol (mavlink.h) (missing:  MAVLINK_INCLUDE_DIR MAVLINK_TYPES_INCLUDE_DIR) 
  -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
  -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
  CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
    Could NOT find MAVLink protocol (mavlink.h) (missing: MAVLINK_INCLUDE_DIR
    MAVLINK_TYPES_INCLUDE_DIR)
  Call Stack (most recent call first):
    /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
    cmake/FindMAVLINK.cmake:24 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    CMakeLists.txt:29 (FIND_PACKAGE)


  -- Configuring incomplete, errors occurred!
-------------------------------------------------------------------------------}
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-26 16:42:37.334996