[Insight-users] vtk 5.2.0 + itk 3.10.1 + InsightApplications 3.10.0 error

Bill Lorensen bill.lorensen at gmail.com
Fri Jan 30 07:44:43 EST 2009


The first is a warning. To silence the warning, add  -Wno-deprecated
to the CXX_FLAGS in your CMakeLists.txt file.


On Fri, Jan 30, 2009 at 7:07 AM, Raúl Puchades <raulpuchades at hotmail.com> wrote:
> Hello, I'm trying to build an application that simply reads a DICOM CT
> Series and renders it with VTK volume renderer/s, also using Qt as GUI
> support.
>
>
>
> I'm using WinXp+Eclipse(Qt project)+MinGW as my programming environment.
>
>
>
> I've done everything using VTK's "vtkDICOMImageReader", which only can open
> a very small subset of DICOM images (Uncompressed image data .dcm files I
> supposse), that's the reason of using ITK for reading the CTs.
>
>
>
> I can build my application using Qt+VTK SDKs, but when I try to simply add
> (ITK):
>
>
>
> #include "itkImageToVTKImageFilter.h"  (It also happens with any other ITK
> header)
>
>
>
> to my project, I get this 2 first errors (of more than 1000) when compiling:
>
>
>
> " In file included from
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/strstream:51,
>
>                  from ../../../VTK_DEBUG/include/vtk-5.2/vtkIOStream.h:112,
>
>                  from
> ../../../VTK_DEBUG/include/vtk-5.2/vtkSystemIncludes.h:40,
>
>                  from ../../../VTK_DEBUG/include/vtk-5.2/vtkIndent.h:24,
>
>                  from ../../../VTK_DEBUG/include/vtk-5.2/vtkObjectBase.h:43,
>
>                  from ../../../VTK_DEBUG/include/vtk-5.2/vtkObject.h:41,
>
>                  from
> ../../../VTK_DEBUG/include/vtk-5.2/vtkRenderWindowInteractor.h:44,
>
>                  from C:\VTK_DEBUG\include\vtk-5.2\qvtkwidget.h:39,
>
>                  from ui_anotherviewer.h:14,
>
>                  from anotherviewer.h:8,
>
>                  from anotherviewer.cpp:1:
>
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one deprecated or antiquated
> header. Please consider using one of the 32 headers found in section
> 17.4.1.2 of the C++ standard. Examples include substituting the <X> header
> for the <X.h> header for C++ includes, or <iostream> instead of the
> deprecated header <iostream.h>. To disable this warning use
> -Wno-deprecated."
>
>
>
> "In file included from ../../../MinGW/include/windef.h:253,
>
>                  from ../../../MinGW/include/windows.h:48,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/Common/itkWindows.h:28,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/Common/itkSimpleFastMutexLock.h:34,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/Common/itkLightObject.h:23,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/Common/itkObject.h:23,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/Common/itkProcessObject.h:23,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/BasicFilters/itkVTKImageExportBase.h:20,
>
>                  from
> ../../../ITK_DEBUG/include/InsightToolkit/BasicFilters/itkVTKImageExport.h:20,
>
>                  from itkImageToVTKImageFilter.h:20,
>
>                  from anotherviewer.cpp:12:
>
> ../../../MinGW/include/winnt.h:154: error: expected initializer before '*'
> token"
>
>
>
> Winnt.h lines from 147 to 154:
>
>
>
> #ifdef STRICT
>
>  typedef void *HANDLE;
>
>  #define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n #else  typedef
> PVOID HANDLE;  #define DECLARE_HANDLE(n) typedef HANDLE n #endif typedef
> HANDLE *PHANDLE,*LPHANDLE;
>
>
>
>
>
> The rest of the errors are all related to the same thing: HANDLE type
> definition not recognized.
>
>
>
> Any clue? I'm desperate :)
>
>
>
> VTK_SHARED_LIBS=ON
>
> ITK_SHARED_LIBS=ON
>
>
>
> Raúl Puchades Romance
>
>
> ________________________________
> Con el nuevo Windows Live lo tendrás todo al alcance de tu mano
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list