User Tools

Site Tools


Write your own application

As descriped in Setup your environment -> Import an EEROS project you can create your own applications.

  1. Start KDevelop
  2. Project → Open/Import project
  3. Navigate to the BeagleBoneBlue/myApp folder and choose the CMakeLists.txt file

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 <iostream>
#include <eeros/logger/Logger.hpp>
#include <eeros/logger/StreamLogWriter.hpp>
int main() {
using namespace eeros::logger;
   StreamLogWriter w(std::cout);
   Logger log;
   log.set(w); << "Hello, EEROS";
   return 0;

Open CMakeLists.txt file, and copy the following code

cmake_minimum_required(VERSION 2.8)

find_package(EEROS REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
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

//remove comments when copy paste
Install-armhf/lib/      // the eeros library for the target
Install-armhf/lib/	   // the beagle bone blue wrapper forh the eeros library
myApp/HwConfigBBBlue.json		   // the hardware configuration file
build-armhf/myApp/test-project             // the application

Deploy your application with the shellscript and run the application on the target.

application.txt · Last modified: 2018/10/10 10:30 by fink