Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 1.44 KB

README-eclipse.md

File metadata and controls

61 lines (36 loc) · 1.44 KB

#How to create a RODOS-Application with Eclipse

  1. Download and install Eclipse for C/C++ Developers

  2. Create the folder of your project

        mkdir myProject
        cd myProject
    
  3. Run the following command

        git clone https://gitlab.com/rodos/rodos.git  
    
  4. Create your first .cpp-file, e. g. myHello.cpp

  5. Create CMakeLists.txt in the project folder with the following lines:

        add_subdirectory(rodos)
        add_rodos_executable(myhello myHello.cpp)
    
  6. Don't name your application test, it will cause problems. For more details about Cmake, read README-cmake.md.

  7. Create build-folder:

        mkdir build
        cd build
    
  8. Run the following command:

        cmake -DCMAKE_TOOLCHAIN_FILE=../rodos/cmake/port/posix.cmake -DEXECUTABLE=ON ..
    
  9. Now start Eclipse

  10. Get your project into Eclipse by doing the following and choose the folder myProject:

    File > New > Makefile Project with Existing Code

  11. Right-click on your project and click on Properties

  12. Go to C/C++ build and add /build to the build directory.

  13. Build the project.

  14. Right-click on your project and navigate to Run as > Run configurations

  15. Click on C/C++-Application and choose your C/C++-Application with Browse. It is located in /myProject/build and should by called myhello.

  16. Now you should be able to run your programme.