0

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?

Community
  • 1
  • 1
user1951429
  • 77
  • 1
  • 7

2 Answers2

3

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.

Günter Obiltschnig
  • 1,536
  • 11
  • 13
  • Very similar question: http://stackoverflow.com/questions/14637797/compile-poco-with-mingw-on-windowsc/14647307#14647307 – Cesar Ortiz Feb 05 '13 at 09:56
  • Hi gunter ,following as your build documentation and after run on the ARM boards.then throws error like ./poco: symbol lookup error ./poco: undefined symbol: _ZTIN4Poco3Net18HTTPRequestHandlerE – user1951429 Feb 10 '13 at 18:33
  • Are you sure you've linked your executable with all required POCO libraries (most likely libPocoFoundation, libPocoXML, libPocoUtil, libPocoNet)? – Günter Obiltschnig Feb 11 '13 at 08:07
  • yeah,cross compiled in QT framework and that makefile whatever i included path for libraries as same path (put .so libraries) in the ARM-Linux board also .If lib is not proper location then throws libPoco*.so is missing.But in my case libPocoNet.so.16 is linked ,but HTTPRequestHandler not getting the definations. – user1951429 Feb 12 '13 at 05:00
-2
  1. Build a cross compiler for your target.
  2. Use the cross compiler to build for that target.
Some programmer dude
  • 400,186
  • 35
  • 402
  • 621