[vtkusers] VTK 5.6.0 Cmake Errors

Benoit.Bleuze at sophia.inria.fr Benoit.Bleuze at sophia.inria.fr
Tue Jul 27 06:03:52 EDT 2010


Scott johnson had this problem a while back (in June, but I was not on 
the list at that time), with the configuration of VTK 5.6.0 using cmake 
on windows.
Let me remind you the issue he had:

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".




I encountered recently the same problem. He resolved it for him by 
chance, but without knowing the reason. I had the problem, but not on a 
network drive, on a local C drive actually.

Please note the difference between "I:/VTK5.6.0/Utilities" and 
"i:/VTK5.6.0". The capital "I" has been replaced by a small case "i" in 
his command line argument. I had the sae problem with a small case c in 
my command line. Could it be that the check performed on the presence of 
a Utilities directory is a simple substring matching test?

The problem is that on windows path or case independent, and this is a 
small detail but very annoying indeed. It took me a day to figure it 
out. Contrary to what other people said in the discussion the fact that 
Scott did insource compilation was not a factor here. in source or not, 
the determining point is the correct case.

I hope this will help improving the cmake scripts of vtk,
otherwise, keep on the good work guys,
Benoît Bleuzé.









More information about the vtkusers mailing list