User Tools

Site Tools


getting_started:compile_eeros_man

This is an old revision of the document!


Compile Manually

Compile and install EEROS to a custom folder as follows:

$ cd path/to/working/directory
$ mkdir build-eeros-x86-64
$ cd build-eeros-x86-64
$ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 ..
$ make
$ make install

If your target architecture is different from the host platform you have to use a tool chain file or use a SDK. If your development architecture is different from your target architecture and you don't use a SDK, you have to specify a toolchain file as described in Host and Target. You can enter this file in the field “Extra Arguments” with DCMAKE_TOOLCHAIN_FILE=path/to/toolchain-file.cmake.

Per default, debug information will be included in the code. For maximum efficiency make sure to change the 4th line to:

$ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 -DCMAKE_BUILD_TYPE=Release ..

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:

$ 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=/absolute/path/to/working/directory/install-x86-64 ..

As soon as you access dedicated hardware on your system you have to install one of the Hardware Libraries. You do this

getting_started/compile_eeros_man.1616657602.txt.gz · Last modified: 2021/03/25 08:33 by ursgraf