User Tools

Site Tools


getting_started:compile_eeros_sdk

This is an old revision of the document!


Compile using the SDK

Compile Using a Script

As mentioned in Installation and Setup we suggest to use a script. After having downloaded the code you can now compile EEROS, all necessary hardware libraries, and your application program. Set the build and install directories to meaningful names. E.g. if you develop on a x86 platform for an ARM platform, edit config.sh.in as follows

install_dir="$wd"/install-armhf 
build_dir="$wd"/build-armhf 

If you use ROS you have to make sure to take necessary steps as given in Preparations and Building, notably you have to run the setup.bash script of ROS.
After this you proceed with

$ ./make.sh

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 config.sh.in.

Continue with Deploying.

Compile Manually in Terminal

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 architectur is different from the host platform you have to use a tool chain file. For more information see above Compile Using a Script.
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_sdk.1615987224.txt.gz · Last modified: 2021/03/17 14:20 by ursgraf