Fastd compilieren auf debian

Aus Freifunk Franken
Version vom 18. Februar 2016, 15:16 Uhr von Moexe (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Building fastd on Debian jessie as ordinary user ================================================ (at least) the following Debian packages are needed: <nowik…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
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