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/02/24 11:04] – [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) | ||
- | |||
- | 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 |
</ | </ | ||
- 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 53: | Line 49: | ||
</ | </ | ||
- Make changes to " | - Make changes to " | ||
- | $ ./make.sh | + | $ make |
</ | </ | ||
Line 62: | Line 58: | ||
As an example we use the [[getting_started: | As an example we use the [[getting_started: | ||
- | - Fetch the code of the application from within your EEROS directory with < | + | - Fetch the code of the application from within your EEROS project |
$ 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.1645697097.txt.gz · Last modified: 2022/02/24 11:04 by ursgraf