[vtk-developers] question about PYTHON_LIBRARY dir. name

Donna Calhoun calhoun at amath.washington.edu
Tue Sep 4 05:14:23 EDT 2007


Dear VTK developers :

I am building VTK for the first time, for use with PYTHON, and ran into the 
following problem.

I set the following two PYTHON paths (both as env. variables and in the 
'advanced options' in ccmake :

         PYTHON_LIBRARY = /u2/donna/local/python/lib/python2.5
         PYTHON_INCLUDE_PATH = /u2/donna/local/python/include/python2.5

(The added "python2.5" was the way my installation of python set things up).

Upon generating the code (using 'g' in ccmake), I got several warnings telling 
me that the python library path would be ignored because it expected a library 
name (e.g. 'lib', I assume) or a full path to a file name.  Ignoring the 
warnings and trying to build VTK quickly failed, since it couldn't find 
Python.h, for example.

Finally, I moved all the files from python/lib/python2.5 directly to 
python/lib, and although ccmake still generated the warnings, I am now able to 
build VTK

The file CMakeCache.txt now contains
----------------------------------------
//Path to a file.
PYTHON_INCLUDE_PATH:PATH=/u2/donna/local/python/include/python2.5

//Path to a library.
PYTHON_LIBRARY:FILEPATH=/u2/donna/local/python/lib
-------------------------------------------------------

Is there somethhing special about the LIBRARY path name that doesn't seem to 
apply to the INCLUDE path name?

Thank you,

Donna


-- 
------------------------------------------------------------------
Donna CALHOUN
Laboratoire d'Etudes des Transferts et de Mecanique des Fluides
CEA Saclay
DANS/DM2S/SFME/LTMF
F-91191 Gif-sur-Yvette Cedex
France
Tel : +33.1.69.08.97.13
e-mail : donna at semt2.smts.cea.fr
------------------------------------------------------------------



More information about the vtk-developers mailing list