That extra line should be above the if statement, not in the else block
(and with the same indentation as the if). That extra line *should* (if I
got the upload correct) now be in the 1.0.8 release (as of 24 December AM
UK time). (I thought I sent out an email about this but perhaps it never
got through.)
Regards, Wayne
On Tue, 27 Dec 2005, Bruce D. Ray wrote:
> >I had a look at the code as I was interested! It looks like that it
> >should work. For some reason a variable (useFrameworkGlut ) is
> >getting defined when its not expected to. Wayne would be the expert
> >to explain it. For now you can try my suggestion and it should work.
> >
> >As a fix, please try this (line # on the left): Add line no. 898
> >'useFrameworkGlut = 0' to the installCode.py (indentation is
> >important. It should be at the same level as 'doOpenGL = 0' line)
> >
> >893 s = getInput('Do you want OpenGL used in Analysis (y or n) (n
> >means only get Tk)?')
> >894 if (s[0] == 'y'):
> >895 doOpenGL = 1
> >896 else:
> >897 doOpenGL = 0
> >898 useFrameworkGlut = 0
>
>
> The same error message is given. The problem is that in the generation
> of the environment file, a "-framework GLUT" variant is always written
> regardless of setting because of lines beginning at 557 that read:
>
> # GL
> %sGL_DIR = %s
> %sGL_LIB = %s
> # use below if compiling GL, except on OSX
> #GL_LIB = -lglut -lGLU -lGL
> # use below if compiling GL on OSX
> GL_LIB = -framework GLUT -lGLU -lGL
> # use below if not compiling GL (or comment out GL_LIB line)
> #GL_LIB =
>
> Thus, the setting of GL_LIB appears to be clobbered by what ought to be
> a comment. Setting line 563 to read:
>
> #GL_LIB = -framework GLUT -lGLU -lGL
>
> is also necessary for a successful compilation. With the combination
> of the addition of line 898, and the above change at line 563, analysis 1.0.8
> compiles and runs without OpenGL both under Solaris 7 and under Irix.
> I suspect that these changes are also necessary for linux, and for
> other *nix variants.
>
> Presumably the line 563 change would also be necessary to build analysis 1.0.8
> without OpenGL on Mac OSX. However on OSX, the framework glut version
> is more responsive and seems to give crisper annotations. I don't see
> why anyone would want to deny themselves the pleasure of that version
> given that OpenGL and framework glut are bundled with OSX.
>
>
> Sincerely,
>
>
> --
> Bruce D. Ray, Ph.D.
> Associate Scientist, and Operations Director
> NMR Center
> IUPUI
> Physics Dept.
> 402 N. Blackford St.
> Indianapolis, IN 46202-3273
>
|