[vtkusers] Compiling for Python1.5

Torbjørn Lindahl lindahl at stud.ntnu.no
Wed Sep 25 00:30:02 EDT 2002


Hello, thank you for your reply.

I managed to solve this one hour ago.

The original download of VTK source contained no README.txt in
VTK/Wrapping/Python.

I had seen news groups refering to this file but since it was not there I
assumed they refered to the README.html in VTK temp install dir.

Never assume anything, lol. I already knew that but still did it :p

However I downloaded one of the nightly updates from kitware (Recent
releases, risk of being unsatble) and it did contain the specified file in
the Python dir whhich informed me of the command "pythons setup.py
install" which I had not executed. After that it worked like a dream and
Im up and running.

It is pretty simple if you know it in advance I reccon, or have a little
more experience, but for me who didnt I was totally in the blue, lol.

So a trivial solution to it.

Next problem, how to wrap a vtkRenderer in a QWidget from Qt, Ill probably
make a separate posting about that if I dont manage to solve it.

Regards
Torbjørn Lindahl

On Tue, 24 Sep 2002, Tom Parker wrote:

> Hi,
>
> This is how I go it all running on python 2.2, probably some unnecessary or
> wrong steps but it worked.
>
> 1. upgrade the python installed on my Redhat 7.3 system with these rpm
> files.
>
> python2-2.2.1-2
> python2-devel-2.2.1-2
> python2-tools-2.2.1-2
> python2-docs-2.2.1-2
> python2-tkinter-2.2.1-2
>
> and for fun get this too.
>
> wxPythonGTK-py2.2-2.3.3.1-1
>
> 2. rpm -Uvh all the above rpm files
>
> 3. I've got VTK installed in a $HOME/VTK folder
>
> 4. Install cmake in $HOME/CMake
>
> 5. Add this to your PATH
>
> $HOME/VTK/bin:$HOME/CMake/bin:
>
> 6. Then run ccmake from the command line in the VTK folder and change the
> python
> include and lib paths from python1.5 to python2.2
>
> generate and exit and run make.
>
> 7. su and from $HOME/VTK run make install (probably not necessary but I got
> frustrated too)
>
> 8. create this PYTHONPATH env var
>
> PYTHONPATH=$HOME/VTK/Wrapping/Python:$HOME/VTK/bin:
>
> 9. I download this from Prabhu Ramachandran's website to test it all.
> Muchisimas gracias Prabhu!
>
> MayaVi-1.2.tar.gz
>
> 10. In your MayaVi-1.2 folder after untarring MayaVi su and run python2
> setup.py install
>
> 11. exit su, cross your fingers and run mayavi
>
> Good luck :)
>
> Tom Parker
> tparker at atlasbuilders.com
>
>
> > -----Original Message-----
> > From: vtkusers-admin at public.kitware.com
> > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Torbjørn Lindahl
> > Sent: Tuesday, September 24, 2002 6:25 PM
> > To: vtkusers
> > Subject: Re: [vtkusers] Compiling for Python1.5
> >
> >
> > Hmm.. a little more information may be required after having re-read my
> > mail.
> >
> > I am on a RH 7.3 linux system.
> >
> > I have downloaded and installed cmake and it seems to work like it is
> > supposed to.
> >
> > The "make" prosess then completes with no error messages.
> >
> > Still "import vtk" or "from vtk import *" does not work.
> >
> > Regards,
> > Torbjørn Lindahl
> >
> > On Tue, 24 Sep 2002, Torbjørn Lindahl wrote:
> >
> > > Hello list, if this is a topic that has already been discussed, then I
> > > apologize.
> > >
> > > I am currently trying to install vtk for Python1.5, and I cant
> > seem to be
> > > able to do it.
> > >
> > > During configuration I answer "ON" on the Python wrapper and the paths
> > > found for python are all correct.
> > >
> > > However "from vtk import *" does not work.
> > >
> > > I am tearing my hair off from my head trying to find solutions
> > on the net.
> > >
> > > Regards,
> > > Torbjørn Lindahl
> > >
> > > _______________________________________________
> > > This is the private VTK discussion list.
> > > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list