当前位置:网站首页>QNX 7.1 交叉编译 boost 1.76
QNX 7.1 交叉编译 boost 1.76
2022-08-09 14:58:00 【iBlackAngel】
配置 QNX 编译环境
假如 QNX 7.1 SDP 的路径为 /work/sdk/qnx710,使用 source 命令让 qnx 环境变量生效:
source /work/sdk/qnx710/qnxsdp-env.sh
将 qcc 添加到 $PATH 环境变量:
export PATH=$PATH:/work/sdk/qnx710/host/linux/x86_64/usr/bin
下载 boost 1.76
官网地址:https://www.boost.org/
从右侧 Download 标签页进入 ,在 OLD BOOST RELEASES 下点击 version history 选择 VERSION 1.76.0 的 Download 链接。在下载页面选择合适的压缩包进行下载:boost_1_76_0.tar.gz
解压缩 boost 1.76
tar -xf boost_1_76_0.tar.gz
修改 qcc.jam
解压缩 boost_1_76_0.tar.gz 后,修改 boost_1_76_0/tools/build/src/tools/qcc.jam 文件第 41 行,将 QCC 修改成 qcc:
原文:
local command = [ common.get-invocation-command qcc : QCC : $(command) ] ;
修改为:
local command = [ common.get-invocation-command qcc : qcc : $(command) ] ;
编译 boost
执行 bootstrap.sh 生成构建系统:
./bootstrap.sh
执行 b2 生成 boost 库,利用 --prefix=<path> 参数指定生成的 boost 路径,需要确保 <path> 路径存在,比如在以下示例中指定了 --prefix=/tmp/boost,最终的目标会在 /tmp/boost 生成 :
./b2 install toolset=qcc target-os=qnxnto threadapi=pthread link=shared -l240 \
--layout=system --without-python --without-mpi --without-graph_parallel \
cxxflags="-Vgcc/8.3.0,gcc_ntoaarch64le -Y_cxx -Wc,-std=gnu++17 -D_LITTLE_ENDIAN" \
linkflags="-Vgcc/8.3.0,gcc_ntoaarch64le -Y_cxx -lang-c++" \
-j4 \
--prefix=/tmp/boost
边栏推荐
猜你喜欢
随机推荐
Stetman读paper小记:Backdoor Learning: A Survey(Yiming Li, Yong Jiang, Zhifeng Li, Shu-Tao Xia)
How to ensure that the data cannot be recovered after the computer hard drive is formatted?
嵌入式三级笔记
scala 内部类使用小细节
实现一个支持请求失败后重试的JS方法
深入浅出最优化(2) 步长的计算方法
hugging face tutorial - Chinese translation - sharing custom model
【知识分享】知识链路-Modbus通信知识链路
Region实战SVG地图点击
XGB系列-XGB参数指南
什么是链游?小白必看!A3
分类任务系列学习——总述
NLP-阅读理解任务学习总结概述
【工具使用】Modscan32软件使用详解
微信小程序转盘demo
AlexNet pytorch实现
ConvNext笔记
【知识分享】Modbus通信协议详解
Visio画神经网络卷积层
【深度学习】梳理范数与正则化(二)








