This document assumes you have downloaded the repository and installed the library dependencies. If not, please read the instructions at cornellev.github.io/icp/.
Warning: these instructions must be followed from start whenever an update to the installation is desired.
- The project uses CMake, but there is a Makefile provided for convenience.
- Run
sudo make install
to install the library. You can specify the installation locations by passing theLIB_INSTALL
andHEADER_INSTALL
variables. The default behavior isThe librarysudo make install LIB_INSTALL=/usr/local/lib HEADER_INSTALL=/usr/local/include
libcevicp.a
will be located atLIB_INSTALL
. The header files will be accessible fromHEADER_INSTALL/cev_icp
, e.g.,HEADER_INSTALL/cev_icp/icp/icp.h
. - Run
sudo make uninstall
to remove the library. You can similarly pass theLIB_INSTALL
andHEADER_INSTALL
, but they must be the same as where you installed. Note that uninstalling may leave some remanant directory structure.
Follow the same instructions as above, but supply LIB_INSTALL
and HEADER_INSTALL
to be the desired local paths.
If you choose to include this as a git submodule, you must take care to only include the lib
folder in your build path and only include the include
folder in your include path. It's much easier if your project uses CMake as well.