[vtkusers] cmake problems gdcm with vtk6

Lars Matthäus lars.matthaeus at web.de
Wed Feb 6 10:48:37 EST 2013


Hi Goodwin,

The VTK_MAKE_INSTANTIATORS flag didn't help, but your second suggestion
to include the vtkMakeInstantiator.cmake macro in the
Utilities/VTK/CMakeLists.txt of gdcm did the trick.

Thanks a lot!

Lars

Am 04.02.2013 23:22, schrieb Goodwin Lawlor:
> Hi Lars,
> 
> That macro (VTK_MAKE_INSTANTIATOR3) was included in the root
> CMakeLists.txt in VTK 5.x but not 6.0.
> 
> You've 2 choices:
> 
> 1. Set the advanced flag (new in vtk6) VTK_MAKE_INSTANTIATORS and rebuild VTK.
> 
> or
> 
> 2. Include the macro yourself (it's still there in the cmake dir)
> 
> Something like
> 
> include(${VTK_CMAKE_DIR}/vtkMakeInstantiator.cmake)
> 
> at the top of Utilities/VTK/CMakeLists.txt should do it.
> 
> I think option 2 is better since option 1 creates Instantiators for
> all modules - which you probably don't need.
> 
> hth
> 
> Goodwin
> 
> 
> 
> On Mon, Feb 4, 2013 at 8:17 PM, Lars Matthäus <lars.matthaeus at web.de> wrote:
>>
>> Dear all,
>>
>> Nobody on the gdcm mailing list had any idea, so maybe some of the VTK
>> folks can help to solve this, as this seems to be related to the vtk
>> changes 5.10 -> 6.0:
>>
>> When I try to configure gdcm with vtk option (GDCM_USE_VTK), I get a
>> cmake error when I try to "link/build/cmake" against a vtk 6.0
>> configuration:
>>
>> CMake Error at Utilities/VTK/CMakeLists.txt:111 (VTK_MAKE_INSTANTIATOR3):
>>   Unknown CMake command "VTK_MAKE_INSTANTIATOR3".
>>
>> Before cmake'ing gdcm, I had successfully configured and release-build
>> vtk (shared libs ON, java wrapping ON).
>>
>>
>> All is fine when I try to "cmake" against a vtk 5.10 version (same
>> settings).
>>
>>
>> Any ideas?
>>
>> Thanks,
>> Lars



More information about the vtkusers mailing list