ARM LINUX 移植c++进程间通信框架RCF2.2

ARM移植RCF2.2

一、首先移植boost依赖库

1、首先去选择下载自己需要的boost版本;
2、下载好后,解压缩。
3、先运行./bootstrap.sh 这个脚本
4、会生成一个project-config.jam 文件,这个是编译的配置文件;
5、修改project-config.jam文件
# 如下
if ! gcc in [ feature.values <toolset> ]
{
	using gcc : arm : mipsel-openwrt-linux-uclibc-g++ ;
}
其中mipsel-openwrt-linux-uclibc-g++是你目标板的交叉工具链编译器。
6、编写build.sh脚本
#!/bin/bash
source ../env.sh
./bjam --prefix=`pwd`/build --link=shared --build-type=minimal --without-container --without-context --without-contract --without-coroutine --without-date_time --without-fiber --without-graph --without-graph_parallel --without-locale --without-log --without-mpi --without-program_options --without-python --without-regex --without-signals --without-stacktrace --without-test --without-type_erasure --without-wave
7、env.sh脚本是导入交叉编译器的到环境变量中而已
#!/bin/bash
export PATH=/work/sdk/mt7628-system-sdk/toolchain-mipsel_24kc_gcc-7.5.0_musl/bin:$PATH

二、下载RCF

1、解压好后编写build.sh脚本
#!/bin/bash
. ../env.sh
mipsel-openwrt-linux-uclibc-g++ -std=c++11 -I ./include -I ../boost_1_68_0/build/ -L ../boost_1_68_0/build/lib -fPIC -shared ./src/RCF/RCF.cpp -lpthread -ldl -lboost_system  -o libRCF.so
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值