User Tools

Site Tools


getting_started:write_app:use_on_cb20

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:write_app:use_on_cb20 [2024/06/13 13:54] – [Use Existing Project] ursgrafgetting_started:write_app:use_on_cb20 [2026/05/13 15:08] (current) – [Use Existing Project] ursgraf
Line 39: Line 39:
  
 add_executable(helloworld main.cpp) add_executable(helloworld main.cpp)
-target_link_libraries(helloworld PRIVATE eeros)+target_link_libraries(helloworld PRIVATE EEROS::eeros)
 </code>  </code> 
   - Create a build directory and change into it with <code>   - Create a build directory and change into it with <code>
Line 46: Line 46:
 </code> </code>
   - Source the script for the SDK which has been installed in [[getting_started:install:use_on_bbb#Install_SDK_on_the_Host|Install SDK on the Host]] with <code>   - Source the script for the SDK which has been installed in [[getting_started:install:use_on_bbb#Install_SDK_on_the_Host|Install SDK on the Host]] with <code>
-$ . ~/ost-devel/tdx-xmayland/5.1.0/environment-setup-armv7at2hf-neon-tdx-linux-gnueabi+$ . /opt/ost-devel/1.0/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi
 </code> This step has to be done only once. However, you have to repeat it as soon as you open another shell. </code> This step has to be done only once. However, you have to repeat it as soon as you open another shell.
   - Build the project with <code>   - Build the project with <code>
Line 60: Line 60:
 ===== Use Existing Project ===== ===== Use Existing Project =====
 As an example we use the [[getting_started:tutorials:oneaxis|]] demo program. As an example we use the [[getting_started:tutorials:oneaxis|]] demo program.
-  - Clone the code for the project and change into the directory <code>+  - Clone the code for the projectchange into the directory and checkout a stable version with<code>
 $ git clone https://github.com/eeros-project/simple-motor-control.git $ git clone https://github.com/eeros-project/simple-motor-control.git
 $ cd simple-motor-control $ cd simple-motor-control
 +$ git checkout v1.0.1
 </code> </code>
-  - Create a build directorychange into it and checkout a stable version with <code>+  - Create a build directory and change into it with <code>
 $ mkdir build-armhf $ mkdir build-armhf
 $ cd build-armhf  $ cd build-armhf 
-$ git checkout v1.0.0 
 </code> </code>
   - Source the script for the SDK which has been installed in [[getting_started:install:use_on_bbb#Install_SDK_on_the_Host|Install SDK on the Host]] with <code>   - Source the script for the SDK which has been installed in [[getting_started:install:use_on_bbb#Install_SDK_on_the_Host|Install SDK on the Host]] with <code>
-$ . ~/ost-devel/tdx-xmayland/5.1.0/environment-setup-armv7at2hf-neon-tdx-linux-gnueabi +$ . /opt/ost-devel/1.0/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi 
-</code> This step has to be done only once. However, you have to repeat it as soon as you open another shell.  - Build the project with <code>+</code> This step has to be done only once. However, you have to repeat it as soon as you open another shell. 
 +  - Build the project with <code>
 $ cmake -DUSE_FLINK=TRUE .. $ cmake -DUSE_FLINK=TRUE ..
 $ make $ make
getting_started/write_app/use_on_cb20.1718279642.txt.gz · Last modified: by ursgraf