Get step-by-step instructions for building a cross-compiler so that you can build and develop applications for an alternative platform. Cross-compilers can be useful in many different situations, such as when you develop applications for embedded platforms.
Prerequisites
To build a cross-compiler, you need a basic knowledge of the build process of a typical UNIX open source project, some basic shell skills, and a lot of patience.
System requirements
You'll need JavaScript enabled in your browser. To follow along in this tutorial, you'll need:
- A working C compiler (gcc is generally a good idea). A C compiler is supplied with most Linux/UNIX-based operating systems.
- The source code for the various tools used to build the cross-compiler. You can download GNU tools from GNU. (Use a local mirror where possible.)
- A copy of the header files for your target platform. For a Linux target, use the generic Linux kernel headers available from Kernel.org.
Duration
More than two hours
Formats
html, pdf
discuss this topic to forum
