Comments

Edit Rakefile and find copydot

Replace

1
FileList["#{args.source}/**/.*"].exclude("**/.", "**/..", "**/.DS_Store", "**/._*").each do |file|

To

1
FileList["#{args.source}/**/.*"].exclude("**/.", "**/..", "**/.DS_Store", "**/._*", "**/.*.swp", "**/.*.un*").each do |file|
VTK
Comments

Reference Link

  1. VTK的安装与测试

    注:为什么要编译两遍VTK?因为在debug版本下编译的QVTKWidget打不开,无法使用,只能使用release下的QVTKWidget,所以要编译release版,但写程序必须要调试,VTK的库必须是debug版本的才能正常调试,为此我们编译两次。

  2. VTK/Tutorials/QtSetup
    1. Add a new environment variable:

      Add a new environment variable:

    2. Append the environment variable PATH to add

      C:\Qt\4.X.X\bin
      C:\VTKbuild\bin\Release
      (or \bin\Debug if that is how you have built VTK)

    3. CopyQVTKWidgetPlugin.libandQVTKWidgetPlugin.dllfromPathToVTK\bin\DebugtoPathTo\PyQt4\plugins\designer

      According Link 1, QVTKWidgetPlugin.lib and QVTKWidgetPlugin.dll should compile in Release

Read on →
Comments

Intstall

  1. Install either from cmake or pre-compile package(download)
  2. add a system variable PYTHONPATH contain path to bin/ and site-package/ folder

    C:\Program Files (x86)\VTK\lib\python\site-packages; C:\Program Files (x86)\VTK\bin

  3. Open python and try to import vtk to see if any error shows.