Changes between Version 20 and Version 21 of toolchain/install
- Timestamp:
- Feb 13, 2019, 11:48:26 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
toolchain/install
v20 v21 1 = Installation des chaînes de compilation =1 = Toolchains installation = 2 2 3 La chaîne de compilation croisée permet de compiler sur votre ordinateur des programmes pour la cible. La chaîne de compilation permet de compiler sur votre ordinateur des programmes pour votre ordinateur. 4 Les 2 chaînes de compilation ne supportent que les distributions 64 bits. 3 A cross toolchain is needed to compile on your computer a program for a target (different achitecture). A toolchain is needed to compile on your computer programs for your computer. 5 4 6 Les chaines ont été construites avec le projet [https://github.com/2rm-robotics/robomap3-rt robomap3]. 5 All toolchains/cross toolchains only supports x86_64 hosts (32 bits hosts are not supported). 6 7 Toolchains have been built with [https://github.com/2rm-robotics/robomap3-rt robomap3] project, based on poky. They package everything you need for flair. 8 9 __NOTE__: for sake of simplicity, the word compilation can be used in this documentation for both cross compilation and compilation 7 10 8 11 == Toolchain for x86_64 (mandatory) == … … 38 41 }}} 39 42 43 44 == Setup files == 45 46 Each toolchain install 2 important files needed for compilation: 47 * ''environment-setup-arch-poky-linux-gnueabi'': a script to source if you need to compile something manually, without CMake. For example ''/opt/robomap3/2.1.3/armv5te/environment-setup-armv5e-poky-linux-gnueabi'' 48 * ''toolchain.cmake'': a file used by CMake to get all information needed to compile with this toolchain. For example ''/opt/robomap3/2.1.3/armv5te/toolchain.cmake'' 49 50 The first one can be used to compile a kernel for example. The second one is needed for each CMake project, but is automatically used by the [wiki:compile_all#Helperscripts helper scripts], so you should not have to bother with it, unless you want to build a CMake project not in the flair build system. 51 40 52 == Environment variable == 41 53 … … 44 56 $ source ~/.bashrc 45 57 }}} 58 59 These variables are: 60 * ''OECORE_CMAKE_TOOLCHAINS'': a list of installed toolchains (for example ''core2_64 armv7a_neon armv5te'') 61 * ''OECORE_CMAKE_arch_TOOLCHAIN'': where ''arch'' is from the previous list (for example ''OECORE_CMAKE_CORE2_64_TOOLCHAIN''). Location of the ''toolchain.cmake'' file for a specific architecture 62 * ''OECORE_HOST_SYSROOT'': used by ground control station to retrieve maps provider plugins (for gps) 63 * ''OECORE_HOST_NATIVE_SYSROOT'': used to retrieve host's cmake and doxygen tools. 46 64 47 65 == Installation des drivers graphiques (maybe deprecated) ==