FlowBox C++ Library for processing flow data
- compiler
- cmake
- BZip2 library installed (binary version and headers)
- ZLIB library installed (binary version and headers)
- pthread library installed (binary version and headers)
- math library installed (binary version and headers)
Note: For the headers, you might need the -dev versions of the packages for your OS.
For Ubuntu, you need to install:
sudo apt-get install build-essential cmake zlib1g-dev libbz2-dev
You can create the documentation for this library using doxygen as follows:
doxygen FlowBox.doxyfile
This generates the documentation in the doc/ directory. The HTML documentation can be opened by accessing the index.html file in doc/html/index.html.
If you want to modify the library, you probably want to also create a project file for an IDE. How to do this for eclipse, check the corresponding section in this README file.
cd lib
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../
make
If you want to see a detailed build output, use
make VERBOSE=X
with X as a number indicating the level
of detail. 1 is enough to see the compiler command line output.
If you want to build the deb, rpm and archive packages:
make packages
If you want to install the library into the default library
directory of your system (e.g., /usr/local/lib), do:
make install
- Source tree is in
<SRC_TREE>
- Build directory is
<BUILD_DIR>
-
Create a directory for building the library or application You can do an in-path build, but it is recommanded to keep the source tree separate from the build tree.
mkdir <BUILD_DIR> cd <BUILD_DIR>
-
Rename override.cmake.example to override.cmake and edit it, if you want to change/adapt the compiler flags for DEBUG,RELEASE,... etc. builds.
-
Prepare for building the FlowBox library. Note: DCMAKE_BUILD_TYPE=<Debug,Release,...>. WARNING: <absolute path ...> might not have a "/" at the end!
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug <SRC_TREE>
-
Build with:
make all
Check: http://www.batchmake.org/Wiki/Eclipse_CDT4_Generator for a simple HOWTO.
cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug <SRC_TREE>
-
For the indexer to work with STL types too, please add the STL include directory (compiler specific):
Project -> Properties -> C/C++ Include Paths -> Add External Include Path
Under Linux, this is usually something like: /usr/include/c++/