Skip to content

Install mavconn mavlink

Andy Barry edited this page Dec 10, 2015 · 12 revisions

First install mavlink from here: https://pixhawk.ethz.ch/software/mavconn/start. Note that although their instructions do not say, you need to do this before installing MAVCONN:

Also note: the most recent versions seem to have compile errors. I'm using:

  • mavlink: df1bd0aae42ccc3664e8f38c0bc9ce217f282c34 (Feb 5, 2013)
  • mavconn: 1ee6e94feefb1376a3a42b90ce0a67e1f9469479 (Feb 18, 2013)
cd mavlink
mkdir build
cd build
cmake ..
make
sudo make install

Here are copied the prereqs (copied from the MAVLINK instructions):

sudo apt-get install subversion autopoint gtk-doc-tools \
git build-essential cmake libglib2.0-dev libgtop2-dev \
gpsd libgps-dev libboost-all-dev libgsl0-dev \
libusb-1.0-0-dev libv4l-dev libv4l-0 \
libgtop2-dev libaio-dev libgtk2.0-dev pkg-config libglibmm-2.4-dev

You may have to add a symlink:

sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/libboost_program_options-mt.so
cd mavconn

Edit mavconn/cmake/FindMAVLINK.cmake to fix include this directory instead of the broken default one:

SET(MAVLINK_IncludeSearchPaths
  ./../mavlink/build/include/v1.0/
)
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release ..
make mavconn-bridge-serial
Clone this wiki locally