Re: Compiling on OSX LION

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Wed, 3 Aug 2011 11:34:18 +0200


Hi Vito,

  V5-30 still has the error in rpdconn. This is fixed in the trunk. After configuring with --prefix you have to do

make
make install

Otherwise pixmaps will not be found.

Cheers, Fons.

On 2 Aug 2011, at 00:58, Vito Palladino <Vito.Palladino_at_cern.ch> wrote:

> When I launch root it seems ok but on first line and error is reported. And when I try to launch TBrouser X11 crash with the errors reported on the previous mail
>
> rootx xpm error: XpmColorFailed
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 5.30/00 27 June 2011 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> ROOT 5.30/00 (tags/v5-30-00_at_40062, Jun 28 2011, 11:49:57 on macosx64)
>
> CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0]
>
>
> is reported
>
> ________________________________________
> From: owner-roottalk_at_root.cern.ch [owner-roottalk_at_root.cern.ch] on behalf of Vito Palladino [Vito.Palladino_at_cern.ch]
> Sent: 02 August 2011 00:44
> To: Mario Kadastik; Christopher Rob Jones
> Cc: Eduard Avetisyan; Fons Rademakers; Valeri Fayn; roottalk_at_root.cern.ch
> Subject: RE: [ROOT] Compiling on OSX LION
>
> Finally maports version has over the compilation and root is now installed... but if I try to launch the TBrowser the following error is reported:
>
> Warning in <TGClient::GetColorByName>: couldn't retrieve color #3399ff.
> Please close any other application, like netscape, that might exhaust
> the colormap and start ROOT again
> Warning in <TGClient::GetColorByName>: couldn't retrieve color #3399ff.
> Please close any other application, like netscape, that might exhaust
> the colormap and start ROOT again
> root [1] Error in <RootX11IOErrorHandler>: fatal X11 error (connection to server lost?!)
>
> **** Save data and exit application ****
>
> Warning in <TGClient::GetColorByName>: couldn't retrieve color #000000.
> Please close any other application, like netscape, that might exhaust
> the colormap and start ROOT again
> Warning in <TGClient::GetColorByName>: couldn't retrieve color #000000.
> Please close any other application, like netscape, that might exhaust
> the colormap and start ROOT again
> Warning in <TGClient::GetColorByName>: couldn't retrieve color #000000.
> Please close any other application, like netscape, that might exhaust
> the colormap and start ROOT again
> Warning in <TGClient::GetColorByName>: couldn't retrieve color #000000.
> Please close any other application, like netscape, that might exhaust
> the colormap and start ROOT again
>
>
> ________________________________________
> From: owner-roottalk_at_root.cern.ch [owner-roottalk_at_root.cern.ch] on behalf of Vito Palladino [Vito.Palladino_at_cern.ch]
> Sent: 01 August 2011 23:12
> To: Mario Kadastik; Christopher Rob Jones
> Cc: Eduard Avetisyan; Fons Rademakers; Valeri Fayn; roottalk_at_root.cern.ch
> Subject: RE: [ROOT] Compiling on OSX LION
>
> I tried both macports and compiling root 5.30.00-patches.
>
> Macport seems not have any answer after more than 2 hours the compiling procedure is still on
> ---> Building root
>
> and for what concerns the compiling fron source after downloading:
>
> svn co http://root.cern.ch/svn/root/branches/v5-30-00-patches root
>
> and
> ./configure macosx64 --prefix=/usr/local/root
> make
>
> the error
>
> /Users/vitopalladino/daq62/root/net/rpdutils/src/rpdconn.cxx: In member function ‘int rpdconn::senddesc(int)’:
> /Users/vitopalladino/daq62/root/net/rpdutils/src/rpdconn.cxx:398: error: size of array ‘buf’ is not an integral constant-expression
>
> stops the compiling process.
>
> Thanks for any other suggestions,
> Vito
>
> ________________________________________
> From: Mario Kadastik
> Sent: 01 August 2011 15:34
> To: Christopher Rob Jones
> Cc: Vito Palladino; Eduard Avetisyan; Fons Rademakers; Valeri Fayn; roottalk_at_root.cern.ch
> Subject: Re: [ROOT] Compiling on OSX LION
>

>> As I said, until a release comes out with the fixes included, you need to build with the gcc44 or gcc45 variants.
>> 
>>> sudo port install root +gcc44 ( + any other variants you want).
>> 
>> I don't have a Lion machine myself, so cannot test this, but I part maintain the port and a user who submitted a bug report on this says it worked for them.
>> 
>> https://trac.macports.org/ticket/30321

>
> Well I don't know what extra one has installed, but I can confirm that the SVN trunk of last Friday (can't remember what concrete number it was) worked flawlessly for me. OS X Lion + Xcode 4.2.x (the one you get from App Store for free) was enough. I just did a ./configure macosx64; make; and voila it worked.
>
> Mario Kadastik, PhD
> Researcher
>
> ---
> "Physics is like sex, sure it may have practical reasons, but that's not why we do it"
> -- Richard P. Feynman
>
>
>
>
Received on Wed Aug 03 2011 - 11:34:22 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 03 2011 - 17:50:01 CEST