[Insight-users] Insight 1.6 Compilation

mauricio.inforcati at cenpra.gov.br mauricio.inforcati at cenpra.gov.br
Wed, 18 Feb 2004 17:10:19 Brazil/East


Hi,  
I am trying to compile Insight Toolkit 1.6 on linux machine and i'm having  
problems. I use Conectiva 8 distribution and want to use it with python2.3. 
This is my make output...   
  
Building wrap_ITKCommonBase.xml from   
/(HOMEDIR)/InsightToolkit-1.6.0-binary/Wrapping/CSwig/Common/wrap_ITKCommonBase.xml...  
In file included from /usr/include/g++-3/stl_alloc.h:71,  
                 from /usr/include/g++-3/alloc.h:21,  
                 from /usr/include/g++-3/std/bastring.h:39,  
                 from /usr/include/g++-3/string:6,  
                 from /usr/lib/CableSwig/share/gccxml-0.5/GCC/2.95/string:4,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkMacro.h:36,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkSmartPointer.h:20,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkLightObject.h:27,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkObject.h:23,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkCommand.h:20,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:  
/usr/include/pthread.h:163: error: syntax error before `__thread'  
/usr/include/pthread.h:165: error: `pthread_create' declared as function  
   returning a function  
/usr/include/pthread.h:166: error: syntax error before `void'  
/usr/include/pthread.h:591: error: storage class specifiers invalid in  
   parameter declarations  
/usr/include/pthread.h:591: error: storage class specified for parameter `  
   parameter'  
In file included from /usr/include/pthread.h:655,  
                 from /usr/include/g++-3/stl_alloc.h:71,  
                 from /usr/include/g++-3/alloc.h:21,  
                 from /usr/include/g++-3/std/bastring.h:39,  
                 from /usr/include/g++-3/string:6,  
                 from /usr/lib/CableSwig/share/gccxml-0.5/GCC/2.95/string:4,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkMacro.h:36,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkSmartPointer.h:20,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkLightObject.h:27,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkObject.h:23,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkCommand.h:20,  
                 from  
/(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common/wrap_ITKCommonBase.cxx:21:  
/usr/include/bits/sigthread.h:36: error: storage class specifiers invalid in  
   parameter declarations  
/usr/include/bits/sigthread.h:36: error: storage class specified for parameter  
   `parameter'  
make[5]: ***  
[/(HOME)/ITK/InsightToolkit-1.6.0-binary/Wrapping/CSwig/Common/wrap_ITKCommonBase.xml]  
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_Wrapping_CSwig] Error 2  
make: *** [default_target] Error 2  
 
 
------------------------------------------------------------------------------- 
CableSwig was compiled without any problem. 
Thanks , 
 
  Mauricio 
 

---------------------------------------------
Centro de Pesquisa Renato Archer
http://www.cenpra.gov.br/