User Tools

Site Tools


getting_started:say_hello

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
getting_started:say_hello [2019/04/24 21:55] – [Test Program] grafgetting_started:say_hello [2019/10/14 10:09] – [Run the Hello World Program] graf
Line 1: Line 1:
 ====== Say Hello with EEROS ====== ====== Say Hello with EEROS ======
 +In order to be able to write your own EEROS programs or alter existing example applications, you could use any text editor and use the ''make.sh'' script on the command line. However, we recommend to use an integrated development environment. 
  
 ===== Preparation ===== ===== Preparation =====
Line 34: Line 35:
 } }
 </code> </code>
-  - Open CMakeLists.txt file, delete the text written on it and copy/paste the following into it: <code cpp> +  - Open CMakeLists.txt file, delete the text written in it and copy/paste the following into it: <code cpp> 
-cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.5.1)
- +
 project(test-project) project(test-project)
- + 
 +set(CMAKE_CXX_STANDARD 14) 
 find_package(EEROS REQUIRED) find_package(EEROS REQUIRED)
 include_directories(${EEROS_INCLUDE_DIR};${EEROS_LIBUCL_INCLUDE_DIR}) include_directories(${EEROS_INCLUDE_DIR};${EEROS_LIBUCL_INCLUDE_DIR})
 link_directories(${EEROS_LIB_DIR};${EEROS_LIBUCL_LINK_DIR}) link_directories(${EEROS_LIB_DIR};${EEROS_LIBUCL_LINK_DIR})
-  +
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11"+
- +
 add_executable(test-project main.cpp) add_executable(test-project main.cpp)
 target_link_libraries(test-project eeros ucl ${CMAKE_DL_LIBS}) target_link_libraries(test-project eeros ucl ${CMAKE_DL_LIBS})
Line 54: Line 54:
   - Open a terminal   - Open a terminal
   - Navigate to the build folder of your project (e.g. cd /home/abajric/work/build-test-project-x86-64)   - Navigate to the build folder of your project (e.g. cd /home/abajric/work/build-test-project-x86-64)
-  - Run the program with the command: ./testproject+  - Run the program with the command: ./test-project
  
 {{ :getting_started:tutorials:hello.png?800 |}} {{ :getting_started:tutorials:hello.png?800 |}}