Eclipse Project setup

This page will help you to set up Eclipse projects in order to compile OpenDRIM providers inside Eclipse (without using a Terminal).

1. Project conversion

There is only one way to make a C++ project which can compile the OpenDRIM providers (and Common Library), those project are named C/C++ Make Project.

Fortunately, it is possible to convert a generic project into that type of project. However, if you created a basic C++ Project, when you checked out your OpenDRIM provider, or before you generated a new OpenDRIM provider using the PCG. You will have to do it again, by choosing the right project type.

So in this part, we will teach you how to convert a generic project into a C/C++ Make Project.

  • Step 1: Go to the File -> New menu, and choose Convert to a C/C++ Make Project:
  • Step 2: Select the project you want to convert, and click on the Finish button:

2. Project environment variables

This part concern people who had installed OpenPegasus on another folder than the root folder. (Most likely people who installed OpenPegasus from source)

  • Step 1: Go to the project properties:
  • Step 2: On the project properties windows, go to the C/C++ Build -> Environment menu, and click on the Add... button:
  • Step 3: Create the PEGASUS_HOME environment variable by filling up the fields with the values you used when you installed OpenPegasus from source. And click on the OK button:
  • Step 4: Back on the project properties windows, click on the Select... button. Then look for the PATH variable, select it and click on the OK button:
  • Step 5: Back on the project properties windows, select the PATH variable:

    Then click on the Edit... button:

    Click on the Variables button, select the PEGASUS_HOME variable and click on OK:

    Add /bin after ${PEGASUS_HOME}. Do not forget to put the semicolon (:) separator before or after the new entry you put in the PATH value (depending on where you put it). And click on OK.
  • Step 6: Back on the project properties windows, click on Apply and then on OK.

3. Project build setup

  • Step 1: Select your project folder in the Project Explorer:

    And go to the Project -> Make Target -> Create... menu:
  • Step 2: Fill the Create a new Make target window with the same values as in the image shown below, and click on Create:
  • Step 3: Go again to the Create a new Make target window by following the Step 2 instructions. This time fill the window with the values shown in the image below. However you should set the CIMSERVER with your server name as in the manual installation method. Then click on Create.

4. Building project

Now build both the Make target you just made. You can do that by right clicking on the desired Make target in the Make Targets tab, and select Build Make Target in the context menu.

Or by going to the Project -> Make Target -> Build... menu (before you must select the desired project folder in the Project Explorer):

Then choose the target you want to run, and click on Build

You should firstly run the autoreconf target, then the configure target.

After all this work done, you can actually build your provider (or the Common Library) by clicking on the Project -> Build Project menu:

Attachments