Project

General

Profile

Actions

Cross-compiling NDN projects for Raspberry Pi » History » Revision 7

« Previous | Revision 7/48 (diff) | Next »
Wentao Shang, 03/06/2014 10:40 AM


Cross-compiling NDN projects for Raspberry Pi

Note: before reading this document, you should already be familiar with the basic concepts of compiling and linking (especially the linking part). If not, you may be interested in reading this great book: Linkers and Loaders

Basic Idea

Remember to compile a C/C++ project, we need the source code for the project, the header files for the included libraries, the binary objects of the libraries, and the compiler tools (gcc, as, ld, etc.). The combination of the last three things together is referred to as a building environment. Cross-compiling is no different. To cross compile a project, we first need to setup the building environment and then build the source code in that environment.

Difference between "native compiling" and "cross compiling"

The biggest difference is that for native compiling, you build the binaries that will run on the same platform where you build them. For cross compiling, however, you build the binaries in one platform and run them on another platform. The platforms may differ in the operating systems (Windows vs. Linux) and/or the CPU architecture (x86_64 vs. arm32).

Updated by Wentao Shang almost 11 years ago · 48 revisions