[vtkusers] Building VTK 5.0 on Windows

Sander Niemeijer niemeijer at science-and-technology.nl
Tue Jan 31 12:04:02 EST 2006


Hi all,

I just found out that an official 5.0 release has been made available  
from the VTK site (and did I miss something, or has there indeed not  
been an announcement of this on the mailinglist? Would have been nice  
to have gotten one).

I was already using a CVS snapshot of VTK 5.0 from somewhere in  
September last year, but it seems a few things have changed since  
then. There are some problems with the new release that I do not know  
how to solve:

On Windows when trying to build VTK from source I get various  
occasions of the following error message when running CMake:

---
Unknown CMake command "VTK_GET_TCL_TK_VERSION"
---

(the full output of CMake is at the bottom of this e-mail)

The CMake command I am using is (this is run from C:\vtkbuild\vtkbin):

C:\builddir\CMake\bin\cmake.exe -G"Visual Studio 7 .NET 2003" - 
DBUILD_TESTING:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON - 
DVTK_USE_HYBRID:BOOL=ON -DVTK_WRAP_PYTHON:BOOL=ON - 
DTK_STUB_LIBRARY:PATH="C:\builddir\Tcl\lib\tkstub84.lib" - 
DTK_LIBRARY:PATH="C:\builddir\Tcl\lib\tk84.lib" - 
DTK_INCLUDE_PATH:PATH="C:\builddir\Tcl\include" - 
DTCL_STUB_LIBRARY:PATH="C:\builddir\Tcl\lib\tclstub84.lib" - 
DTCL_LIBRARY:PATH="C:\builddir\Tcl\lib\tcl84.lib" - 
DTCL_INCLUDE_PATH:PATH="C:\builddir\Tcl\include" -DPYTHON_LIBRARY="C: 
\builddir\Python24\libs\python24.lib" -DPYTHON_INCLUDE_PATH="C: 
\builddir\Python24\include" -DPYTHON_EXECUTABLE="C:\builddir\Python24 
\python.exe" -DPYTHON_DEBUG_LIBRARY="C:\builddir\Python24\libs 
\python24.lib" "C:\vtkbuild\VTK"

This should generate a VTK.sln file that allows me to build the VTK  
libraries and Python extensions (using 'devenv VTK.sln /build  
"Release"'). However, the VTK.sln doesn't show up anymore as it did  
with my September CVS snapshot of VTK 5.0. I also couldn't really  
tell whether this was a result of the VTK_GET_TCL_TK_VERSION error or  
not, since CMake ended with a normal '-- Configuring done'.

I first tried the CMake run with CMake 2.0 (patch 6), but later also  
tried the same cmake command with CMake 2.2 (patch 3). This also  
showed the VTK_GET_TCL_TK_VERSION error (but now only once) and still  
didn't give me a VTK.sln file.

Is there anyone who knows how to fix this?

Best regards,
Sander Niemeijer



Full output of CMake 2.0 (patch 6) run:
=====

-- Check for working C compiler: cl
-- Check for working C compiler: cl -- works
-- Check for working CXX compiler: cl
-- Check for working CXX compiler: cl -- works
-- Check size of long long
-- Check size of long long - done
-- Check size of __int64
-- Check size of __int64 - done
-- Checking whether long and __int64 are the same type
-- Checking whether long and __int64 are the same type -- no
-- Checking whether long long and __int64 are the same type
-- Checking whether long long and __int64 are the same type -- yes
-- Checking support for C++ type bool
-- Checking support for C++ type bool -- yes
-- Checking support for full template specialization syntax
-- Checking support for full template specialization syntax -- yes
-- Checking signedness of char
-- Checking signedness of char -- signed
-- Checking support for C++ explicit template instantiation
-- Checking support for C++ explicit template instantiation -- yes
-- Compiling VTK CMake commands
-- Compiling VTK CMake commands - done
-- Loading VTK CMake commands
-- Loading VTK CMake commands - done
-- Checking for CXX include file iosfwd
-- Checking for CXX include file iosfwd -- found
-- Checking for CXX include file iostream.h
-- Checking for CXX include file iostream.h -- not found
-- Checking ANSI streams end-of-file bug level
-- Checking ANSI streams end-of-file bug level - 0
-- Checking if ostream supports long long
-- Checking if ostream supports long long -- yes
-- Checking if istream supports long long
-- Checking if istream supports long long -- yes
-- Checking if vfw32 is available
-- Checking if vfw32 is available -- yes
-- Checking if vfw32 supports video capture
-- Checking if vfw32 supports video capture -- yes
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
-- Checking whether STL classes are in std namespace
-- Checking whether STL classes are in std namespace - yes
-- Checking whether ANSI stream headers are available
-- Checking whether ANSI stream headers are available - yes
-- Checking whether ANSI streams are in std namespace
-- Checking whether ANSI streams are in std namespace - yes
-- Checking whether ANSI string stream is available
-- Checking whether ANSI string stream is available - yes
-- Checking whether header cstddef is available
-- Checking whether header cstddef is available - yes
-- Checking whether stl string has operator!= for char*
-- Checking whether stl string has operator!= for char* - yes
-- Checking whether stl has iterator_traits
-- Checking whether stl has iterator_traits - yes
-- Checking whether stl has standard template allocator
-- Checking whether stl has standard template allocator - yes
-- Checking for rebind member of stl allocator
-- Checking for rebind member of stl allocator - yes
-- Checking for non-standard argument to stl allocator<>::max_size
-- Checking for non-standard argument to stl allocator<>::max_size - no
-- Checking whether stl containers support allocator objects.
-- Checking whether stl containers support allocator objects. - yes
-- Checking whether "<>" is needed for template friends
-- Checking whether "<>" is needed for template friends - yes
-- Checking for member template support
-- Checking for member template support - yes
-- Checking for standard template specialization syntax
-- Checking for standard template specialization syntax - yes
-- Checking whether argument dependent lookup is supported
-- Checking whether argument dependent lookup is supported - yes
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
-- Check for STD namespace
-- Check for STD namespace - found
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
-- Looking for include files STDC_HEADERS
-- Looking for include files STDC_HEADERS - found
-- Looking for include files HAVE_ALLOCA_H
-- Looking for include files HAVE_ALLOCA_H - not found.
-- Looking for include files HAVE_STDLIB_H
-- Looking for include files HAVE_STDLIB_H - found
-- Looking for include files HAVE_SYS_TYPES_H
-- Looking for include files HAVE_SYS_TYPES_H - found
-- Looking for include files HAVE_SYS_STAT_H
-- Looking for include files HAVE_SYS_STAT_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - not found.
-- Looking for include files HAVE_FCNTL_H
-- Looking for include files HAVE_FCNTL_H - found
-- Looking for include files HAVE_STDIO_H
-- Looking for include files HAVE_STDIO_H - found
-- Looking for include files HAVE_STRING_H
-- Looking for include files HAVE_STRING_H - found
-- Looking for include files HAVE_STDDEF_H
-- Looking for include files HAVE_STDDEF_H - found
-- Looking for include files HAVE_STDINT_H
-- Looking for include files HAVE_STDINT_H - not found.
-- Looking for alloca
-- Looking for alloca - not found.
-- Looking for strerror
-- Looking for strerror - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - failed
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of double
-- Check size of double - done
-- Check size of float
-- Check size of float - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Check size of uchar
-- Check size of uchar - failed
-- Performing NetCDF Test HAVE_ST_BLKSIZE
-- Performing NetCDF Test HAVE_ST_BLKSIZE - Failed
-- Performing NetCDF Test HAVE_FTRUNCATE
-- Performing NetCDF Test HAVE_FTRUNCATE - Failed
-- Check if the system is big endian
-- Check if the system is big endian - little endian
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
CMake Error: Error in cmake code at
C:/visanbin/VTK50/Wrapping/Tcl/vtkDetermineTkResources.cmake:4:
Unknown CMake command "VTK_GET_TCL_TK_VERSION".
-- Configuring done






More information about the vtkusers mailing list