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.
As mentioned in Installation and Setup we suggest to use a script. After customizing the
config.sh.in file and getting the code you can compile EEROS, all necessary hardware libraries, and your application by executing
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. If you don't have an application yet, please comment the last two lines out.
Compile and install EEROS to a custom folder:
$ 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
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 EEROS globally you have to execute the following commands:
$ mkdir build $ cd build $ cmake .. $ make # make install
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 Installing Hardware Libraries.