Re: Compiling on OSX LION

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Sun, 31 Jul 2011 18:00:10 +0200


Glew is provided with the ROOT sources, do:

./configure
make

in the ./configure output you should see:

Checking for GL/glew.h ... no
Checking for libGLEW ... no
Checking whether to build included GLEW ... yes Checking for pkg-config ... not found
Checking whether to build included libftgl ... yes

which tells you that GLEW will be build with ROOT.

Cheers, Fons.

On 31/07/11 17:17, Vito Palladino wrote:
> I'm new on a mac machine. However I installed Xcode and it was supposed to
> contain OpenGL...
>
> Thank you again
> Vito Palladino
>
> ---------------------------------------------------------------------------
> *From:* Fine, Valeri [fine_at_bnl.gov]
> *Sent:* 31 July 2011 16:40
> *To:* Vito Palladino; roottalk_at_root.cern.ch
> *Subject:* RE: [ROOT] Compiling on OSX LION
>
> include/TGLIncludes.h:23:21: error: GL/glew.h: No such file or directory
>
> Is there OpenGL properly installed?
>
> Best regards , Valeri Fine
>
> -----------------------------------
>
> Brookhaven National Laboratory
>
> Upton, NY 11973
>
> Phone +1-631-344-7806
>
> *From:*owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] *On
> Behalf Of *Vito Palladino
> *Sent:* Sunday, July 31, 2011 9:42 AM
> *To:* roottalk_at_root.cern.ch
> *Subject:* [ROOT] Compiling on OSX LION
>
> Dear Rooters,
>
> I'm trying to compile root on OSX LION.
>
> I run ./configure --prefix=/usr/bin and than make but the following errors
> are returned:
>
> In file included from
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:25:
>
> include/TGLIncludes.h:23:21: error: GL/glew.h: No such file or directory
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx: In member
> function ‘virtual void TF2GL::DirectDraw(TGLRnrCtx&) const’:
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:96: error:
> ‘GL_ENABLE_BIT’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:96: error:
> ‘GL_LIGHTING_BIT’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:96: error:
> ‘glPushAttrib’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:98: error:
> ‘GL_NORMALIZE’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:98: error:
> ‘glEnable’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:99: error:
> ‘GL_COLOR_MATERIAL’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:99: error:
> ‘glDisable’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:104: error:
> ‘GL_CULL_FACE’ was not declared in this scope
>
> /Users/vitopalladino/Downloads/root/graf3d/gl/src/TF2GL.cxx:105: error:
> ‘glPopAttrib’ was not declared in this scope
>
> make: *** [graf3d/gl/src/TF2GL.o] Error 1
>
> Do you have any ideas?
>
> Thank you
>
> Vito Palladino
>

-- 
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://fons.rademakers.org           Fax:   +41 22 7669640


Received on Sun Jul 31 2011 - 18:00:16 CEST

This archive was generated by hypermail 2.2.0 : Sun Jul 31 2011 - 23:50:01 CEST