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 [2019/10/14 10:03] – [Compile Using a Script] grafgetting_started:compile_eeros [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Compile EEROS ====== 
  
- 
-===== 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 having customized the ''config.sh.in'' file depending on your platform and having downloaded 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. Please keep in mind that build and install directory are both defined in ''config.sh.in''. 
- 
-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 Manually in Terminal ===== 
-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> 
- 
- 
-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> 
-$ make install 
-</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|]]. 
getting_started/compile_eeros.1571040191.txt.gz · Last modified: 2019/10/14 10:03 by graf