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 [2023/04/12 15:45] (current) – [Use Existing Project] ursgraf | ||
---|---|---|---|
Line 36: | Line 36: | ||
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 60: | ||
===== 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 and change into the directory |
- | $ git clone https:// | + | $ git clone https:// |
- | $ cd eeros-project | + | $ cd simple-motor-control |
- | $ git checkout sdk_bbb | + | |
</ | </ | ||
- | - 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.1681289690.txt.gz · Last modified: 2023/04/12 10:54 by ursgraf