在 ubuntu 上为 arm 交叉编译 Boost 1.57.0 [英] cross compile Boost 1.57.0 on ubuntu for arm

查看:34
本文介绍了在 ubuntu 上为 arm 交叉编译 Boost 1.57.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是交叉编译过程的新手.需要为arm交叉编译boost库.请建议交叉编译boost库的步骤.是否可以交叉编译boost库所需的功能?

I am new into cross compile process. Need to cross compile boost library for arm. Please suggest step to cross-compile boost library. Is it possible to cross compile required feature of boost library?

推荐答案

您可以使用以下步骤交叉编译 Boost:

You can cross-compile Boost using the following steps:

  1. 引导构建系统:

  1. Bootstrap the build system:

./bootstrap.sh

  • 修改配置文件 (project-config.jam) 以使用 ARM 工具链,将 using gcc 行替换为:

  • Modify the configuration file (project-config.jam) to use the ARM toolchain by replacing the line with using gcc with:

    using gcc : arm : arm-linux-gnueabihf-g++ ;
    

  • 构建和安装库:

  • Build and install the library:

    ./bjam install toolset=gcc-arm --prefix=/usr/local/boost
    

  • 注意:工具链必须在$PATH

    这篇关于在 ubuntu 上为 arm 交叉编译 Boost 1.57.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆