getting_started:compile_eeros
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
getting_started:compile_eeros [2019/04/25 11:39] – [Compile Using a Script] graf | getting_started:compile_eeros [2021/02/12 17:09] – [Compile Using a Script] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Compile | + | ====== Compile ====== |
- | There are very often two versions of EEROS, because the host and the target usually don't have the same architecture. Therefore, it is recommended that EEROS is not globally installed. EEROS can be installed to a custom folder by setting the CMake variable CMAKE_INSTALL_PREFIX. | ||
===== Compile Using a Script ===== | ===== Compile Using a Script ===== | ||
- | As mentioned in [[getting_started: | + | As mentioned in [[getting_started: |
+ | < | ||
+ | install_dir=" | ||
+ | build_dir=" | ||
+ | </ | ||
+ | If you use ROS you have to make sure to take necessary steps as given in [[getting_started: | ||
+ | After this you proceed with | ||
< | < | ||
$ ./make.sh | $ ./make.sh | ||
</ | </ | ||
- | This will put all the executables into the build directory you have chosen and the compiled libraries together with the header files into the install directory. | + | This will put all the executables into the build directory you have chosen and the compiled libraries together with the header files into the install directory. Please keep in mind that build and install directory are both defined in '' |
+ | Continue with [[getting_started: | ||
- | ===== Compile in terminal | + | |
- | Compile and install EEROS to a custom folder: | + | ===== Compile |
+ | Compile and install EEROS to a custom folder | ||
< | < | ||
$ cd path/ | $ cd path/ | ||
Line 24: | Line 32: | ||
$ make install | $ make install | ||
</ | </ | ||
+ | If your target architectur is different from the host platform you have to use a //tool chain file//. For more information see above [[getting_started: | ||
Per default, debug information will be included in the code. For maximum efficiency make sure to change the 4th line to: | Per default, debug information will be included in the code. For maximum efficiency make sure to change the 4th line to: | ||
< | < | ||
Line 31: | Line 39: | ||
- | We recommend to not install EEROS globally on your system. However, if you want to install | + | We recommend to not install EEROS globally on your system. However, if you want to install |
< | < | ||
- | $ mkdir build | + | $ make install |
- | $ cd build | + | </ |
- | $ cmake .. | + | The reason for not installing EEROS globally is that you might need two or even more versions as soon as you compile for various target architectures. For this purpose we will install various versions into custom folders named after the target architecture by setting the CMake variable CMAKE_INSTALL_PREFIX with |
- | $ make | + | < |
- | # make install | + | $ cmake -DCMAKE_INSTALL_PREFIX=/ |
</ | </ | ||
- | The reason for not installing EEROS globally is that you might need two or even more versions of EEROS as soon as you compile for various target architectures. For this purpose we will install various versions of EEROS into custom folders named after the target architecture by setting the CMake variable CMAKE_INSTALL_PREFIX. | ||
- | As soon as you access dedicated hardware on your system you have to install one of the [[getting_started:install_wrapper|]]. | + | As soon as you access dedicated hardware on your system you have to install one of the [[eeros_architecture:hal: |