[vtkusers] VTK 5.0 , ITK 2.4.1 compile errors with cygwin gcc 3.4.4

Obada Mahdi omahdi at gmx.de
Tue Jun 27 12:48:27 EDT 2006


Hi Stefanie!

Stefanie Nowak wrote:
> I try to compile VTK 5.0 and ITK 2.4.1 under Win32/Cygwin (gcc 3.4.4) 
> and get a lot of compiler errors.
> The makefiles are generated by CMake 2.2 using the compiler setting 
> "UNIX makefiles".
> Did I miss something in the settings?

As for the first few ITK compiling errors you have quoted, it looks like 
you have both win32threads and pthreads enabled -- maybe just an oversight?

I am not sure about the errors with VTK, they look similar to what 
happens if "windows.h" cannot be found (or is just not included).  How 
did you run CMake and make, from within a cygwin shell or outside?  That 
might affect the way CMake experiences the build environment and 
determines how to set preprocessor flags.


HTH,

Obada

> The first errors by compiling VTK 5.0
> 
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:141: error: 
> `wndClass' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:141: error: 
> `GetClassInfo' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:144: error: 
> `CS_HREDRAW' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:144: error: 
> `CS_VREDRAW' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:145: error: 
> `vtkWin32OutputWindowWndProc' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:149: error: 
> `IDI_APPLICATION' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:149: error: 
> `LoadIcon' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:151: error: 
> `IDC_ARROW' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:151: error: 
> `LoadCursor' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:152: error: 
> `HBRUSH' undeclared (first use this function)
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:152: error: 
> expected `;' before "GetStockObject"
> D:/VTK_gcc/VTK-5.0.0/Common/vtkWin32OutputWindow.cxx:162: error: 
> `RegisterClass' undeclared (first use this function)
> 
> The first errors by compiling ITK 2.4.1
> 
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116: 
> error: 'itk::ThreadFunctionType' has a previous declaration as `typedef 
> void*(*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:123: 
> error: conflicting declaration 'typedef DWORD 
> (*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116: 
> error: 'itk::ThreadFunctionType' has a previous declaration as `typedef 
> void*(*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:123: 
> error: declaration of `typedef DWORD (*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116: 
> error: conflicts with previous declaration `typedef 
> void*(*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:123: 
> error: declaration of `typedef DWORD (*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:116: 
> error: conflicts with previous declaration `typedef 
> void*(*itk::ThreadFunctionType)(void*)'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:124: 
> error: conflicting declaration 'typedef void*itk::ThreadProcessIDType'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:117: 
> error: 'itk::ThreadProcessIDType' has a previous declaration as `typedef 
> struct __pthread_t*itk::ThreadProcessIDType'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:124: 
> error: declaration of `typedef void*itk::ThreadProcessIDType'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:117: 
> error: conflicts with previous declaration `typedef struct 
> __pthread_t*itk::ThreadProcessIDType'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:124: 
> error: declaration of `typedef void*itk::ThreadProcessIDType'
> D:/ITK_gcc/InsightToolkit-2.4.1/Code/Common/itkMultiThreader.h:117: 
> error: conflicts with previous declaration `typedef struct 
> __pthread_t*itk::ThreadProcessIDType'



More information about the vtkusers mailing list