如何编译安装删除Eigen3

安装编译

Let's call this directory 'source_dir' (where this INSTALL file is). Before starting, create another directory which we will call 'build_dir'.

Do:

1
2
3
cd build_dir
cmake source_dir
make install

The "make install" step may require administrator privileges.

You can adjust the installation destination (the "prefix") by passing the -DCMAKE_INSTALL_PREFIX=myprefix option to cmake, as is explained in the message that cmake prints at the end.

删除

If you have a manifest file which lists all the files that were installed with make install you can run this command which I have from another answer:

1
cat install_manifest.txt | xargs echo rm | sh

If you have sudo make install you will need to add a sudo to your uninstall:

1
cat install_manifest.txt | xargs echo sudo rm | sh