在Ubuntu的手臂交叉编译升压1.57.0 [英] cross compile Boost 1.57.0 on ubuntu for arm

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

问题描述

我是新进的交叉编译过程。需要交叉编译Boost库的手臂。请建议一步交叉编译Boost库。
是否有可能越过Boost库的编译所需的功能?


解决方案

要使用交叉步followig编译boost库:


  1. 引导文件中,code:

    ./ bootstrap.sh


  2. 修改修改配置文件(项目build.jam中),以通过用用gcc取代线使用ARM工具链

    使用gcc:手臂:手臂-Linux的gnueabihf-G ++;


  3. 编译并安装Boost库:

    ./的bjam安装工具包= GCC臂 - preFIX =的/ usr /本地/升压


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?

解决方案

To Cross compile boost library using followig step:

  1. Bootstrap the code:

    ./bootstrap.sh

  2. Edit Modify the configuration file (project-build.jam) to use the ARM toolchain by replacing the line with "using gcc" by:

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

  3. Build and install the boost libraries:

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

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

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