-
Notifications
You must be signed in to change notification settings - Fork 1
Building
fluks depends on a few libraries: libdevmapper, OpenSSL and Boost; in all cases, you will need the -dev versions of these packages if your distro does shit like that. The build system is CMake.
OpenSSL. But you already have this, right?
libdevmapper comes with Device-mapper.
Boost, at least version 1.35.0. If you use C++ but not Boost, your life must be miserable.
You can download via git or the tarballs in the Download section.
If this is your first time downloading:
git clone git://github.com/markuspeloquin/fluks.git cd fluks
Otherwise, just update to the HEAD:
cd fluks git pull origin master # ??? maybe ... I'm no expert ???
Run one of these depending on which file you have:
tar xzvf fluks-VERSION.tar.gz xzcat < fluks-VERSION.tar.xz | tar xvf -
You can use cmake directly, but ./build.sh
will basically do what you want (a statically-linked, stripped, optimized build). If you want a debug build or to use dynamic linking, you’ll have to edit the top of CMakeLists.txt (I know of no other way). ./build.sh
passes all of it’s arguments to make
, so you can append -j4 or whatever. I think your CFLAGS/CXXFLAGS get picked up by cmake, so just make sure they’re in your environment.
./build.sh sudo ./build.sh install # copies to /usr/local/bin
The resulting binary will be found in the release/
directory (or debug/
for the debug version).
The source code documentation uses Doxygen. Running ./gen_docs.sh
will build the HTML.