[ITK] [ITK-users] itkvtkglue build error.. please help
Matt McCormick
matt.mccormick at kitware.com
Thu Dec 17 12:51:23 EST 2015
Hi,
The easiest to use and best maintained bridge between ITK and VTK is the
ITKVtkGlue module, which is included in ITK. To use it, turn on
Module_ITKVtkGlue
in ITK's CMake configuration.
http://www.itk.org/Insight/Doxygen/html/group__ITKVtkGlue.html
HTH,
Matt
On Thu, Dec 17, 2015 at 9:51 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
> Hi Vishal,
>
> it looks like that version of itkVtkGlue is for a newer version of ITK.
> Try this version:
>
> http://itk.org/gitweb?p=ITKApps.git;a=tree;f=Auxiliary/vtk;h=b6ae10b549c4ff60473b9069276a62fe1f7433bf;hb=2b5ec98662341c295f25da915afa4c0a8e794850
>
> HTH,
> Dženan
>
> On Thu, Dec 17, 2015 at 3:17 AM, vishal <itkhelpacc at gmail.com> wrote:
>
>> hi
>> Im using ITK 3.20, VTK 5.10, CMake 3.4.1 and Visual studio 2010... I have
>> successfully build ITK as well as VTK... I need to combine both these
>> libraries so i downloaded itkvtkglue package from Wiki examples Im getting
>> the following error while build it in visual studio 2010... i have tried
>> building it in Visual studio 2008 unfortunately it was still it was
>> showing
>> the same error:-
>>
>> 1> CMake does not need to re-run because
>> C:/ItkVtkGlue/Build/CMakeFiles/generate.stamp is up-to-date.
>> 1>FinalizeBuildStatus:
>> 1> Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
>> 1> Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
>> 1>
>> 1>Build succeeded.
>> 1>
>> 1>Time Elapsed 00:00:00.48
>> 2>------ Build started: Project: ItkVtkGlue, Configuration: Debug x64
>> ------
>> 2>Build started 12/17/2015 2:15:33 PM.
>> 2>PrepareForBuild:
>> 2> Creating directory "C:\ItkVtkGlue\Build\Debug\".
>> 2>InitializeBuildStatus:
>> 2> Creating "ItkVtkGlue.dir\Debug\ItkVtkGlue.unsuccessfulbuild" because
>> "AlwaysCreate" was specified.
>> 2>CustomBuild:
>> 2> Building Custom Rule C:/ItkVtkGlue/CMakeLists.txt
>> 2> CMake does not need to re-run because
>> C:\ItkVtkGlue\Build\CMakeFiles\generate.stamp is up-to-date.
>> 2>ClCompile:
>> 2> QuickView.cxx
>> 2>c:\itkvtkglue\QuickView.h(210): error C2039: 'IdentifierType' : is not a
>> member of 'itk'
>> 2>c:\itkvtkglue\QuickView.h(210): error C2146: syntax error : missing ';'
>> before identifier 'm_Counter'
>> 2>c:\itkvtkglue\QuickView.h(210): error C4430: missing type specifier -
>> int
>> assumed. Note: C++ does not support default-int
>> 2>c:\itkvtkglue\QuickView.h(210): error C4430: missing type specifier -
>> int
>> assumed. Note: C++ does not support default-int
>> 2>c:\itkvtkglue\QuickView.h(112): error C2065: 'm_Counter' : undeclared
>> identifier
>> 2>c:\itkvtkglue\itkImageToVTKImageFilter.h(68): error C2873: 'SetInput' :
>> symbol cannot be used in a using-declaration
>> 2> c:\itkvtkglue\itkImageToVTKImageFilter.h(94) : see reference
>> to
>> class template instantiation 'itk::ImageToVTKImageFilter<TInputImage>'
>> being
>> compiled
>> 2>c:\itkvtkglue\itkImageToVTKImageFilter.h(68): error C2039: 'SetInput' :
>> is
>> not a member of 'itk::ProcessObject'
>> 2>
>> C:\ITK\InsightToolkit-3.20.1\Code\Common\itkProcessObject.h(87)
>> : see declaration of 'itk::ProcessObject'
>> 2> ..\QuickView.cxx(254) : see reference to class template
>> instantiation 'itk::ImageToVTKImageFilter<TInputImage>' being compiled
>> 2> with
>> 2> [
>> 2> TInputImage=itk::Image<unsigned char,2>
>> 2> ]
>> 2>c:\itkvtkglue\itkImageToVTKImageFilter.h(68): error C2873: 'SetInput' :
>> symbol cannot be used in a using-declaration
>> 2>c:\itkvtkglue\itkImageToVTKImageFilter.h(68): error C2039: 'SetInput' :
>> is
>> not a member of 'itk::ProcessObject'
>> 2>
>> C:\ITK\InsightToolkit-3.20.1\Code\Common\itkProcessObject.h(87)
>> : see declaration of 'itk::ProcessObject'
>> 2> ..\QuickView.cxx(255) : see reference to class template
>> instantiation 'itk::ImageToVTKImageFilter<TInputImage>' being compiled
>> 2> with
>> 2> [
>> 2> TInputImage=itk::Image<itk::RGBPixel<unsigned char>,2>
>> 2> ]
>> 2>c:\itkvtkglue\itkImageToVTKImageFilter.h(68): error C2873: 'SetInput' :
>> symbol cannot be used in a using-declaration
>> 2>..\QuickView.cxx(423): error C2065: 'm_Counter' : undeclared identifier
>> 2>..\QuickView.cxx(447): error C2065: 'm_Counter' : undeclared identifier
>> 2>
>> 2>Build FAILED.
>> 2>
>> 2>Time Elapsed 00:00:02.64
>> 3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64
>> ------
>> 3>Build started 12/17/2015 2:15:36 PM.
>> 3>InitializeBuildStatus:
>> 3> Creating "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because
>> "AlwaysCreate" was specified.
>> 3>CustomBuild:
>> 3> Building Custom Rule C:/ItkVtkGlue/CMakeLists.txt
>> 3> CMake does not need to re-run because
>> C:\ItkVtkGlue\Build\CMakeFiles\generate.stamp is up-to-date.
>> 3>FinalizeBuildStatus:
>> 3> Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
>> 3> Touching "x64\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".
>> 3>
>> 3>Build succeeded.
>> 3>
>> 3>Time Elapsed 00:00:00.22
>> ========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped
>> ==========
>>
>> Im trying to write a code for 2D/3D registration so..I need to ITK 3.20
>> and
>> VTK since im trying to build a journal paper [1]
>> http://www.insight-journal.org/browse/publication/784
>> please help me out...
>> Regards
>> Vishal
>>
>>
>>
>> --
>> View this message in context:
>> http://itk-users.7.n7.nabble.com/itkvtkglue-build-error-please-help-tp36559.html
>> Sent from the ITK - Users mailing list archive at Nabble.com.
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users
>>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20151217/9a14314c/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list