How To - pronobis/rocs GitHub Wiki
Some ROCS-related how tos.
- Install the following Eclipse extensions:
- Eclipse CDT
- EGit
- CMake Editor
- Clone the ROCS git repository (into
${ROCS_SRC_ROOT}
) - Create a build directory within the working copy
mkdir ${ROCS_SRC_ROOT}/BUILD
- Configure using
cmake
orccmake
ccmake ..
- choose the modules you want
- press © then [g]
- Create new C++ project (File→New→C++ Project)
- Enter ROCS as the project name and use
${ROCS_SRC_ROOT}
as the location - Select Makefile project → Empty Project →Other Toolchain as the tool chain and click Next
- 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. - Click OK and Finish
- 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 - Run Project→Clean and Project→Build. Eclipse should discover all the include paths now.
- Re-index the whole project
- To speed up building, remove the
VERBOSE=1
switch.
More info about CMake projects in Eclipse can be found here.
If there are problems with pushing in EGit, add:
pushurl=<repository_url>
under
url=<repository_url>
to .git/config
.
- 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!