Cross Compilation for Embedded Linux

Introduction

The configure script can set up make files for cross compilations for QNX Neutrino or Embedded Linux, assuming you have an RDM package that target this.

Setting up the Environment

Make sure you have completed a hosted build for your development host as described in this document before you continue.

Setting up the environment for cross compilation is similar to the steps described in GNU Build System (Linux Host). The difference is that we are setting it up for the cross compiler tool-chain here instead of the compiler tool-chain for the development host.

Please note that for our development hosts we have added flags and libraries to configure.ac (the input file to autoconf) and for some systems there is no additional setting to set up the development environment. Fewer environment variables may be needed for those compared to cross compilation.

If you have an object package, the install directory will contain the script cross-compile-examples.sh that you can run. This is similar to the compile-and-run-examples.sh for the development host except that it does a cross compilation only. Consult the above mentioned document for details.