[GRASS-user] build grass on osx 10.5-leopard (can't find opengl lib)

Glynn Clements glynn at gclements.plus.com
Sat Feb 9 16:00:45 EST 2008


Massimo Di Stefano wrote:

> i'm tring to build grass-svn
> on osx-10.5 but
> i'm having some difficoult to build it
> beacouse the configure step don't find
> the opengl libtraries.
> 
> As explained in the macosx readme
> i need to modify the files :
> 
> grass_trunk/include/Make/Platform.make.in
> grass_trunk/configure
> 
> what i done :
> 
> in Platform.make.in changed the line 160 to :
> 
> OPENGLLIB           = -dylib_file /usr/X11/lib/libGL.dylib:/usr/X11/ 
> lib/libGL.dylib -undefined dynamic_lookup
> 
> 
> but in the file :
> 
> configure
> 
> here i'm having problems to undstand what needs a modify, i tried to  
> replace all the :
> 
> 		 " -lGL "
> 
> with :
> 
> 		"  -dylib_file /usr/X11/lib/libGL.dylib:/usr/X11/lib/libGL.dylib "
> 
> or
> 
> 		" -/usr/X11/lib/libGL.dylib:/usr/X11/lib/libGL.dylib "
> 
> ....or again :
> 
> 		" -/usr/X11/lib/libGL.dylib "
> 
> 
> but  the  ./configure ... ...   fail
> 
> 		configure: error: *** Unable to locate OpenGL library.
> 
> obviously (apologize me for these) i'm wrong to modify the configure  
> file.

If configure can't detect OpenGL itself, use --without-opengl then
modify include/config.h and include/Make/Platform.make once configure
has finished.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list