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/25 19:30] – ursgraf | getting_started:compile_eeros_man [2026/04/12 18:05] (current) – ursgraf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Compile Manually ====== | ====== Compile Manually ====== | ||
| + | |||
| + | Back to [[getting_started: | ||
| Compile and install EEROS for the host as follows: | Compile and install EEROS for the host as follows: | ||
| Line 18: | Line 20: | ||
| </ | </ | ||
| + | ==== Build Switches ==== | ||
| + | You can use the following switches to build the EEROS library according to your needs. | ||
| + | * LIB_ONLY_BUILD=True (default False) only build library, no tools or examples | ||
| + | * BUILD_EXAMPLES=False (default True) do not build examples | ||
| + | * BUILD_TOOLS=False (default True) do not build tools | ||
| + | * USE_TESTS=True (default False) build tests | ||
| + | ===== 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 it | ||
| + | < | ||
| + | $ cd build-x86 | ||
| + | $ mkdir sim-eeros | ||
| + | $ cd sim-eeros | ||
| + | $ cmake -DCMAKE_INSTALL_PREFIX=../ | ||
| + | $ make | ||
| + | $ make 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 these libraries first. Then you must build EEROS with some additional switches so that when building EEROS these libraries will be found and linked. Change the cmake command as follows | ||
| + | < | ||
| + | $ 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.1616697045.txt.gz · Last modified: by ursgraf
