[Insight-users] vtk 5.2.0 + itk 3.10.1 + InsightApplications 3.10.0 error
Raúl Puchades
raulpuchades at hotmail.com
Fri Jan 30 07:07:08 EST 2009
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
_________________________________________________________________
Consigue gratis el nuevo Messenger. ¡Descárgatelo!
http://download.live.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090130/1fd0b8a6/attachment-0001.htm>
More information about the Insight-users
mailing list