[vtkusers] Installing python VTK bindings on windows
Yoan BLANC
greut.lists at dosimple.ch
Thu Nov 17 07:31:48 EST 2005
Richard Layman wrote:
> The libs are compiled for Python 2.1 so I don't know if you want to
> install them to Python unless you are using 2.1 (I guess most people
> are probably not.) You can still use the vtkpython executable if you
> can live with Python 2.1.
>
> Is it possible to update the windows executable to have python 2.3 or
> 2.4 support?
You have to compile it.
You need a lot components like : cl (Microsoft Visual C++ Toolkit 2003),
nmake (Microsoft Platform SDK), TCL (activeTcl), python 2.4 (or 2.3),
cmake and of course the source of VTK (4.2, 4.4 or CVS).
configure some environment variables :
set TCL=C:\Tcl
set MSVC=C:\Program Files\Microsoft Visual C++ Toolkit 2003
set MSSDK=C:\Program Files\Microsoft Platform SDK
set INCLUDE=%MSVC%\include;%MSSDK%\include
set LIB=%MSVC%\lib;%MSSDK%\lib
set PATH=%MSVC%\bin;%MSSDK%\bin;%MSSDK%\bin\win64;%PATH%
set TK_XLIB_PATH=%TCL%\include
configure CMakeLists.txt (shared libs, python and so on)
cmake . -G"NMake Makefiles"
nmake
(have a coffee)
cd Wrapping\Python\
python setup install
python -c "import vtk; print vtk.vtkVersion().GetVTKSourceVersion()"
tadaa !
Yoan
>
>
>> From: Olivier Feys <olivier.feys at gmail.com>
>> To: vtkusers at vtk.org
>> Subject: [vtkusers] Installing python VTK bindings on windows
>> Date: Wed, 16 Nov 2005 13:37:51 +0100
>>
>> Hello,
>>
>> I'm currently installing VTK on windows for using it with python. The
>> aim is
>> tho install it easily without any compilation (not free on windows).
>>
>> I have done the following things :
>>
>> - installing tcl/tk with the vtk website link (tcl832.exe)
>> - installing vtk with the vtk website link (vtk42-LatestRelease.exe)
>>
>> How to install bindings in python "site packages"?
>> I read the file README.txt that explains the installation of python
>> wrapping
>> and it seems it's not correct because no setup.py file is accessible
>> in the
>> VTK_ROOT/Wraping/Python/. Only a file setup.py.in
>> <http://setup.py.in> that
>> seems not to be configured.
>
python setup.py install
>>
>> Can someone help me out?
>>
>> Thanks,
>>
>>
>> Olivier
>
>
>
>> _______________________________________________
>> 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
>
>
> _________________________________________________________________
> Don’t just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
> _______________________________________________
> 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
More information about the vtkusers
mailing list