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
getting_started:compile_eeros [2017/06/22 08:52] – [Compile with KDevelop] grafgetting_started:compile_eeros [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Compile EEROS ====== 
- 
-There are very often two versions of EEROS, because the host and the target usually don't have the same architecture. Therefore, it is recommended that EEROS is not globally installed. EEROS can be installed to a custom folder by setting the CMake variable CMAKE_INSTALL_PREFIX. 
- 
-===== Compile Using a Script ===== 
-As mentioned in [[getting_started:install_and_setup_development_environment#Getting_the_Sources_with_a_script|Installation and Setup]] we suggest to use a script. After customizing the ''config.sh.in'' file and getting the code you can compile EEROS, all necessary hardware libraries, and your application by executing 
- 
-<code> 
-$ ./make.sh 
-</code> 
- 
-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.  
- 
- 
- 
-===== Compile in terminal ===== 
- 
-Clone the EEROS source repository: 
-<code> 
-$ cd path/to/working/directory 
-$ git clone https://github.com/eeros-project/eeros-framework.git 
-</code> 
- 
-Checkout a stable version of EEROS: 
-<code> 
-$ cd eeros-framework 
-$ git checkout v0.5 
-</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: 
-<code> 
-$ cd path/to/working/directory 
-$ mkdir build-eeros-x86-64 
-$ cd build-eeros-x86-64 
-$ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 .. 
-$ make 
-$ 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>