User Tools

Site Tools


getting_started:host_and_target

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
getting_started:host_and_target [2021/02/12 16:33] – [Cross Compilation] ursgrafgetting_started:host_and_target [2021/02/12 16:40] (current) – [Cross Compilation] ursgraf
Line 23: Line 23:
  
 A compiler that runs on one platform and generates code for another platform is called a [[https://en.wikipedia.org/wiki/Cross_compiler | cross compiler]]. We encourage to use our prebuilt software development kits (SDK) with built-in cross compiler. This SDK has to be installed on the host and contains exactly the same environment as is present on the target. A compiler that runs on one platform and generates code for another platform is called a [[https://en.wikipedia.org/wiki/Cross_compiler | cross compiler]]. We encourage to use our prebuilt software development kits (SDK) with built-in cross compiler. This SDK has to be installed on the host and contains exactly the same environment as is present on the target.
 +
 +If you don't use an SDK, you have to make sure to manually specify a cross compiler. EEROS uses CMake to build the code. By default CMake does not use a cross compiler. To tell CMake to use a cross compiler you have to supply the CMAKE_TOOLCHAIN_FILE option when generating the build files:
 +
 +<code>
 +$ cmake -DCMAKE_TOOLCHAIN_FILE=path/to/toolchain-file.cmake path/to/source/directory
 +</code>
 +
getting_started/host_and_target.1613144037.txt.gz · Last modified: 2021/02/12 16:33 by ursgraf