From: Dan Strahs (dstrahs_at_pace.edu)
Date: Sat Mar 08 2008 - 20:17:23 CST

Hello everyone:

I'm stumped on a compile problem, and hoping that someone might have some
pointers.

I'm compiling VMD1.8.6 from source in Fedora Core 4. I've got the Mesa
Libs/GLUT 6.4.2 installed in /usr/local. My current configure options for
VMD are LINUX MESA FLTK TK IMD TCL PTHREADS ACTC NETCDF PYTHON NUMPY; the
RPMS/sources for these other options were installed for VMD1.8.4 (which I
installed about 1.5 years ago). FLTK was updated from 1.1.5 to 1.1.7.

I first tried compiling VMD1.8.6 with the OPENGL configure option, but
this failed almost immediately during the compile of
OpenGLRenderer.C:OpenGLRenderer.C (which is the third file in the
compilation list):

In member function void OpenGLRenderer::cylinder(float*, float*, int, float, float):
OpenGLRenderer.C:686: error: sqrtf was not declared in this scope
OpenGLRenderer.C:689: error: acosf was not declared in this scope
make: *** [OpenGLRenderer.o] Error 1

This suggested to me that the GL header files in my OS were a problem, so
I installed Mesa 6.4.2. I realize that
http://www.ks.uiuc.edu/Research/vmd/current/linuxrelnotes.html suggests
Mesa 4.X, but I suspected that Mesa 6.X would be fully compatible (if this
is wrong, please tell me!)

The VMD lib/Mesa/{include,lib_LINUX) were symlinked respectively to
/usr/local/{include/GL,lib). From past experience with 1.8.3, I had
already added several -I include dirs and -L lib dirs to src/Makefile:
/usr/include/python2.4 /usr/local/include/ac /usr/local/include
/usr/lib/python2.4/config /usr/local/lib /usr/X11R6/lib.

After I cleaned up the previous installation and configured with LINUX
MESA etc.., make still complained with the same error in OpenGLRenderer.C.

Based on the sqrtf/acosf complaints, I also added -I/usr/include/c++/4.0.2
and -I/usr/include/c++/4.0.2/i386-redhat-linux/bits, and added
include statements for glext.h, c++config.h, and cstdlib. But the VMD
compile still fails with the same error.

At this point I'm stumped, since math.h was already included. Any pointers
would be greatly appreciated!

Dan Strahs
Assistant Professor
Biology and Health Sciences
Pace University