RE: ROOT on Eclipse or Dev-C++

From: Fine, Valeri <fine_at_bnl.gov>
Date: Thu, 26 Jul 2007 21:52:18 -0400


Hello Christian,  

Thank you very much your detail explanations.  

Valeri > > However, speaking about "Eclipse and Dev-c++ " did you imply your want Valeri > > to use the "Eclipse" compiler to create your own ROOT plug-ins?

Christian > Erhm, Eclipse, is _not_ a compiler.

WelI, agree. http://www.eclipse.org/
However your clause hasn't made the Sirio's original question  

Sirio > > > it's possible to use Root with this programs  

more clear.  

What about style it is hard to stick with one style repling the message that contains several unrelated issues.  

My best regards, Valeri  


From: Christian Holm Christensen [mailto:cholm_at_nbi.dk] Sent: Thu 7/26/2007 7:32 PM
To: Fine, Valeri
Cc: Sirio; roottalk_at_pcroot.cern.ch
Subject: RE: [ROOT] ROOT on Eclipse or Dev-C++

Hi

[I moved Sirio's mail up - sigh! Why-oh-why can Physicist not learn _not_ to top-post! http://en.wikipedia.org/wiki/Posting_style]

> From: owner-roottalk_at_pcroot.cern.ch
> [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Sirio
> Sent: Wednesday, July 25, 2007 5:48 AM
> To: roottalk_at_pcroot.cern.ch
> Subject: [ROOT] ROOT on Eclipse or Dev-C++
>
> Hello Rooters!
> I need to use Root under Windows (sigh!) from my usb disk. I found a
> portable version of Eclipse and of Dev-c++. Anyone know if it's possible
> to use Root with this programs from a usb device?

Do you mean you want to put the files of Eclipse and ROOT on the USB disk, and have the main computer execute the programs - or is you USB "disk" more clever than that and have it's own PU? If it's the first option you're going for, I see no reason why not.

> How can i do that?

Download Eclipse an ROOT (and other dependencies). Plug-in your disk which will be assigned some "drive-letter" (tsk, stupid Windoze parlance) - say E:. Run the installer of the various programs, but make sure to install on the "E: drive". That's it.

One caveat. Some programs may need stupid silly "registry entries" - if that's the case, you can probably not run the program in question from the USB disk on another computer on which the program was not installed. Of course, you can try to figure out exactly which registry entries you need, and make some small ViralBasic script that puts those entries in the registry.

> Thanks a lot
> Sirio
>

On Wed, 2007-07-25 at 09:26 -0400, Fine, Valeri wrote:
> Hello Sirio,
> Can you elaborate a little bit more?

Yeah, please elaborate.

> ROOT is a "self-contained" application that can be used stand-alone
> unless one wants the custom compiled plug-ins(DLL). From this stand
> point it should not be different where ROOT is loaded from either it is
> from the "hard disk" folder or from the "USB" one. It doesn't require
> any Windows registry entry to work either.

Which is major benefit to ROOT btw.

> Probably you will need to add
> a small "cmd" file to the ROOT "bin" directory to set the environment
> variables.

Which is simple:

        rem MyCmdScriptToSetROOTEnvironmentVariables.bar
        @ECHO OFF
        SET ROOTSYS=E:\ROOT
        SET PATH=%ROOTSYS%\bin;%PATH%
        rem Execute ROOT
        %ROOTSYS%\bin\root.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
        rem EOF
       

> However, speaking about "Eclipse and Dev-c++ " did you imply your want
> to use the "Eclipse" compiler to create your own ROOT plug-ins?

Erhm, Eclipse, is _not_ a compiler. Eclipse is an Integrated Development Environment that can use a variety of compilers, linkers, debuggers, and what not. All Eclipse needs, is for someone to define a plug-in/environment for a given toolkit. For example, there could be an environment for Sun JAVA, GCC Java, GCC C++, Micros**t ViralC--, Intel C ++, and what not. However, it does look like CDT (the C++ developmenttop posting tools) only support GCC at the moment, but I'm not 100% sure.

wxDec-C++ (the heir-taker of Dev-C++) does add support for M$ C-- in later version. However, you still need the compiler - perhaps the "express" edition will do.

Wouldn't it be nice if there was a UI standard for compilers, such that front-ends like BlurryStudio, Dev-C++, Eclipse, Anjuta, and what not, could all use the all compilers? In the Free World, we're used to that.

Yours,

--
 ___  |  Christian Holm Christensen
  |_| |  -------------------------------------------------------------
    | |  Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|           DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|            Denmark                    Office: (+45) 353  25 404
 ____|   Email:   cholm_at_nbi.dk               Web:    www.nbi.dk/~cholm
 | |
Received on Fri Jul 27 2007 - 03:52:31 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 27 2007 - 17:50:02 CEST