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, 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
Keep in mind that it is preferable to not run your EEROS application with sudo. This can lead to problems when working together with ROS. sudo is necessary when the executor tries to alter scheduling parameters or when certain device file such as /dev/mouse or /dev/ttyUSB0 must be accessed. Follow directions given in Test your Realtime System or Reading from a Mouse / Keyboard / XBox Controller / Space Navigator to avoid running your program with sudo.
Keep in mind that if you have built EEROS with ROS support, you have to source the setup script before running any EEROS application as given in Preparations and Building EEROS with ROS Support.
Examples
Running your Example Application
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 your EEROS application as follows:
$ cd ~/eeros-project/hello/build-x86 $ ./helloworld
No root privileges and no other libraries are necessary.
Running the Built-in Examples
If you want to run the built-in examples of EEROS
$ cd ~/eeros-project/eeros/build-x86 $ ./examples/logger/loggerTest
Continue with having a closer look at the examples in EEROS as described in Tutorials.