Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
| software:linux:toradex:ubuntu_toolchain [2017-06-21 18:28] – graf | software:linux:toradex:ubuntu_toolchain [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Toradex Colibri i.MX6 - Toolchain | ||
| - | ==== rootfs GCC 4.8 ==== | ||
| - | If you use our PATHOS-rootfs built with Buildroot (uses GLIBC), you can use the default Toolchain from Ubuntu. | ||
| - | Install toolchain (4.8.2) with Ubuntu 14.04: | ||
| - | |||
| - | < | ||
| - | $ sudo apt-get install g++-arm-linux-gnueabihf | ||
| - | </ | ||
| - | |||
| - | |||
| - | To compile applications with cmake use this toolchain file: | ||
| - | |||
| - | < | ||
| - | set(CMAKE_SYSTEM_NAME Linux) | ||
| - | |||
| - | set(TOOLCHAIN_PREFIX arm-linux-gnueabihf) | ||
| - | set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) | ||
| - | set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++) | ||
| - | |||
| - | set(CMAKE_FIND_ROOT_PATH / | ||
| - | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
| - | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
| - | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
| - | </ | ||
| - | |||
| - | |||
| - | And configure cmake with this command: | ||
| - | |||
| - | < | ||
| - | $ cd path/ | ||
| - | $ mkdir build | ||
| - | $ cd build | ||
| - | $ cmake path/ | ||
| - | </ | ||