getting_started:write_app:use_on_host
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_host [2022/03/03 16:39] – [Use Existing Project] ursgraf | getting_started:write_app:use_on_host [2024/11/07 12:25] (current) – [Say Hello with EEROS] ursgraf | ||
---|---|---|---|
Line 32: | 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) | ||
Line 38: | Line 38: | ||
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 for your new project and change into it with < | - Create a build directory for your new project and change into it with < | ||
- | $ mkdir ../build-x86/hello | + | $ mkdir build-x86 |
- | $ cd ../build-x86/hello | + | $ cd build-x86 |
</ | </ | ||
- Build the project with < | - Build the project with < | ||
Line 60: | Line 60: | ||
- Fetch the code of the application from within your EEROS project directory with < | - Fetch the code of the application from within your EEROS project directory with < | ||
$ git clone https:// | $ git clone https:// | ||
+ | $ cd simple-motor-control | ||
</ | </ | ||
- Create a build directory for your new project and change into it with < | - Create a build directory for your new project and change into it with < | ||
- | $ mkdir build-x86/ | + | $ mkdir build-x86 |
- | $ cd build-x86/ | + | $ cd build-x86 |
</ | </ | ||
- Build the project with < | - Build the project with < | ||
- | $ cmake -DCMAKE_INSTALL_PREFIX=../ | + | $ cmake -DCMAKE_INSTALL_PREFIX=../ |
$ make | $ make | ||
</ | </ |
getting_started/write_app/use_on_host.1646321958.txt.gz · Last modified: 2022/03/03 16:39 by ursgraf