![]() |
Visual Servoing Platform version 3.7.0
|
In this tutorial you will learn how to install ViSP easily from source with Pixi on any supported platform.
Pixi is a cross-platform package management tool for developers that will install all required dependencies in .pixi directory. It's used by our CI agent so you have the guarantee to get the right dependencies.
All dependencies are pinned to a working version in the pixi.lock file, which is regulary updated.
Current supported platforms:
Install Pixi if you do not have it yet. You'll find instructions on this page.
Run the following command to install default ViSP configuration dependencies, configure, build and test the project:
Or, to install ViSP with all supported features (such as Python bindings):
The project will be built in the build directory.
The Pixi environment option "-e all" tells to Pixi that it should use the "all" environment, defined in the pixi.toml Pixi manifest file, located in ViSP root source directory. This environment contains all optional features of ViSP.
Theses commands will run the Pixi task "test". In pixi.toml file, having a look at the [tasks] section, you can see the definitions of all Pixi tasks for ViSP. In this case, "test" task depends on other tasks. Here are the available Pixi tasks for the default environment:
Each Pixi environment inherits from these default tasks and can have additional tasks.
You can also run "pixi shell" and build the project with cmake and make / ninja manually. This will activate a Pixi environment (which is behind the scene a Conda environment) where all dependencies are installed and available. You can similarly specify the Pixi environment you want to enter, such as:
On Windows, the default installed compiler with Pixi is MSVC vs2019. This corresponds to the current pinned default C++ compiler on Conda-Forge. If you want to use Clang-cl compiler instead, consider using the "all-clang-cl" environment for example (or create your own that uses the "clang-cl" Pixi feature defined in our pixi.toml file).