Re: ROOT in eclipse

From: Will Morrison <wzmorrison_at_gmail.com>
Date: Thu, 4 Feb 2010 13:56:15 -0500


I use eclipse to manage a .so library that uses ROOT classes and custom classes, it is loadable in CINT. I can send you the .cproject file if you would like. I don't use eclipse to manage root itself, if that is what you mean. I don't use eclipse that much, sorry I don't know what a plugin for it entails.

To make a library, in short, this is my recipe: In the menu Properties/ C/C++ Build Settings/ Settings/ GCC C++ Compiler use g++ with the following options
-I(your root dir)/include/ -O3 -c -Wno-sign-compare -fmessage-length=0 -fPIC -pthread -m64

In Properties/ C/C++ Build Settings/ Settings/ GCC C++ Linker use g++ with -m64 -shared

You also need a prebuild command. go to the Build Steps tab of Properties/ C/C++ Build Settings/ Settings/. in the prebuild box write

(your root dir)/bin/rootcint -f MyRootDict.C -c -I(your includes) ../ClassToCompile1.h ../ClassToCompile2.h (etc.. all the classes you wish to compile) ; g++ -O2 -Wall -Wno-sign-compare -fPIC -pthread -m64 -I(your root dir)/include -c NanaDict.C

This hopefully will create a shared object library that CINT will recognize. Hope this helps.

Will

On Thu, Feb 4, 2010 at 3:07 AM, lee <funnyvoice_at_tlabs.ac.za> wrote:

> Hi...
>
> Has anyone tried to make a plugin for root in eclipse.
>
> Lee
>
>
Received on Thu Feb 04 2010 - 19:56:21 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 08 2010 - 05:50:02 CET