User Tools

Site Tools


getting_started:deploy:deploy_host

This is an old revision of the document!


Working on the Host

If you are running EEROS on the host machine you can omit deploying to a target machine. However, you have to make sure that the necessary libraries can be found at runtime. We suggest not to install these libraries into your default installation directory. We recommend that you add the directory with your compiled library to your library path with

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/absolute/path/to/compiled/lib/

To give an example: If you compiled EEROS together with the simulator wrapper library and installed them locally into /home/you/work/eeros-project/install-x86/ you extend your path with

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/you/work/eeros-project/install-x86/lib/

Please keep in mind that this path setting is valid for the current shell. As soon as you start a new shell, you have to repeat the step.
There is one more difficulty. If you start your application with sudo, as you often have to do, you must prepend the call with

$ sudo LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ./yourExample

Alternatively, you could could use

$ sudo LD_LIBRARY_PATH=/home/you/work/eeros-project/install-x86/lib/ ./yourExample

Examples

If you have followed the instructions given in Use on the Host, Compile on the Host and Writing EEROS Applications for the Host you can call the examples as follows:

$ sudo LD_LIBRARY_PATH=~/eeros-project/install-x86/lib/ ./yourExample

Continue with the first example say_hello or use the examples in EEROS as described in Tutorials.

getting_started/deploy/deploy_host.1616666616.txt.gz · Last modified: 2021/03/25 11:03 by ursgraf