稀里糊涂用了多年C++,至今不会装Boost 和Eigen3
今天尝试安装libpointmatcher
之前是用vcpkg装的boost,可能是因为没有添加环境变量,cmake-gui总是报错。
于是按照libpointmatcher的教程重新安装一遍Boost :Installation of libpointmatcher on Windows using MSVC
这应该是我见过写得比较清晰明了的Boost 安装教程了。
包括后面的cmake-gui教程都很清晰明了。难得一见,故记录一下。
Install Boost
Download
boost_<version>.zip
Extract
boost_<version>
inC:\dev
-
Go to your Boost source directory with your CLI, and do:
.\bootstrap.bat .\b2.exe
Set the following three environment variables:
BOOST_LIBRARYDIR = C:\dev\boost_<version>\stage\lib
BOOST_INCLUDEDIR = C:\dev\boost_<version>
BOOST_DIR = C:\dev\boost_<version>\stage\lib\cmake\Boost-<version>
Add
C:\dev\boost_<version>\stage\lib
toPath
environment variable
Install Eigen3
Eigen is header only (see Eigen's "Getting stated" page) and don't need to be build.
- Download
eigen-<version>.zip
- Extract
eigen-<version>
inC:\dev
- Set
EIGEN3_INC_DIR
environment variable toC:\dev\eigen-<version>
(folder withsignature_of_eigen3_matrix_library
file)