mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
823 B
823 B
Math lib used in all airborne code of paparazzi
HOWTO install a shared library to use in other projects
- Build library: in this folder, type make shared_lib
the default build directory is var/build/math to change it: BUILDDIR=<your_build_dir> make shared_lib
- Install library: in this folder, type make install_shared_lib
the default install dir is /usr/local and will install files in /usr/local/lib /usr/local/lib/pkgconfig /usr/local/include/pprz
to change the install dir: PREFIX=<your_install_dir> make install_shared_lib
note that the default install dir needs root privilege
HOWTO use the shared library
-
with pkg-config --cflags --libs pprzmath
-
by hand: LIBS: -L/lib -lpprzmath CFLAGS: -I/include/pprz
"make clean" will only clean the build directory