[Insight-developers] Trouble buliding ITKCommon

Bill Hoffman bill.hoffman at kitware.com
Wed Nov 29 18:33:48 EST 2000


Thanks for the report.   I have fixed the build for cygwin and I think for 
linux.   BTW, what compiler are you using
on linux?   You should be using gcc 2.95.2.     As for the SunOS, that 
looks like a bad compiler installation on
your machine.   You are getting a syntax error in unistd.h which is a 
system file.  Right now we do not support the
Sun compiler, so you must be using gcc, but gcc has its own include files 
and should not be using /usr/include/unistd.h.

Try and update and let me know if it works.

-Bill


At 01:02 PM 11/29/00 -0500, Parag Chandra wrote:
>Hi,
>I'm having some problems building ITKCommon on nearly every platform. I 
>did an update on the source tree this morning for the first time in a 
>couple of weeks, and the library and BasicArchitectureTest build and run 
>successfully only on VC++. Here's the errors I get when trying to compile 
>ITKCommon
>
>Under Cygwin:
>In file included from ../../../Insight/Code/Common/itkMultiThreader.h:20,
>                  from ../../../Insight/Code/Common/itkProcessObject.h:21,
>                  from ../../../Insight/Code/Common/itkDataObject.cxx:17:
>../../../Insight/Code/Common/itkMutexLock.h:37: conflicting types for 
>`typedef void * itk::MutexType'
>../../../Insight/Code/Common/itkMutexLock.h:32: previous declaration as 
>`typedef pthread_mutex_t itk::MutexType'
>...
>
>Under SunOS:
>In file included from ../../../Insight/Code/Common/itkMultiThreader.h:29,
>                  from ../../../Insight/Code/Common/itkProcessObject.h:21,
>                  from ../../../Insight/Code/Common/itkDataObject.cxx:17:
>/usr/include/unistd.h:211: type specifier omitted for parameter
>/usr/include/unistd.h:255: type specifier omitted for parameter
>/usr/include/unistd.h:274: syntax error before `('
>...
>
>Under Linux:
>../../../Insight/Code/Common/itkProcessObject.cxx: In method `void 
>::itk::ProcessObject::SetNthInput(unsigned int, class ::itk::DataObject *)':
>../../../Insight/Code/Common/itkProcessObject.cxx:143: no match for 
>`::itk::DataObject *& == ::itk::::itk::SmartPointer<::itk::DataObject> &'
>...
>
>Just to be sure, I did a checkout in a brand new directory and still got 
>these errors. I think I read in the mailing list a couple days ago that 
>something is broken, but I was under the impression that ITKCommon still 
>builds correctly. Is anyone else encountering these same errors or have a 
>workaround?
>
>Thanks,
>-Parag Chandra





More information about the Insight-developers mailing list