How to cross compile into ARM9 board? [duplicate]

你说的曾经没有我的故事 提交于 2020-01-07 04:14:26

问题


Possible Duplicate:
Building ARM GNU Cross compiler

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.

How to cross compile it for ARM9?


回答1:


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

to build POCO for your target.

Also, the build system documentation at http://pocoproject.org/docs/99150-GMakeBuildNotes.html.




回答2:


  1. Build a cross compiler for your target.
  2. Use the cross compiler to build for that target.


来源:https://stackoverflow.com/questions/14701846/how-to-cross-compile-into-arm9-board

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!