Wednesday, January 30, 2008

VTK 5.04, libpng, and many others

VTK:
  • follow instruction on how to build VTK from source
  • get CMake
  • run CMakeSetup.exe from VS command line env
  • set the configurations
  • open the generated solution file and build from there
VTK python:
  • after compile and build, use the INSTALL project in the VS solution to install it to configured directory
  • to have vtkpython find these vtk packages add this to env:
    • PYTHONPATH=D:\VTK\bin;D:\VTK\lib\site-packages
    • rename all vtk*python.dll to vtk*python.pyd (python 2.5 only recognizes *.pyd files as packages)
libpng
  • convert solution files current VS
  • zlib project in the solution doesn't work well, just remove it
  • update zlib include and lib path in libpng and pngtest project config
libtiff 3.8.2
  • open nmake.opt and update the path to zlib and libjpeg
  • then open up VS command line env go to libtiff dir run "nmake /f makefile.vc"
  • read install instructions from the lib online for windows
libjpeg
  • read the install doc, basically copy jconfig.doc to jconfig.h then run "nmake /f makefile.vc"
zlib
  • if you use the prebuilt binary lib from zlib, put the dll file in the system directory so these libraries can find it

No comments: