VS2015编译boost1.58 Linux平台编译

来源:互联网 发布:太空工程师怎么编程 编辑:程序博客网 时间:2024/06/04 19:00

Window平台

打开Developer Command Prompt for VS2015命令行窗口

切换到boost目录下面执行bootstrap

然后

全部编译的命令行:bjam --toolset=msvc-14.0 --build-type=complete stage
部分编译的命令行:bjam --toolset=msvc-14.0 --with-date_time --with-thread
编译成64位的命令:bjam --toolset=msvc-14.0 address-model=64 --build-type=complete stage 
查看需要编译库的命令行:bjam --show-libraries

=====================================================

linux

这个是boost以前版本编译的步骤,应该是一样的。


Installation of ICU
 Install ICU by running the following commands:


cd source &&
CXX=g++ ./configure --prefix=/usr &&
make


To test the results, issue: make check.
Now, as the root user:
make install


boost 
./bootstrap.sh
 ./b2
 sudo ./b2  install

0 0