getting_started:compile_eeros_man
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:compile_eeros_man [2021/03/24 16:14] – ursgraf | getting_started:compile_eeros_man [2021/10/24 11:46] (current) – [Compile Additional Libraries] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compile Manually ====== | ====== Compile Manually ====== | ||
+ | Back to [[getting_started: | ||
- | Compile and install EEROS to a custom folder | + | Compile and install EEROS for the host as follows: |
< | < | ||
- | $ cd path/ | + | $ mkdir build-x86 |
- | $ mkdir build-eeros-x86-64 | + | $ cd build-x86 |
- | $ cd build-eeros-x86-64 | + | $ mkdir eeros |
- | $ cmake -DCMAKE_INSTALL_PREFIX=/ | + | $ cd eeros |
+ | $ cmake -DCMAKE_INSTALL_PREFIX=../../ | ||
$ make | $ make | ||
$ make install | $ make install | ||
</ | </ | ||
- | If your target architecture is different from the host platform | + | If your target architecture is different from the host platform |
- | 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 cmake command | ||
< | < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=/ | + | $ cmake -DCMAKE_INSTALL_PREFIX=../../ |
</ | </ | ||
- | We recommend to not install EEROS globally | + | ===== Compile Hardware Wrapper Libraries ===== |
+ | |||
+ | As soon as you access dedicated hardware | ||
< | < | ||
+ | $ git clone https:// | ||
+ | </ | ||
+ | |||
+ | Build and install it | ||
+ | < | ||
+ | $ 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 | + | |
+ | 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 | ||
< | < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=/ | + | $ cmake -DCMAKE_INSTALL_PREFIX=../../ |
</ | </ | ||
+ | when using the CANOpen library. These will also compile the EEROS examples which demonstrate the use of CAN. | ||
- | As soon as you access dedicated hardware on your system you have to install one of the [[eeros_architecture: |
getting_started/compile_eeros_man.1616598851.txt.gz · Last modified: 2021/03/24 16:14 by ursgraf