Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Source installation with Nix

To compile all HPP packages inside a Nix development environment, follow these steps.

Install and configure direnv with nix-direnv.

This step is already done on LAAS computers.

Configure the Gepetto Nix binary cache:

Gepetto binary cache

This step is already done on LAAS computers.

3. Choose a development directory

Choose a directory on your filesystem. This directory will be referred to as DEVEL_HPP_DIR.

  • The packages will be cloned into DEVEL_HPP_DIR/install.

Create the directory and enter it:

mkdir -p $DEVEL_HPP_DIR
cd $DEVEL_HPP_DIR

4. Activate the HPP Nix environment

Create the .envrc file:

echo "use flake github:gepetto/nix#hpp" > .envrc
direnv allow

If you do not want to use nix-direnv, you can alternatively run:

nix develop github:gepetto/nix#hpp

However, this command must be executed manually in each new shell.

The Nix environment will define the DEVEL_HPP_DIR environment variable to the current working directory.

5. Get the Makefile

Download the Makefile:

wget -O $DEVEL_HPP_DIR/src/Makefile https://raw.githubusercontent.com/humanoid-path-planner/hpp-doc/devel/makefiles/devel.mk

6. Compile all packages

Build all HPP packages:

cd $DEVEL_HPP_DIR/src
make all