Rats, this is the problem with having too much junk on one's computer, one
doesn't notice that things that shouldn't need to be use are actually
being used. Fixing this properly is a bit of a job, but to get rid of
mention of OpenGL in the Makefiles I would do the following.
In c/memops/global/Makefile remove GlHandler.so from the line
all: BlockFile.so GlHandler.so MemCache.so PdfHandler.so PsHandler.so
FitMethod.so TkHandler.so
In c/ccpnmr/analysis/Makefile remove $(GL_LIB) from the line
ALL_LIB = $(GL_LIB) $(TK_LIB) $(TCL_LIB) $(X11_LIB) $(MATH_LIB)
I hope that will be all that is needed. (This would all be a lot easier
if Makefiles had some kind of #ifdef mechanism.)
Wayne
On Wed, 23 Mar 2005, Huw Jenkins wrote:
> On 23 Mar 2005, at 21:56, Bruce D. Ray wrote:
>
> > I have encountered an error on attempted compilation on a Mac
> > runing OS X 10.3.8. Despite setting compilation to not use
> > OpenGL, the linker still wants to find libglut.* which this
> > system does not have. How does one get around this demand for
> > a libglut.*? (For that matter, if one has specified not
> > to use OpenGL, should there be linking requirements for
> > OpenGL libraries and libglut.*?
>
> That's interesting. It compiled fine for me, at first I thought I must
> have hacked around installCode.py to remove the glut dependency but in
> fact I have libglut from when I was trying to compile analysis with
> OpenGL. I think I compiled freeglut from source and symlinked the libs
> into /usr/X11R6/lib. Anyway I have exactly the same compiler output as
> you (bar a few fink references).
>
> > cc -c -DIGNORE_GL -DUSE_GL_TRUE -I/sw/include/python2.3
> > -I/usr/X11R6/include -I/sw/include -I/sw/include -I/include -O
> > gl_handler.c
> > cc -c -DIGNORE_GL -I/sw/include/python2.3 -I/usr/X11R6/include
> > -I/sw/include -I/sw/include -I/include -O py_gl_handler.c
>
> I thought that this is the problem - USE_GL_TRUE
>
> so comment out line 456 of installCode.py: #GL_FLAG = %s
> then uncomment line 458: GL_FLAG = -DUSE_GL_FALSE
>
> That sorts out the USE_GL_TRUE but it still wants glut. So I hacked
> around some more and changed line 506 so that it now reads:
> GL_LIB = -lGLU -lGL
> ie I removed -lglut
>
> Analysis will now build without libglut. And it seems to run, but I've
> not opened any spectra yet...
>
> I'm sure Wayne will have a more elegant solution though...
>
>
> Huw
>
> --
> Huw Jenkins
> School of Chemistry
> University of Edinburgh
> West Mains Road
> Edinburgh, EH9 3JJ
> [log in to unmask]
>
|