Hi Matej,
you can use the method gSystem->GetBuildArch() which will return either linux or linuxx86gcc in your case.
Cheers, Fons.
Matej Batic wrote:
> Hi all!
>
>
> I have set of libraries for different platforms, e.g. libSTH_i386.so and
> libSTH_64.so. I load them within my rootlogon.C script and since I
> mainly work on one machine, I don't have problems. But now I have to
> edit rootlogon.C script in order to load correct version of libraries if
> I work on machines with different platforms. I wanted to make some sort
> of checking for platform type in rootlogon.C but I don't know how it is
> done.
> If I use gSystem->Exec("uname -i"); the return value would be Int_t (0)
> and if I use gSystem->Getenv("HOSTTYPE") ($HOSTTYPE being set to 'uname
> -i' previously) I get empty char*. Is there any way to do this using
> root built in functions?
>
> Thans in advance,
> matej
>
> uname:
> Linux 2.4.27-pre6 #13 Thu Jun 17 12:02:00 CEST 2004 x86_64 x86_64 x86_64
> GNU/Linux
> root:
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 4.00/07 23 June 2004 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> FreeType Engine v2.1.3 used to render TrueType fonts.
> Compiled for linuxx8664gcc with thread support.
>
> CINT/ROOT C/C++ Interpreter version 5.15.138, May 23 2004
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480Received on Wed Mar 30 2005 - 14:34:06 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET