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
Next revision
Previous revision
getting_started:host_and_target [2015/10/14 13:00] – [Host and Target] grafgetting_started:host_and_target [2021/02/12 16:40] (current) – [Cross Compilation] ursgraf
Line 4: Line 4:
  
  
-===== Find the Architecture of your Machine =====+===== Determine the Architecture of your Machine =====
  
 On a Linux system the following command displays the hardware plattform of your machine: On a Linux system the following command displays the hardware plattform of your machine:
Line 22: Line 22:
 ===== Cross Compilation ===== ===== Cross Compilation =====
  
-A compiler that runs on one plattform and generates code for another plattform is called a [[https://en.wikipedia.org/wiki/Cross_compiler | cross compiler ]]. cross compiler can be obtained from the official package repositories of your Linux distribution or from third party sources.+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.
  
-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:+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> <code>
Line 30: Line 30:
 </code> </code>
  
-An example of a toolchain file can be found on the github page of the EEDURO project: [[https://github.com/eeduro/eeduro-scripts/blob/master/toolchain.cmake]] 
getting_started/host_and_target.1444820420.txt.gz · Last modified: 2015/10/14 13:00 by graf