[vtkusers] VTK 5.6.0 Cmake Errors

Scott Johnson Scott.Johnson at neuwave.com
Thu Jun 17 10:22:53 EDT 2010


I just cracked open the vtk-5.6.0.zip file into a directory, pointed CMake at it, and tried to configure it.  I turned on BUILD_SHARED_LIBS, VTK_USE_GUISUPPORT, VTK_USE_RENDERING, VTK_WRAP_PYTHON, and VTK_WRAP_TCL.

I'm trying to build the vtk libraries, both release and debug, to use for my development.  I haven't been able to find a source for pre-made versions of these.

What I've done in the past is build in one directory then use the INSTALL target to move the libraries to the C:\Program Files\VTK.  I have specified to build the binaries in i:/VTK5.6.0/Binaries.  I think that qualifies as not building 'insource'.

Thanks

		-- Scott

-----Original Message-----
From: John Drescher [mailto:drescherjm at gmail.com] 
Sent: Thursday, June 17, 2010 9:11 AM
To: Scott Johnson
Cc: VTK
Subject: Re: [vtkusers] VTK 5.6.0 Cmake Errors

On Thu, Jun 17, 2010 at 10:07 AM, Scott Johnson
<Scott.Johnson at neuwave.com> wrote:
> Hi Folks,
>
>
>
> I'm attempting to move to VTK 5.6.0.  I'm building it on Windows XP with
> Visual Studio 2008 using CMake 2.8.1 and downloaded the vtk-5.6.0.zip file
> from the vtk download page.
>
>
>
> I can get rid of all the errors and warnings except:
>
>
>
> CMake Error at CMakeLists.txt:1251 (ADD_SUBDIRECTORY):
>
> add_subdirectory not given a binary directory but the given source
>
> directory "I:/VTK5.6.0/Utilities" is not a subdirectory of "i:/VTK5.6.0".
>
> When specifying an out-of-tree source a binary directory must be explicitly
>
> specified.
>
>
>
> CMake Error at Common/CMakeLists.txt:299 (CHECK_FUNCTION_EXISTS):
>
> Unknown CMake command "CHECK_FUNCTION_EXISTS".
>
>
>
> The Utilities folder is present in the VTK5.6.0 directory.  If I move it out
> of the way I run into a number of other errors.  I've tried clearing the
> Cache in Cmake, deleting my Binaries directory, ... to no avail.  Do I have to
> build the Utilities directory first?
>
>
>
> Any wisdom would be appreciated.
>

Are you trying to build insource meaning the binaries and source are
in the same tree?

John



More information about the vtkusers mailing list