|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| == Platforms == | | == Platforms == |
|
| |
|
| * [[Building VTK On Linux|Linux]] | | * [[VTK/Building/Linux|Linux]] |
| * [[Building VTK On Mac OS X|Mac OS X]] | | * [[VTK/Building/MacOSX|Mac OS X]] |
| * [[VTK Building VTK#Building VTK CVS on Win32|Microsoft Windows]] | | * [[VTK/Building/Windows|Microsoft Windows]] |
| | |
| == Building VTK CVS on Win32 ==
| |
| | |
| '''Does not require the use of a CVS client'''
| |
| | |
| === Step 1 ===
| |
| Download VTK release you want from: [http://vtk.org/files/release/] and unpack the archive (zip or tar.gz) into
| |
| C:\MyProjects\VTK-src
| |
| | |
| === Step 2 ===
| |
| [http://cmake.org/HTML/Download.html Download CMake] (CMake 2.4.6). Choose the windows installer (cmake-2.4.6-win32.exe) and install it.
| |
| | |
| === Step 3 ===
| |
| | |
| Create a folder
| |
| C:\MyProjects\VTKCVSBin
| |
| | |
| This will store the compiled binaries
| |
| | |
| === Step 4 ===
| |
| | |
| Start CMake, provide the source codes and binaries paths to CMake. Then press Configure button to let CMake read the CMakeLists.txt from the source path and configure the variables. In your case you should have:
| |
| | |
| Where is the source code: C:\MyProjects\VTKCVS
| |
| Where to build the binaries: C:\MyProjects\VTKCVSBin
| |
| | |
| Once you hit 'Configure', make sure to turn on:
| |
| * BUILD_SHARED_LIBS
| |
| this causes the VTK dlls to be built. You should not change anything else.
| |
| | |
| === Step 5 ===
| |
| | |
| Open the VTK.sln (VTK.dsw for the old VS6) from
| |
| C:\MyProjects\VTKCVSBin
| |
| using VS .Net 2003 and build it. You can choose either to build in Release or Debug (prefer release since the code will be faster).
| |
| | |
| === Step 6 ===
| |
| | |
| Installation, the VTK dll will be in
| |
| C:\MyProjects\VTKCVSBin\bin\release
| |
| therefore by default the system cannot find them. You have the choice in either copying the dll to
| |
| c:\windows\system32
| |
| or change the environment variable PATH to include the path:
| |
| C:\MyProjects\VTKCVSBin\bin\release
| |
| | |
| '''Be very careful if you have multiple VTK installed on your system that you are using the right one'''. It is strongly suggested that only one version of the VTK dll be on one system.
| |
| | |
| === Step 7 ===
| |
| | |
| When building your project if you don't use CMake, make sure that ''Additional Include Directories'' and ''Additional Library Directories'' (from within the Visual Studio interface) are pointing to the proper path of VTKCVS and not the old VTK 4.4 or VTK5
| |
| | |
| == Installing VTK ==
| |
| | |
| '''NOTE''':
| |
| * Make sure to be using CMake 2.4.4 for this step. CMake 2.4.3 (and before) has a known issue with VS.Net 2003 + patch update.
| |
| * It is assumed that you have already built VTK. If not refer to previous section on how to build VTK.
| |
| | |
| Steps:
| |
| # Start CMake (CMakeSetup.exe).
| |
| # Configure VTK (select the correct binary directory in "Where to build the binaries").
| |
| # Select the proper path for "CMAKE_INSTALL_PREFIX". It should be something like : "C:/MY INSTALLATION/VTK"
| |
| # Click Configure
| |
| # Click "OK"
| |
| # Open Visual Studio, select the VTK.sln (VTK.dsw if using VS6) project from the binary directoy.
| |
| # Make sure that ALL_BUILD is the selected target. Build it. It should be a noop.
| |
| # Once this is done, select the "INSTALL" target. And build this target (eg. Right click on it, then Build this taget only). This will copy and the the correct permission for all the files needed to use VTK in the directory you have specified.
| |
| | |
| | |
| [[Image:VSSolutionExplorer.png|Visual Studio Solution Explorer]]
| |
| | |
| [[Image:INSTALLTarget.png|INSTALL Target]]
| |
| | |
| == Links ==
| |
| * [http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=502 Installing VTK 4.1.x on a windows PC]
| |
| * [http://www.spinet.pl/~wilku/vtk-howto/ How to build VTK with Java support on Windows]
| |
| * [http://www.duke.edu/~iwd/howto/VTK-Linux-Java_HOWTO.html Building VTK on Linux with Java support]
| |
|
| |
|
| {{VTK/Template/Footer}} | | {{VTK/Template/Footer}} |