Build
To be able to build Scalpel, you need:
- to install CMake;
- a C++ compiler that supports some features of the upcoming C++ standard (alias C++0x):
- variadic templates;
- rvalue references;
- auto-typed variables;
- initializer lists;
- strongly-typed enums;
- deleted functions;
- double right angle brackets in template-ids;
- range-based for loop;
- constexpr;
- nullptr.
From your terminal, go to the Scalpel root directory (containing the file CMakeLists.txt) and run:
cmake . -G"Unix Makefiles"
Depending on your system and preferences, you may want to select another generator (-G option). The available generators are listed in the CMake help (-h option).
If you've chosen a makefile generator, just type:
make
If you've chosen to generate an IDE project file, open it and build the project.
The build may take a while. There should be four important resulting files (whose names may change depending on your system):
- lib/libscalpel.so (shared library);
- cpp2xml/lib/libcpp2json.so (shared library);
- demo/bin/demo (executable);
- test/bin/test (executable).
