问题
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:
- Build a cross compiler for your target.
- Use the cross compiler to build for that target.
来源:https://stackoverflow.com/questions/14701846/how-to-cross-compile-into-arm9-board