[vtkusers] Install vtk 5 from source on redhat with python 2.5

Marc Christian Schöning Marc.Schoening at iem.rwth-aachen.de
Wed Dec 13 07:07:54 EST 2006


So, i found a fix, just open the file

vtkPythonUtil.cxx,

go to line 771 like mentioned in the error output and place a

const

before the char, then it compiles.

Hope it doesnt affect VTK :-).

but in the moment it continues to compile for me.

PS: It doenst matter, if you use a static or dynamic library for the compile process. So, the libpython*.a  should be enough.

Greetings,

Marc 




Fabian Braennstroem wrote:
> Hi,
>
> I would like to install vtk 5.0 on a scientific linux
> machine (redhat enterprise) clone. I enabled python and set
> the path to my newly installed python 2.5 in an extra
> directory:
>
>  PYTHON_EXECUTABLE                /opt/python-2.5/bin/python2.5                                                                                                                     
>  PYTHON_EXTRA_LIBS                                                                                                                                                                  
>  PYTHON_INCLUDE_PATH              /opt/python-2.5/include/python2.5                                                                                                                 
>  PYTHON_LIBRARY                   
>  PYTHON_UTIL_LIBRARY              /usr/lib/libutil.so    
>
> Maybe, one mistake is to leave the library path empty, but setting it to
> /opt/python-2.5/lib/python2.5 did not work; I got:
>
>  Warning: Ignoring path found in link libraries for target: vtkWrapPython, path is: /opt/python-2.5/lib/python2.5. Expected a library name or a full path to a library name.
>
>  Warning: Ignoring path found in link libraries for target: vtkpython, path is: /opt/python-2.5/lib/python2.5. Expected a library name or a full path to a library name.
>
> when I generated the makefile. Could it be a problem with the util library?
> ccmake did set it!?
>
> So, I am getting following error message, when running make:
>
>
> [ 13%] Building CXX object Common/CMakeFiles/vtkCommonPythonD.dir/vtkPythonUtil.o
> /opt/VTK/Common/vtkPythonUtil.cxx: In function `PyObject* PyVTKClassMetaType_GetAttr(PyTypeObject*, char*)':
> /opt/VTK/Common/vtkPythonUtil.cxx:771: error: invalid conversion from `const char*' to `char*'
> make[2]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/vtkPythonUtil.o] Error 1
> make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2
>
>
> Would be nice, if anybody can help!
>
>
> Greetings!
>  Fabian
>
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>   


-- 
-----------------------------------------------------------------------------
       ___      ___        ___
      /\__\    /\  \      /\  \      Institut fuer Elektrische Maschinen
     /:/  /   /::\  \    /::\  \     Lehrstuhl fuer
    /:/  /   /:/\:\  \  /:/\:\  \    Elektromagnetische Energiewandlung
   /:/  /   /::\ \:\__\/:/ /::\  \   RWTH Aachen
  /:/  /   /:/\:\_\/__/\/_/:/\:\__\
  \/__/    \:\ \/__/      \/_/:/  /  Schinkelstr. 4, D-52056 Aachen
            \:\  \          /:/  /
             \:\__\        /:/  /    Dipl.-Ing. Marc Christian Schoening
              \/__/        \/__/     (Wissenschaftlicher Mitarbeiter)

                                     Tel.: +49-241-80-97644
                                     Fax : +49-241-80-92270

                              e-mail: Marc.Schoening at iem.rwth-aachen.de
                              Web   : http://www.iem.rwth-aachen.de
----------------------------------------------------------------------------- 





More information about the vtkusers mailing list