稀里糊涂用了多年C++,至今不會(huì)裝Boost 和Eigen3
今天嘗試安裝libpointmatcher
之前是用vcpkg裝的boost,可能是因?yàn)闆](méi)有添加環(huán)境變量,cmake-gui總是報(bào)錯(cuò)。
于是按照l(shuí)ibpointmatcher的教程重新安裝一遍Boost :Installation of libpointmatcher on Windows using MSVC
這應(yīng)該是我見(jiàn)過(guò)寫(xiě)得比較清晰明了的Boost 安裝教程了。
包括后面的cmake-gui教程都很清晰明了。難得一見(jiàn),故記錄一下。
Install Boost
Download
boost_<version>.zipExtract
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\libtoPathenvironment 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_DIRenvironment variable toC:\dev\eigen-<version>(folder withsignature_of_eigen3_matrix_libraryfile)