[Insight-users] Problem compiling ITK-2.0.1with Cygwin/Cygwin and Java Wrapper

Stefan Lindenau stefan.lindenau at gmx.de
Sun May 1 10:27:51 EDT 2005


Hi there,

i have a problem compiling ITK with the Cygwin compiler. I am using:

CMake 2.0 patch 6
Insight-2.0.1
gcc (GCC) 3.3.3 (cygwin special)

As the target for compiling I am using Unix Makefiles. When I switch 
into the Build Directory and do the make it fails with the following error:

G:/sta/Insight/ITK-Binary/Code/Common: building default_target
Building object file itkBarrier.o...
In file included from 
G:/sta/Insight/InsightToolkit-2.0.1/Code/Common/itkConditionVariable.h:31,
                 from 
G:/sta/Insight/InsightToolkit-2.0.1/Code/Common/itkBarrier.h:21,
                 from 
G:/sta/Insight/InsightToolkit-2.0.1/Code/Common/itkBarrier.cxx:20:
G:/sta/Insight/InsightToolkit-2.0.1/Code/Common/itkMutexLock.h:50: 
error: conflicting
   types for `typedef void*itk::MutexType'
G:/sta/Insight/InsightToolkit-2.0.1/Code/Common/itkMutexLock.h:46: 
error: previous
   declaration as `typedef struct __pthread_mutex_t*itk::MutexType'
make[5]: *** [itkBarrier.o] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Common] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Code] Error 2
make: *** [default_target] Error 2

Another point: Is it possible to compile a Java Wrapper with Cygwin or 
do I need something like Visual Studio? Do you have any starting point 
for compiling and using these wrapper classes?

Thanks in Advance,
Stefan Lindenau


More information about the Insight-users mailing list