Changes between Version 16 and Version 17 of DevEnvironment


Ignore:
Timestamp:
06/29/12 19:55:46 (22 months ago)
Author:
debugging_maniac
Comment:

For Eclipse Helios there are few minor changes in Setting Projects in Eclipse for C/C++ and installing CDT software from eclipse help

Legend:

Unmodified
Added
Removed
Modified
  • DevEnvironment

    v16 v17  
    6060 
    6161 
    62 == '''FROM HERE THINGS GO DIFFERENTLY DEPENDING ON THE ECLIPSE INSTALLED:''' == 
     62======================================= '''FROM HERE THINGS GO DIFFERENTLY DEPENDING ON THE ECLIPSE INSTALLED:''' ========================================================= 
    6363 
    6464 
    6565 
    66 ECLIPSE:HELIOS 
     66================================================'''ECLIPSE:HELIOS'''=============================================== 
    6767 
    6868=== Setting Up The Eclipse IDE === 
     
    104104 
    105105To build the documentation, open a terminal and go to `docs/reference` directory under your workspace. Invoke `make html` (preceded by `make clean` if you want to force a rebuild of all documentation). You should now have a `html/index.html` file with documentation index. 
     106 
     107 
     108 
     109 
     110 
     111 
     112 
     113 
     114================================================'''ECLIPSE:INDIGO'''=============================================== 
     115 
     116By default, indigo is installed in ubuntu. For that follow the steps: 
     117 
     118Eun Eclipse. As the workspace, choose some directory outside your local Orange repository. Within Eclipse, install the needed plugins: CDT (C/C++ Development Tooling), PyDev (Python IDE for Eclipse) and MercurialEclipse (for Mercurial repository support). That is, choose Help->Install New Software... and add the following Update Sites: 
     119 
     120    CDT Site:  http://download.eclipse.org/tools/cdt/releases/indigo 
     121    PyDev Site:  http://pydev.org/updates/ 
     122    MercurialEclipse Site:  http://cbes.javaforge.com/update  
     123 
     124Choose –All Available Sites– for the "Work with" option and install the following choices: MercurialEclipse->MercurialEclipse, PyDev and CDT Main Features. 
     125 
     126Now let's set up the projects in Eclipse. We'll set up two projects: orange for Python code and source for C++ code. 
     127 
     128 
     1291. Open the New Project dialog once , select Pydev->Pydev Project and name the project orange. Change the project location to the location of your repository (which contains the Orange directory). Use the "Add project directory to PYTHONPATH" option, and in no case the "Create 'src' folder and add it to PYTHONPATH". Configure the interpreter if Eclipse requests so; you may use the Auto Config button with default settings. Select source as a referenced project. 
     130 
     131 
     1322. Open the New Project dialog, select C/C++->Makefile Project with Existing Code->Mark C++ ,Unmark C-> Use source as project name, untick the "Use default location" checkbox and choose the source directory in your local Orange repository. Disregard the warning about project directory already existing. 
     133 
     134Under project-> properties -> C/C++ Build->Environment, add the following environmental variables: 
     135 
     136Click Add 
     137Name:    CXXFLAGS 
     138Value: -ggdb 
     139 
     140Press OK 
     141 
     142Click Add 
     143Name:  LDFLAGS 
     144Value: -ggdb 
     145 
     146Press OK    
     147  
     148Apply & OK. 
     149 
     150 
     151Enabling Running and Debugging 
     152 
     153For debugging, it's best to set up three debug configurations: one for Python code, one for C++ code with Orange Canvas being invoked and one without Canvas to debug in python scripting environment. Choose Run->Debug Configurations and set up the following configurations. 
     154 
     155Add a new "Python Run" configuration, name it orange-canvas-python, select orange as the project and select Orange/OrangeCanvas/orngCanvas.pyw as the main module. Click apply. 
     156 
     157Now add a new "C/C++ Application" configuration, name it orange-cpp, select source as the project and /usr/bin/python as the C/C++ Application. In the Debugger tab, uncheck the "Stop on startup at main". You may now apply the configuration. 
     158 
     159Now clone the last configuration, name it orange-canvas-cpp and add, in the Arguments tab, enter <path to your Orange repository>/Orange/OrangeCanvas/orngCanvas.pyw as program arguments. 
     160In Package explorer, Right click on "source"->Run as-> Run Configurations->C/C++ Application->orange-canvas-cpp