User Tools

Site Tools


getting_started:write_app:use_on_bbb

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
Last revisionBoth sides next revision
getting_started:write_app:use_on_bbb [2023/04/12 10:56] ursgrafgetting_started:write_app:use_on_bbb [2024/06/13 08:43] – [Writing EEROS Applications for Beaglebone Blue Board] ursgraf
Line 4: Line 4:
 You will use C++ to develop your EEROS applications. For this you need at least some knowledge of the basic language features. A good starting point might be [[https://www.cplusplus.com/doc/tutorial/]]. Minimal help can also be found under [[tools:cplusplus|]]. You will use C++ to develop your EEROS applications. For this you need at least some knowledge of the basic language features. A good starting point might be [[https://www.cplusplus.com/doc/tutorial/]]. Minimal help can also be found under [[tools:cplusplus|]].
  
 +All the necessary libraries are already on our images, notably eeros, librobotcontrol and bbblue-eeros.
 What do you want to do next? What do you want to do next?
  
Line 36: Line 37:
  
 set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)
- 
 find_package(EEROS REQUIRED) find_package(EEROS REQUIRED)
-include_directories(${EEROS_INCLUDE_DIR}) 
-link_directories(${EEROS_LIB_DIR}) 
  
 add_executable(helloworld main.cpp) add_executable(helloworld main.cpp)
Line 48: Line 46:
 $ cd build-armhf  $ cd build-armhf 
 </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>
 +$ . ~/ost-devel/1.0/environment-setup-cortexa8hf-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>   - Build the project with <code>
 $ cmake .. $ cmake ..
Line 60: Line 61:
 ===== 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.
-  - Fetch the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]] on your host and checkout the branch for the Beaglebone Blue <code> +  - Clone the code for the project and change into the directory <code> 
-$ git clone https://github.com/eeros-project/eeros-build-scripts.git eeros-project +$ git clone https://github.com/eeros-project/simple-motor-control.git 
-$ cd eeros-project +$ cd simple-motor-control
-$ git checkout sdk_bbb+
 </code> </code>
-  - Edit the file ''config.sh.in'' as follows <code> +  - Create a build directory and change into it with <code> 
-custom_application=simple-motor-control+$ mkdir build-armhf 
 +$ cd build-armhf 
 </code> </code>
-  - Fetch the code of the application 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> 
-$ ./clone.sh +$ . ~/ost-devel/1.0/environment-setup-cortexa8hf-neon-poky-linux-gnueabi 
-</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> 
-  - Build the project with <code> +cmake -DUSE_BBBLUE=TRUE .. 
-$ ./make.sh+$ make
 </code> </code>
  
 Continue with [[getting_started:deploy:deploy_bbb|]]. Continue with [[getting_started:deploy:deploy_bbb|]].
getting_started/write_app/use_on_bbb.txt · Last modified: 2024/06/13 13:55 by ursgraf