如何交叉编译成ARM9板? [英] How to cross compile into ARM9 board?

查看:174
本文介绍了如何交叉编译成ARM9板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

构建ARM GNU交叉编译器

我使用POCO c ++库在ubuntu环境中实现我的项目。并且我想从我的POCO c ++代码交叉编译到基于ARM9的板。

I am using POCO c++ library to implement my project in ubuntu environment. And I want to cross compile into the ARM9 based board from my POCO c++ code.

如何交叉编译为ARM9?

How to cross compile it for ARM9?

推荐答案

为您的目标获取交叉编译器。然后,在$ POCO_BASE / build / config(ARM-Linux,DigiEL,Angstrom,ELDK等)中采用交叉构建配置之一,复制它并对您的工具链进行必要的更改。您可能需要更改CC和CXX变量以匹配工具链的可执行文件名称,以及POCO_TARGET_OSARCH。或者将环境变量POCO_CONFIG设置为您的构建配置的名称,并为Foundation,XML等运行,或者运行

Get a cross compiler for your target. Then take one of the cross-build configurations in $POCO_BASE/build/config (ARM-Linux, DigiEL, Angstrom, ELDK, etc.), copy it and make the necessary changes for your toolchain. You'll probably need to change the CC and CXX variables to match the executable names of your toolchain, as well as POCO_TARGET_OSARCH. The either set the environment variable POCO_CONFIG to the name of your build configuration and run make for Foundation, XML, etc., or run

./configure --config=<YourConfig> --no-samples --no-tests
./make -s

POCO for your target。

to build POCO for your target.

此外,构建系统文档 http://pocoproject.org/docs/99150-GMakeBuildNotes.html

这篇关于如何交叉编译成ARM9板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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