getting_started:compile_eeros_host
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
getting_started:compile_eeros_host [2021/03/17 14:12] – created ursgraf | getting_started:compile_eeros_host [2024/11/15 09:42] (current) – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compile on the Host ====== | ====== Compile on the Host ====== | ||
+ | Back to [[getting_started: | ||
- | ===== Compile Using a Script ===== | + | Fetch the [[https:// |
- | As mentioned in [[getting_started:install_and_setup_development_environment# | + | $ git clone https:// |
- | < | + | $ cd eeros-project |
- | install_dir=" | + | $ git checkout host |
- | build_dir=" | + | |
</ | </ | ||
- | + | Edit the '' | |
- | If you use ROS you have to make sure to take necessary steps as given in [[getting_started: | + | |
- | After this you proceed with | + | |
< | < | ||
- | $ ./make.sh | + | use_simulator=true |
+ | use_can=false | ||
+ | use_comedi=false | ||
+ | use_ros=false | ||
+ | use_ros2=false | ||
</ | </ | ||
- | This will put all the executables into the build directory | + | This will build EEROS without |
+ | < | ||
+ | use_simulator=true | ||
+ | use_can=false | ||
+ | use_comedi=false | ||
+ | use_ros=false | ||
+ | use_ros2=true | ||
- | Continue with [[getting_started: | + | ros_setup_script=/ |
+ | </ | ||
+ | The last line must point to your ROS installation path. In general this will be ''/ | ||
+ | If you want to use ROS1, change the '' | ||
+ | < | ||
+ | use_simulator=true | ||
+ | use_can=false | ||
+ | use_comedi=false | ||
+ | use_ros=true | ||
+ | use_ros2=false | ||
+ | ros_setup_script=/ | ||
+ | </ | ||
+ | Further, when using ROS1, search for the line < | ||
+ | and change it into < | ||
- | ===== Compile Manually in Terminal ===== | + | If you want to use EEROS with a CAN bus change the '' |
- | Compile and install EEROS to a custom folder as follows: | + | |
< | < | ||
- | $ cd path/ | + | use_simulator=false |
- | $ mkdir build-eeros-x86-64 | + | use_can=true |
- | $ cd build-eeros-x86-64 | + | use_comedi=false |
- | $ cmake -DCMAKE_INSTALL_PREFIX=/ | + | use_ros=false |
- | $ make | + | use_ros2=false |
- | $ make install | + | |
</ | </ | ||
- | If your target architectur | + | |
- | Per default, debug information will be included in the code. For maximum efficiency make sure to change the 4th line to: | + | [[http:// |
+ | If you want to use EEROS with [[http://www.comedi.org/ | ||
< | < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/ | + | use_simulator=true |
+ | use_can=false | ||
+ | use_comedi=true | ||
+ | use_ros=false | ||
+ | use_ros2=false | ||
+ | </code> | ||
+ | |||
+ | Now you can run the '' | ||
+ | < | ||
+ | $ ./clone.sh | ||
</ | </ | ||
- | We recommend to not install | + | After having downloaded the code you can now compile |
< | < | ||
- | $ make install | + | install_dir=" |
+ | build_dir=" | ||
</ | </ | ||
- | 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 | + | Change this setting if you want to choose different build and install directories. |
+ | |||
+ | After this you proceed | ||
< | < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=/absolute/ | + | $ ./make.sh |
</ | </ | ||
- | As soon as you access dedicated hardware on your system | + | This will put all the executables into the build directory |
+ | |||
+ | Continue with [[getting_started:write_app:use_on_host|]]. | ||
+ | |||
+ | |||
+ |
getting_started/compile_eeros_host.1615986765.txt.gz · Last modified: 2021/03/17 14:12 by ursgraf