Hi,

I have downloaded and instaled pymol v99_rc6 on my system, AMD X2 processor; following is the corresponding line to the uname -a command: Linux uniparc7 2.6.17-1.2187_FC5 #1 SMP Mon Sep 11 01:16:59 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux However it is really slow, even if it seems to detect everithing well including nvidia graphics driver:
This PyMOL Executable Build incorporates Open-Source PyMOL 0.99rc6.
OpenGL graphics engine:
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce 6600/PCI/SSE2
GL_VERSION: 1.4 (2.0.2 NVIDIA 87.74)
Adapting to GeForce hardware.
Detected 2 CPUs. Enabled multithreaded rendering.

Isuspect that using the libraries in /usr/lib instead of those in /usr/lib64 makes it so slow, so I tried to compile it myself.
- Option1:
# Pmw is installed in /usr/lib64/pymol2.4/site-packages/Pmw
# pymol setup.py build produces the following output (sorry for the messages in spanish, I don't know how to switch default to english):

running build
running build_py
running build_ext
building 'pymol._cmd' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -D_PYMOL_MODULE -D_PYMOL_INLINE -D_PYMOL_FREETYPE -D_HAVE_LIBPNG -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -I/usr/include/freetype2 -I/usr/include/python2.4 -c layer0/Block.c -o build/temp.linux-x86_64-2.4/layer0/Block.o -ffast-math -funroll-loops -O3
En el fichero incluído de layer0/Block.c:17:
layer0/os_gl.h:31:18: error: GL/gl.h: No existe el fichero o el directorio
layer0/os_gl.h:32:19: error: GL/glu.h: No existe el fichero o el directorio
In file included from layer0/Block.c:17:
layer0/os_gl.h:58: error: expected ‘)’ before ‘x’
layer0/os_gl.h:67: error: expected ‘)’ before ‘width’
layer0/os_gl.h:117:20: error: GL/glut.h: No existe el fichero o el directorio
En el fichero incluído de layer5/main.h:35,
de layer0/Block.c:20:
layer0/os_python.h:26:19: error: Python.h: No existe el fichero o el directorio
In file included from layer0/Block.c:20:
layer5/main.h:45: error: expected ‘)’ before ‘*’ token
layer5/main.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
layer0/Block.c: En la función ‘BlockFill’:
layer0/Block.c:43: aviso: declaración implícita de la función ‘glBegin’
layer0/Block.c:43: error: ‘GL_POLYGON’ no se declaró aquí (primer uso en esta función) layer0/Block.c:43: error: (Cada identificador no declarado solamente se reporta una vez
layer0/Block.c:43: error: ara cada funcion en la que aparece.)
layer0/Block.c:44: aviso: declaración implícita de la función ‘glVertex2i’
layer0/Block.c:48: aviso: declaración implícita de la función ‘glEnd’
layer0/Block.c: En la función ‘BlockOutline’:
layer0/Block.c:56: error: ‘GL_LINE_LOOP’ no se declaró aquí (primer uso en esta función)
error: command 'gcc' failed with exit status 1

It seems that it does not locate the GL directory.
The following variables are used in setup.py:
inc_dirs=["ov/src",
"layer0","layer1","layer2",
"layer3","layer4","layer5",
"/usr/include/freetype2",
# "/home/warren/ext/include"
]
libs=["GL","GLU","glut","png","z","freetype"
]
pyogl_libs = ["GL","GLU","glut"]
lib_dirs=[
"/usr/X11R6/lib",
"/usr/lib64",
# "/home/warren/ext/lib"

but I don't have in my system /usr/X11R6/lib neither /usr/include/freetype2

any ideas??

Compiling from source gives different errors, but I think option 1 should work, shouldn't it?

Thanks,
Hugo

--
Hugo G. de Teran, PhD.
Departmento de Farmacología / Instituto de Farmacia Industrial
Universidade Santiago de Compostela

Facultad de Farmacia           Phone: +34 981 563 100 ext 13040
Campus Sur, s/n E-15782 Fax: +34 981 594595 Santiago de Compostela (SPAIN) e-mail:hugo...@usc.es



Reply via email to