User Tools

Site Tools


getting_started:compile_eeros

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
getting_started:compile_eeros [2017/06/22 08:52] – [Compile with KDevelop] grafgetting_started:compile_eeros [2019/10/12 19:47] – [Compile Manually in Terminal] graf
Line 12: Line 12:
 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.  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. 
  
 +Next, if you are running EEROS on the host machine you can go to the first example [[getting_started:say_hello|]]. If you do a cross development on a host and are using it on a target platform you have to [[getting_started:deploy|]] it first.
  
  
-===== Compile in terminal ===== 
  
-Clone the EEROS source repository:+===== Compile Manually in Terminal ===== 
 +Compile and install EEROS to a custom folder:
 <code> <code>
-cd path/to/working/directory +make install
-$ git clone https://github.com/eeros-project/eeros-framework.git+
 </code> </code>
  
-Checkout a stable version of EEROS:+Per default, debug information will be included in the code. For maximum efficiency make sure to change the 4th line to:
 <code> <code>
-cd eeros-framework +cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 -DCMAKE_BUILD_TYPE=Release ..
-$ git checkout v0.5+
 </code> </code>
  
-Tags in the format vX.Y are stable releases. To show all tags execute the following command: 
-<code> 
-$ git tag 
-</code> 
  
-Compile and install EEROS to a custom folder:+We recommend to not install EEROS globally on your system. However, if you want to install EEROS globally you have to execute the following commands:
 <code> <code>
-$ cd path/to/working/directory +$ mkdir build 
-$ mkdir build-eeros-x86-64 +$ cd build 
-$ cd build-eeros-x86-64 +$ cmake ..
-$ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 ..+
 $ make $ make
-make install +make install
-</code> +
- +
-Per default, debug information will be included in the code. For maximum efficiency make sure to change the 4th line to: +
-<code> +
-$ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 -DCMAKE_BUILD_TYPE=Release ..+
 </code> </code>
 +The reason for not installing EEROS globally is that you might need two or even more versions of EEROS as soon as you compile for various target architectures. For this purpose we will install various versions of EEROS into custom folders named after the target architecture by setting the CMake variable CMAKE_INSTALL_PREFIX. 
  
 +As soon as you access dedicated hardware on your system you have to install one of the [[eeros_architecture:hal:hardware_libraries|]].