application
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| application [2019/04/03 09:13] – fink | application [2019/07/09 14:56] (current) – removed graf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======== Write your own application ======== | ||
| - | As descriped in [[http:// | ||
| - | - Start KDevelop | ||
| - | - Project -> Open/Import project | ||
| - | - Navigate to the BeagleBoneBlue/ | ||
| - | Now you have the main.cpp, CMakeLists.txt and the HwConfigBBBlue.json file in your project solution. \\ | ||
| - | Copy the following code into main.cpp | ||
| - | < | ||
| - | #include < | ||
| - | #include < | ||
| - | #include < | ||
| - | |||
| - | int main() { | ||
| - | using namespace eeros:: | ||
| - | |||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | | ||
| - | |||
| - | | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | Open CMakeLists.txt file, and copy the following code | ||
| - | < | ||
| - | cmake_minimum_required(VERSION 2.8) | ||
| - | |||
| - | project(test-project) | ||
| - | |||
| - | find_package(EEROS REQUIRED) | ||
| - | include_directories(${EEROS_INCLUDE_DIR}; | ||
| - | link_directories(${EEROS_LIB_DIR}; | ||
| - | |||
| - | set(CMAKE_CXX_FLAGS " | ||
| - | |||
| - | add_executable(test-project main.cpp) | ||
| - | |||
| - | target_link_libraries(test-project eeros ucl ${CMAKE_DL_LIBS}) | ||
| - | </ | ||
| - | |||
| - | Build the project by clicking the build-button in the top left corner. \\ | ||
| - | Change the deploy.txt file to match your project- and application-name | ||
| - | < | ||
| - | install-armhf/ | ||
| - | install-armhf/ | ||
| - | myApp/ | ||
| - | build-armhf/ | ||
| - | </ | ||
| - | Deploy your application with the '' | ||
application.1554275624.txt.gz · Last modified: 2019/04/03 09:13 by fink