linux编译libtorrent

最近在编译libtorrent还没有成功 

环境:

gcc要支持c++17我选的gcc9

boost用的boost_1_68_0

openssl用的openssl-1.1.1d

第一步要编译完boost 我这里放到/boost_1_68_0编译的

第二部编译openssl我安装到/openssl-linux

第三部进入libtorrent目录

设置环境变量

export PATH=/boost_1_68_0/tools/build:$PATH
export BOOST_BUILD_PATH=/boost_1_68_0/tools/build/
export BOOST_ROOT=/boost_1_68_0

然后执行编译

b2 cxxstd=17 encryption=off link=static runtime-link=static variant=release debug-symbols=off

 

posted on 2021-01-20 10:22  弘道者  阅读(322)  评论(0编辑  收藏  举报