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:54] – ursgraf | getting_started:write_app:use_on_bbb [2024/06/13 13:55] (current) – [Use Existing Project] 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 eeros) | ||
</ | </ | ||
- | - Change back into your parent | + | - Create a build directory and change into it with < |
- | $ cd .. | + | $ mkdir build-armhf |
- | $ ./make.sh | + | $ cd build-armhf |
+ | </ | ||
+ | - Source | ||
+ | $ . ~/ | ||
+ | </ | ||
+ | - Build the project with < | ||
+ | $ cmake .. | ||
+ | $ make | ||
</ | </ | ||
- Make changes to " | - Make changes to " | ||
- | $ ./make.sh | + | $ make |
</ | </ | ||
Line 56: | 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.txt · Last modified: 2024/06/13 13:55 by ursgraf