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

Hi

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.

thaks a lot for your help,

Massimo.

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@gclements.plus.com>

On Feb 9, 2008, at 3:00 PM, Glynn Clements wrote:

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.

You left out the "-undefined dynamic_lookup" in the replacement. And be sure to find with a "whole words" option (ie in TextWrangler/BBEdit), or it will find other things it shouldn't.

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

Hmm, that's sounds like a better option than messing around with configure. (grr, I hope Apple fixes their linker soon.)

I'll look into the details that would be needed.

PS. I have a bug report for this on the GForge tracker:

http://wald.intevation.org/tracker/?func=detail&aid=536&group_id=21&atid=204

More of an informational bug, really, since it's an Apple linker problem. But if Apple can't fix it soon, a workaround in configure may be necessary.

--
Glynn Clements <glynn@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy