Ubuntu下编译最新boost1.39.0或1.35.0


首先下载boost 1.39.0.zip

然后解压文件

使用ssh传到Ubuntu上

将解压好的boost库,拷贝到/opt下

使用Linux的命令cp -a -r /home/server/boost /opt

然后编译boost下的jam

cd boost/tools/jam/

执行./build_dist.sh

//编译的jam文件在bin.linuxx86下

1.39.0

第一步:

./bootstrap.sh

第二步:

./bjam -install --build-dir=C:\Cpp\target toolset=gcc --build-type=complete stage

bjam -sTOOLS=gcc --with-asio install

然后使用命令编译boost库

./bjam "-sBUILD debug release" --without-python

在Ubuntu下编译成功

cmake .

make

相关内容