RE: ROOT on Eclipse or Dev-C++

From: Christian Holm Christensen <cholm_at_nbi.dk>
Date: Fri, 27 Jul 2007 01:32:59 +0200


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 - 01:33:07 CEST

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