getting_started:compile_eeros_man
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_man [2021/03/17 14:16] – [Compile] ursgraf | getting_started:compile_eeros_man [2021/10/24 11:43] – [Compile Hardware Wrapper Libraries] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compile Manually ====== | ====== Compile Manually ====== | ||
+ | Back to [[getting_started: | ||
- | ===== Compile | + | Compile and install |
- | As mentioned in [[getting_started: | + | |
< | < | ||
- | install_dir=" | + | $ mkdir build-x86 |
- | build_dir=" | + | $ cd build-x86 |
+ | $ mkdir eeros | ||
+ | $ cd eeros | ||
+ | $ cmake -DCMAKE_INSTALL_PREFIX=../ | ||
+ | $ make | ||
+ | $ make install | ||
</ | </ | ||
+ | If your target architecture is different from the host platform we suggest to use a SDK. If you don't use a SDK, you have to specify a toolchain file with as given in [[getting_started: | ||
- | + | Per default, debug information will be included in the code. For maximum efficiency | |
- | If you use ROS you have to make sure to take necessary steps as given in [[getting_started:ros# | + | |
- | After this you proceed with | + | |
< | < | ||
- | $ ./make.sh | + | $ cmake -DCMAKE_INSTALL_PREFIX=../../ |
</ | </ | ||
- | 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 Hardware Wrapper Libraries ===== |
+ | As soon as you access dedicated hardware on your system you have to install one of the [[eeros_architecture: | ||
+ | < | ||
+ | $ git clone https:// | ||
+ | </ | ||
- | + | Build and install | |
- | ===== Compile Manually in Terminal ===== | + | |
- | Compile | + | |
< | < | ||
- | $ cd path/ | + | $ cd build-x86 |
- | $ mkdir build-eeros-x86-64 | + | $ mkdir sim-eeros |
- | $ cd build-eeros-x86-64 | + | $ cd sim-eeros |
- | $ cmake -DCMAKE_INSTALL_PREFIX=/ | + | $ cmake -DCMAKE_INSTALL_PREFIX=../../ |
$ make | $ make | ||
$ 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 | + | Continue with [[getting_started: |
+ | |||
+ | ===== Compile Additional Libraries ===== | ||
+ | |||
+ | Some blocks of the control system use further libraries such as CANOpen, LibUSB, MODBUS and so on. You have to fetch, make and install these libraries first. Then you must build EEROS with some additional switches so that when building EEROS these libraries | ||
< | < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/ | + | $ git clone https://github.com/eeros-project/sim-eeros.git sim-eeros |
</ | </ | ||
- | + | Build and install it | |
- | We recommend to not install EEROS globally on your system. However, if you want to install it globally you have to execute the following commands: | + | |
< | < | ||
+ | $ cd build-x86 | ||
+ | $ mkdir sim-eeros | ||
+ | $ cd sim-eeros | ||
+ | $ cmake -DCMAKE_INSTALL_PREFIX=../ | ||
+ | $ make | ||
$ make install | $ make install | ||
</ | </ | ||
- | 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 | ||
- | < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=/ | ||
- | </ | ||
- | As soon as you access dedicated hardware on your system you have to install one of the [[eeros_architecture:hal:hardware_libraries|]]. You do this | + | Continue with [[getting_started:deploy:deploy_manually|]]. |
getting_started/compile_eeros_man.txt · Last modified: 2021/10/24 11:46 by ursgraf