Fastd compilieren auf debian

Aus wiki.freifunk.net
Wechseln zu: Navigation, Suche

Building fastd on Debian jessie as ordinary user

====================================

(at least) the following Debian packages are needed:

cmake
bison
pkg-config
libsodium-dev
libcap-dev
doxygen
libjson-c-dev

in libuecc-5/: (the root of the extracted tarball)

cmake .
make DESTDIR=$HOME install

in fastd-17/: (the root of the extracted tarball)

PKG_CONFIG_PATH=$HOME/usr/local/lib/pkgconfig/ cmake .
C_INCLUDE_PATH=$HOME/usr/local/include/libuecc-5/ LIBRARY_PATH=$HOME/usr/local/lib/ make

to run fastd: (when the current directory is fastd-17/)

LD_LIBRARY_PATH=$HOME/usr/local/lib/ ./src/fastd

you can also make a shell script that includes above command:

echo -e '#!/bin/sh\nLD_LIBRARY_PATH=$HOME/usr/local/lib/ exec $HOME/usr/local/bin/fastd "$@"' > fastd
chmod a+x fastd