Build FuncSketch in Repository#
Dependencies#
A development environment including dependencies can be created using Devcontainer of VSCode. The environment contains all dependencies required for development of FuncSketch as follows:
Python 3.13
You may want to use pyenv.
-
Required Python packages can be installed using poetry. Execute the command
poetry syncon this directory.
C++ 23 Compiler
Following compilers are tested in CI:
GCC 15
Clang 22
Doxygen (for documentation)
Graphviz (for documentation)
PlantUML (for documentation)
Set
PLANTUML_JAR_PATHenvironment variable to specify the place ofplantuml.jarfile.
Java runtime environment (JRE) for PlantUML. (for documentation)
Build commands#
After installation of dependencies, execute the following commands to build the C++ module:
Download vcpkg if you haven’t already.
git submodule update --init
Build C++ module.
CMake tools in VSCode can build the C++ module. Alternatively, you can build it from the command line as follows:
poetry sync mkdir <repository-root>/build cd <repository-root>/build cmake .. -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake cmake --build .
After the build, you can
Run FuncSketch using
poetry run func_sketchcommand.Run tests in C++ using
ctestcommand in the build directory.Run tests in Python using
scripts/run_pytest.shscript.Build documentation using
docs/build.shscript.