Build and use¶
After setting up the environment following the previous Setup section, it is time to start building the Rat C++ libraries using vcpkg.
The Project-Rat libraries are here defined as vcpkg ports. This section describes how ports can serve both vcpkg modes and the workflows to consume (build/use) packages.
See also
Both modes share two caveats:
Note
Dependencies might take some time to build depending on the
hardware. The heaviest one for Rat seems to be VTK, which is
even longer to build in Debug.
Warning
VTK ports recently changed to introduce a vtk-compile-tools
port which is host specific and might break CMake configuration.
To fix this, ensure the vtk-compile-tools package is
installed in the global vcpkg, in classic mode, by running
the following command outside any manifest project:
vcpkg install vtk-compile-tools
RAT-VCPKG: BUILD AND USE CONTENTS
---
align: center
alt: C++ Project with Rat-vcpkg
name: cpp_project_with_rat_vcpkg
config:
theme: 'neutral'
---
flowchart LR
P(Project)
Z{combines}
C(Project compiled with Rat)
R(Rat-vcpkg)
RL(Rat libraries)
P ==>|uses| R
R ==>|compiles| RL
RL ==> Z
P ==> Z
Z ==> C