getting_started:write_app:use_on_bbb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
getting_started:write_app:use_on_bbb [2021/03/24 08:03] – [Using Existing Project] ursgraf | getting_started:write_app:use_on_bbb [2023/04/12 11:37] – [Use Existing Project] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Writing EEROS Applications for Beaglebone Blue Board ====== | ====== Writing EEROS Applications for Beaglebone Blue Board ====== | ||
+ | Back to [[getting_started: | ||
+ | |||
+ | 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:// | ||
- | Fetch the [[https:// | ||
- | < | ||
- | $ git clone https:// | ||
- | $ cd bbblue | ||
- | $ git checkout sdk_bbb | ||
- | </ | ||
What do you want to do next? | What do you want to do next? | ||
* [[getting_started: | * [[getting_started: | ||
- | * [[getting_started: | + | * [[getting_started: |
===== Say Hello with EEROS ===== | ===== Say Hello with EEROS ===== | ||
- | - Edit the file '' | + | |
- | custom_application=hello | + | |
- | </ | + | |
- Create a project directory and change into it with < | - Create a project directory and change into it with < | ||
$ mkdir hello | $ mkdir hello | ||
Line 37: | Line 32: | ||
</ | </ | ||
- Create a text file " | - Create a text file " | ||
- | cmake_minimum_required(VERSION 3.5.1) | + | cmake_minimum_required(VERSION 3.10) |
project(helloworld) | project(helloworld) | ||
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) | ||
- | target_link_libraries(helloworld eeros ucl ${CMAKE_DL_LIBS}) | + | target_link_libraries(helloworld |
</ | </ | ||
- | - Change back into your parent | + | - Create a build directory and change into it with < |
- | $ cd .. | + | $ mkdir build-armhf |
- | $ ./make.sh | + | $ cd build-armhf |
+ | </ | ||
+ | - Build the project with < | ||
+ | $ cmake .. | ||
+ | $ make | ||
</ | </ | ||
+ | - Make changes to " | ||
+ | $ make | ||
+ | </ | ||
Continue with [[getting_started: | Continue with [[getting_started: | ||
- | ===== Using Existing Project ===== | + | ===== Use Existing Project ===== |
As an example we use the [[getting_started: | As an example we use the [[getting_started: | ||
+ | - Clone the code for the [[https:// | ||
+ | $ git clone https:// | ||
+ | $ cd eeros-project | ||
+ | $ git checkout sdk_bbb | ||
+ | </ | ||
- Edit the file '' | - Edit the file '' | ||
custom_application=simple-motor-control | custom_application=simple-motor-control | ||
</ | </ | ||
- | - | + | - Fetch the code of the application with < |
- | < | + | $ ./clone.sh |
- | environment_setup_script=/opt/ntb-distro/1.0/environment-setup-armv7at2hf-neon-poky-linux-gnueabi | + | </code> |
+ | | ||
+ | $ ./make.sh | ||
</ | </ | ||
- | This will guide your make script to use the SDK. Make sure that the above path matches your installation path. | ||
- | |||
- | |||
- | |||
+ | Continue with [[getting_started: |
getting_started/write_app/use_on_bbb.txt · Last modified: 2024/06/13 13:55 by ursgraf