安装Boost和Eigen3

稀里糊涂用了多年C++,至今不会装Boost 和Eigen3
今天尝试安装libpointmatcher
之前是用vcpkg装的boost,可能是因为没有添加环境变量,cmake-gui总是报错。
于是按照libpointmatcher的教程重新安装一遍Boost :Installation of libpointmatcher on Windows using MSVC
这应该是我见过写得比较清晰明了的Boost 安装教程了。
包括后面的cmake-gui教程都很清晰明了。难得一见,故记录一下。

Install Boost

  1. Download boost_<version>.zip

  2. Extract boost_<version> in C:\dev

  3. Go to your Boost source directory with your CLI, and do:

    .\bootstrap.bat
    .\b2.exe
    
  4. 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>

  5. Add C:\dev\boost_<version>\stage\lib to Path environment variable

Install Eigen3

Eigen is header only (see Eigen's "Getting stated" page) and don't need to be build.

  1. Download eigen-<version>.zip
  2. Extract eigen-<version> in C:\dev
  3. Set EIGEN3_INC_DIR environment variable to C:\dev\eigen-<version> (folder with signature_of_eigen3_matrix_library file)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,499评论 0 10
  • 16宿命:用概率思维提高你的胜算 以前的我是风险厌恶者,不喜欢去冒险,但是人生放弃了冒险,也就放弃了无数的可能。 ...
    yichen大刀阅读 6,135评论 0 4
  • 公元:2019年11月28日19时42分农历:二零一九年 十一月 初三日 戌时干支:己亥乙亥己巳甲戌当月节气:立冬...
    石放阅读 6,949评论 0 2
  • 今天上午陪老妈看病,下午健身房跑步,晚上想想今天还没有断舍离,马上做,衣架和旁边的的布衣架,一看乱乱,又想想自己是...
    影子3623253阅读 2,953评论 3 8