老鱼 avatar

Bitshares链接Boost1.63静态库

chaimyu

Published: 04 Aug 2018 › Updated: 04 Aug 2018

Bitshares链接Boost1.63静态库

Bitshares的node和cli_wallet,需要在非开发机器上运行,编译时要指定静态链接。
倒不麻烦就是隔个十天八天又忘了,每次又要去网上查,这次记下来吧!

Boost

进入Boost1.63代码目录,执行如下命令:

./bootstrap.sh 
./b2 link=static threading=multi runtime-link=static

编译成功后可在stage目录下找到静态库。

Bitshares

确定CMakeLists.txt中指定了使用静态库:

SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" )

进入Bitshares代码目录,指定Boost头文件和库目录并编译,如下:

cmake -DBOOST_LIBRARYDIR=/Users/Chaim/Documents/workspace/boost_1_63_0/stage/lib -DBOOST_INCLUDEDIR=/Users/Chaim/Documents/workspace/boost_1_63_0/
make

Leave Bitshares链接Boost1.63静态库 to:

Written by

One day sitting in the well looked at the sky, blowing the wind uphole, jumping out of the well, dancing in the wind!

Read more #bitshares posts


Best Posts From 老鱼

We have not curated any of chaimyu's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From 老鱼