User Tools

Site Tools


getting_started:arm_toolchain
no way to compare when less than two revisions

Differences

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


Last revision
getting_started:arm_toolchain [2017/11/21 08:07] – created graf
Line 1: Line 1:
 +====== Toolchain File for ARM Platform ======
 +The following is an example of a toolchain file for an ARM platform and the gcc version 4.9.
 +<code>
 +set(CMAKE_SYSTEM_NAME Linux)
  
 +set(TOOLCHAIN_PREFIX arm-linux-gnueabihf)
 +set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc-4.9)
 +set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++-4.9)
 +
 +set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
 +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 +</code>