getting_started:host_and_target
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
getting_started:host_and_target [2021/02/12 16:33] – [Cross Compilation] ursgraf | getting_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:// | A compiler that runs on one platform and generates code for another platform is called a [[https:// | ||
+ | |||
+ | 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: | ||
+ | |||
+ | < | ||
+ | $ cmake -DCMAKE_TOOLCHAIN_FILE=path/ | ||
+ | </ | ||
+ |
getting_started/host_and_target.1613144037.txt.gz · Last modified: 2021/02/12 16:33 by ursgraf