Changes between Version 20 and Version 21 of toolchain/install


Ignore:
Timestamp:
02/13/19 11:48:26 (5 years ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • toolchain/install

    v20 v21  
    1 = Installation des chaînes de compilation =
     1= Toolchains installation =
    22
    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.
     3A 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.
    54
    6 Les chaines ont été construites avec le projet [https://github.com/2rm-robotics/robomap3-rt robomap3].
     5All toolchains/cross toolchains only supports x86_64 hosts (32 bits hosts are not supported).
     6
     7Toolchains 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
    710
    811== Toolchain for x86_64 (mandatory) ==
     
    3841}}}
    3942
     43
     44== Setup files ==
     45
     46Each 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
     50The 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
    4052== Environment variable ==
    4153
     
    4456$ source ~/.bashrc
    4557}}}
     58
     59These 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.
    4664
    4765== Installation des drivers graphiques (maybe deprecated) ==