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 revision | ||
| getting_started:write_app:use_on_bbb [2023/04/12 10:56] – ursgraf | getting_started:write_app:use_on_bbb [2024/11/07 12:25] (current) – [Say Hello with EEROS] 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:// | 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:// | ||
| + | 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) | ||
| - | target_link_libraries(helloworld PRIVATE eeros) | + | target_link_libraries(helloworld PRIVATE |
| </ | </ | ||
| - Create a build directory and change into it with < | - Create a build directory and change into it with < | ||
| Line 48: | Line 46: | ||
| $ cd build-armhf | $ cd build-armhf | ||
| </ | </ | ||
| + | - Source the script for the SDK which has been installed in [[getting_started: | ||
| + | $ . ~/ | ||
| + | </ | ||
| - Build the project with < | - Build the project with < | ||
| $ cmake .. | $ cmake .. | ||
| Line 60: | Line 61: | ||
| ===== Use Existing Project ===== | ===== Use Existing Project ===== | ||
| As an example we use the [[getting_started: | As an example we use the [[getting_started: | ||
| - | - Fetch the [[https:// | + | - Clone the code for the project, change into the directory |
| - | $ git clone https:// | + | $ git clone https:// |
| - | $ cd eeros-project | + | $ cd simple-motor-control |
| - | $ git checkout | + | $ git checkout |
| </ | </ | ||
| - | - Edit the file '' | + | - Create a build directory and change into it with < |
| - | custom_application=simple-motor-control | + | $ mkdir build-armhf |
| + | $ cd build-armhf | ||
| </ | </ | ||
| - | - Fetch the code of the application | + | - Source |
| - | $ ./clone.sh | + | $ . ~/ost-devel/1.0/ |
| - | </ | + | </ |
| - | - Build the project with < | + | $ cmake -DUSE_BBBLUE=TRUE |
| - | $ ./make.sh | + | $ make |
| </ | </ | ||
| Continue with [[getting_started: | Continue with [[getting_started: | ||
getting_started/write_app/use_on_bbb.1681289816.txt.gz · Last modified: 2023/04/12 10:56 by ursgraf