getting_started:say_hello
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
getting_started:say_hello [2019/10/15 08:43] – [Run the Hello World Program] graf | getting_started:say_hello [2021/02/12 17:16] – [Create a New Project] ursgraf | ||
---|---|---|---|
Line 14: | Line 14: | ||
- Choose Standard/ | - Choose Standard/ | ||
- Create the project by clicking Finish | - Create the project by clicking Finish | ||
- | - Create the build configuration. It is recommended to put the target architecture in the name of the build folder. Put the location where EEROS is installed in the " | + | - Create the build configuration. It is recommended to put the target architecture in the name of the build folder. Put the location where EEROS is installed in the " |
===== Test Program ===== | ===== Test Program ===== | ||
Line 26: | Line 25: | ||
using namespace eeros:: | using namespace eeros:: | ||
- | | + | |
- | Logger log; | + | Logger log = Logger:: |
- | log.set(w); | + | |
log.info() << " | log.info() << " | ||
Line 42: | Line 40: | ||
find_package(EEROS REQUIRED) | find_package(EEROS REQUIRED) | ||
- | include_directories(${EEROS_INCLUDE_DIR}; | + | include_directories(${EEROS_INCLUDE_DIR}) |
- | link_directories(${EEROS_LIB_DIR}; | + | link_directories(${EEROS_LIB_DIR}) |
add_executable(helloworld main.cpp) | add_executable(helloworld main.cpp) | ||
Line 57: | Line 55: | ||
- Run the program with the command: ./ | - Run the program with the command: ./ | ||
- | {{ : | + | {{ : |
- | ===== Use KDevelop with Existing Build Configuration ===== | ||
- | If you have previously built your application manually or with the aid of the [[getting_started: | ||
- | - Import the project by choosing the '' | ||
- | - Right click on the project and open the project configuration panel. | ||
- | - Choose the build directory of the previously built application as your build directory | ||
- | - Leave the entries for install directory, build type, and extra arguments empty. These settings will be fetched from the existing CMake configuration in your build directory. | ||
- | - Click '' | ||
- | - Build |