====== Compile on the Host ====== Back to [[getting_started:install:use_on_host|]]. Fetch the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]] on your host and checkout the branch for the host $ git clone https://github.com/eeros-project/eeros-build-scripts.git eeros-project $ cd eeros-project $ git checkout host Edit the ''config.sh.in'' file as follows use_simulator=true use_can=false use_comedi=false use_ros=false use_ros2=false This will build EEROS without the ROS and CAN examples but together with the simulator. If you have ROS2 installed and want to build the ROS examples, change the ''config.sh.in'' to use_simulator=true use_can=false use_comedi=false use_ros=false use_ros2=true ros_setup_script=/opt/ros/humble/setup.bash The last line must point to your ROS installation path. In general this will be ''/opt/ros/$ros_version_name/setup.bash''. If you want to use ROS1, change the ''config.sh.in'' to use_simulator=true use_can=false use_comedi=false use_ros=true use_ros2=false ros_setup_script=/opt/ros/noetic/setup.bash Further, when using ROS1, search for the line ros_eeros_git_version=v2.0.1 and change it into ros_eeros_git_version=v1.0.1 If you want to use EEROS with a CAN bus change the ''config.sh.in'' to use_simulator=false use_can=true use_comedi=false use_ros=false use_ros2=false [[http://www.comedi.org/|comedi]] stands for linux control and measurement device interface. It is a collection of drivers for a variety of common data acquisition plug-in boards on the host. If you want to use EEROS with [[http://www.comedi.org/|]] you have to install comedi first, see [[http://www.comedi.org/]]. Then change the ''config.sh.in'' to use_simulator=true use_can=false use_comedi=true use_ros=false use_ros2=false Now you can run the ''clone'' script $ ./clone.sh After having downloaded the code you can now compile EEROS together with necessary libraries. The build and install directories are set in ''config.sh.in'' as follows install_dir="$wd"/install-x86 build_dir="$wd"/build-x86 Change this setting if you want to choose different build and install directories. 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 [[getting_started:write_app:use_on_host|]].