Get OpenRDK at Fast, secure and Free Open Source software downloads

edit SideBar

Prepare your project to start developing

Now that you tested a couple of ready-made configuration files with example modules, you can start building your own configuration files and developing your own modules. Before to do this, anyway, you should prepare a directory structure that will contain your project, that is outside the OpenRDK tree.

NOTE: in order for your project to be aware of the position of the OpenRDK and in order to be able to use the commands below, you have to run

  $ . setenv

in the OpenRDK source directory, every time you open a new console. If you want to avoid this boring need, you can follow the instruction at the end of the Building section and make it automatic.

Advised directory structure of your project

Although you can arrange your directory as you like, our advice is to make it like the following:

  • your-project/
    • data/ will contain configuration files for OpenRDK and other application (e.g., Player)
    • src/ will contain source files to be compiled
      • ra-modules/ will contain modules for RAgent
      • rq-modules/ will contain modules for RConsoleQT
      • libraries/ will contain (source of) your own libraries
      • apps/ will contain other applications

How to prepare the building system and make it aware of the OpenRDK location

Now, go in the root of your source tree (in this case, it is your-project/src) and type the following command:


The CMakeLists.txt that it creates in your root directory will import some useful CMake functions and is aware of the location of the OpenRDK source tree. You can create the CMakeLists.txt of the subdirectories by issuing the following command:


This CMakeLists.txt is very simple: it includes all the subdirectories in the build tree. After these actions, go to the root directory of the sources and type:

  $ cmake .

so that CMake starts generating the Makefiles needed to compile your project. Of course now your project is empty, so never will be compiled. We will see in next sections how to build a new configuration file and how to develop a new module.

© 2004-2009 RoCoCo Laboratory Powered by PmWiki
Edit - History - Printable View - Recent Changes - Search
Page last modified on January 23, 2009, at 03:33 PM