TODO
mavhub [options]
Settings can be stored in an ini-like file. Examples can be found in the mavhub.d
directory.
To start, just enter
./src/mavhub -c ../mavhub.d/mavhub.conf
To use own gstreamer plugins or plugins which aren't installed in the GStreamer search path, you
have to set the GST_PLUGIN_PATH
to the directory containing the plugins, e.g.
export GST_PLUGIN_PATH=/home/user/git/mavhub/lib/gstreamer/
./src/mavhub -c ../mavhub.d/mavhub.conf
A complete list about the supported paremeters can be found in the boost runtime parameter reference. For example, a more verbatim output can be reached by
./tests/test_mavhub --log_level=message
-c <file>, --config <file> open config file <file>
-h, --help print usage summary
- pkg-config
- autotools
- boost C++ library
- boost Unit Test Framework
- doxygen
- GStreamer
- mavlink
- mkhuchlink
- OpenCV
- OpenGL
-
MAVLink:
./configure CPPFLAGS="-I$(FULL_PATH_TO_MAVLINK)/include/huch"
-
MKHUCHLink:
./configure CPPFLAGS="-I$(FULL_PATH_TO_MKHUCHLINK)"
To enable optimization level 2 and to get rid of the debug symbols, enter
./configure CXXFLAGS="-O2"
To cross compile for an arm platform with the angstrom SDK run
./configure --build=`config.guess` --host arm-angstrom-linux-gnueabi
Two variables for pkg-config need to be set for proper operation. The paths given below are for the older oe directory layout. In recent versions this has to be changed to
build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi
for e.g. the beagle-board.
PKG_CONFIG_PATH=PATH_TO_OEROOT/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/pkgconfig
PKG_CONFIG_SYSROOT_DIR=PATH_TO_OEROOT/tmp/staging/armv5te-angstrom-linux-gnueabi
To compile the test program in the tests directory, enable test support via
./configure --enable-tests=yes
-
On x86 architecture you might want to enter
mkdir build-i686 cd build-i686 ../configure CXXFLAGS="-O2" \ CPPFLAGS="-I/home/user/git/mavlink/include/huch \ -I/home/user/git/mkhuchlink"
-
For a typical beagleboard or gumstix configuration run
mkdir build-arm cd build-arm ../configure --build=`../auxdir/config.guess` \ --host arm-angstrom-linux-gnueabi \ CXXFLAGS="-O2 \ CPPFLAGS="-I/home/user/git/mavlink/include/huch \ -I/home/user/git/mkhuchlink"
After configuration, just type
make
and you will find the binary under src/mavhub.
Documentation can be generated using Doxygen. Please run
make doxygen-doc
and have a look at doc/html/index.html.
git clone https://github.com/calihem/mavhub.git
aclocal -I m4
automake
autoconf