How To - pronobis/rocs GitHub Wiki

Some ROCS-related how tos.

Developing ROCS in Eclipse (Old)

  1. Install the following Eclipse extensions:
    • Eclipse CDT
    • EGit
    • CMake Editor
  2. Clone the ROCS git repository (into ${ROCS_SRC_ROOT})
  3. Create a build directory within the working copy
    • mkdir ${ROCS_SRC_ROOT}/BUILD
  4. Configure using cmake or ccmake
    • ccmake ..
    • choose the modules you want
    • press © then [g]
  5. Create new C++ project (File→New→C++ Project)
  6. Enter ROCS as the project name and use ${ROCS_SRC_ROOT} as the location
  7. Select Makefile project → Empty Project →Other Toolchain as the tool chain and click Next
  8. In the next page, go to Advanced Settings and deselect Use default build command.
    Enter the following as the build command:
    make -C ${ProjDirPath}/BUILD VERBOSE=1
    and as build directory:
    ${ProjDirPath}/BUILD
    The verbose switch allows Eclipse to automatically discover include and symbol paths.
  9. Click OK and Finish
  10. Modify project properties (Project→Properties).
    Go to C/C++ Build→Discover options and select Automate discovery of paths and symbols
    Go to C/C++ General→Paths and Symbols and add the include path to standard C++ headers e.g. /usr/include/c++/4.4
    Click OK
  11. Run Project→Clean and Project→Build. Eclipse should discover all the include paths now.
  12. Re-index the whole project
  13. To speed up building, remove the VERBOSE=1 switch.

More info about CMake projects in Eclipse can be found here.

Using EGit in Eclipse (Old)

If there are problems with pushing in EGit, add:
pushurl=<repository_url>
under
url=<repository_url>
to .git/config.

Managing GitHub Issues in Eclipse Mylyn Tasks (Old)

  • Install Mylyn ( http://www.eclipse.org/mylyn/downloads/ )
  • Install Eclipse Mylyn to GitHub connector ( http://github.com/dgreen99/org.eclipse.mylyn.github/wiki )
    • Add the following update site to Windows→Preferences→Install/Update/Available Software
    • Go to Help→Install new software
    • Select the newly added update site
    • Select the connector and proceed with the installation
  • Add the “Task List” view
  • In the view, right click and add “New → Query”
  • Select “Add Task Repository” and then GitHub
  • Configure the project:
    • Server: type your project url e.g. http://github.com/pronobis/ROCS
    • Label: leave empty
    • GitHub User ID: your user ID
    • GitHub API Token: the token found in your account settings
  • Use “Validate Settings” to check if the configuration is correct
  • Close the dialog and continue with adding the new query
    • Select Status: open
    • Type query text such as your user name to get only the issues relevant to you
    • Finish!
⚠️ **GitHub.com Fallback** ⚠️