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]
|