[Insight-developers] SimpleITK compilation error

Bradley Lowekamp blowekamp at mail.nih.gov
Fri Sep 30 09:25:17 EDT 2011


Hello Arnaud,

This error looks only related to CSharp. Dan Mueller is the CSharp expert, hopefully he as some insight.

What version of OS, and mono are you using?

Thanks for let up know what's not working for you,
Brad

On Sep 30, 2011, at 9:17 AM, Arnaud Gelas wrote:

> Hi Brad,
> 
> I am recompiling SimpleITK (master) this morning and I get compilation 
> errors (see errors below).
> 
> BTW, is there a mailing list for SimpleITK where I could post such a 
> message?
> 
> Thanks,
> Arnaud
> 
> Linking CXX shared module ../../lib/_SimpleITK.so
> Creating Python virtualenv
> Already using interpreter /usr/bin/python2.6
> New python executable in 
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/bin/python2.6
> Also creating executable in 
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/bin/python
> [ 56%] Built target SimpleITKUnitTestDriver
> Installing 
> distribute....................................................................................................................................................................................done.
> Installing 
> pip.../home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(12,122): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `sitkUnknow_get'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(12,139): 
> error CS1502: The best overloaded method match for 
> `itk.simple.InterpolateFunctionEnum.InterpolateFunctionEnum(string, 
> itk.simple.InterpolateFunctionEnum)' has some invalid arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(43,11): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(12,139): 
> error CS1503: Argument `#2' cannot convert `object' expression to type 
> `itk.simple.InterpolateFunctionEnum'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(13,140): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `sitkNearestNeighbor_get'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(13,166): 
> error CS1502: The best overloaded method match for 
> `itk.simple.InterpolateFunctionEnum.InterpolateFunctionEnum(string, 
> itk.simple.InterpolateFunctionEnum)' has some invalid arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(43,11): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(13,166): 
> error CS1503: Argument `#2' cannot convert `object' expression to type 
> `itk.simple.InterpolateFunctionEnum'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(14,144): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `sitkLinearInterpolate_get'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(14,172): 
> error CS1502: The best overloaded method match for 
> `itk.simple.InterpolateFunctionEnum.InterpolateFunctionEnum(string, 
> itk.simple.InterpolateFunctionEnum)' has some invalid arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(43,11): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(14,172): 
> error CS1503: Argument `#2' cannot convert `object' expression to type 
> `itk.simple.InterpolateFunctionEnum'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(15,134): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `sitkWindowedSinc_get'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(15,157): 
> error CS1502: The best overloaded method match for 
> `itk.simple.InterpolateFunctionEnum.InterpolateFunctionEnum(string, 
> itk.simple.InterpolateFunctionEnum)' has some invalid arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(43,11): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/InterpolateFunctionEnum.cs(15,157): 
> error CS1503: Argument `#2' cannot convert `object' expression to type 
> `itk.simple.InterpolateFunctionEnum'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(17,86): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `ResampleImageFilter_SWIGUpcast'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(17,64): 
> error CS1502: The best overloaded method match for 
> `itk.simple.ImageFilter.ImageFilter(System.IntPtr, bool)' has some 
> invalid arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ImageFilter.cs(18,12): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(17,64): 
> error CS1503: Argument `#1' cannot convert `object' expression to type 
> `System.IntPtr'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(43,56): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `new_ResampleImageFilter'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(43,34): 
> error CS1502: The best overloaded method match for 
> `itk.simple.ResampleImageFilter.ResampleImageFilter(System.IntPtr, 
> bool)' has some invalid arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(17,12): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/ResampleImageFilter.cs(43,34): 
> error CS1503: Argument `#1' cannot convert `object' expression to type 
> `System.IntPtr'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SOptimizer.cs(44,47): 
> error CS0117: `itk.simple.SimpleITKPINVOKE' does not contain a 
> definition for `new_SOptimizer'
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SimpleITKPINVOKE.cs(14,7): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SOptimizer.cs(44,25): 
> error CS1502: The best overloaded method match for 
> `itk.simple.SOptimizer.SOptimizer(System.IntPtr, bool)' has some invalid 
> arguments
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SOptimizer.cs(18,12): 
> (Location of the symbol related to previous error)
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Wrapping/CSharpSources/SOptimizer.cs(44,25): 
> error CS1503: Argument `#1' cannot convert `object' expression to type 
> `System.IntPtr'
> Compilation failed: 21 error(s), 0 warnings
> make[5]: *** [Wrapping/SimpleITKCSharpManaged.dll] Error 1
> make[4]: *** [Wrapping/CMakeFiles/SimpleITKCSharpManaged.dir/all] Error 2
> make[4]: *** Waiting for unfinished jobs....
> ..................done.
> Installing python module to the virtualenv
> running install
> running bdist_egg
> running egg_info
> writing SimpleITK.egg-info/PKG-INFO
> writing top-level names to SimpleITK.egg-info/top_level.txt
> writing dependency_links to SimpleITK.egg-info/dependency_links.txt
> warning: manifest_maker: standard file 'setup.py' not found
> reading manifest file 'SimpleITK.egg-info/SOURCES.txt'
> writing manifest file 'SimpleITK.egg-info/SOURCES.txt'
> installing library code to build/bdist.linux-x86_64/egg
> running install_lib
> running build_py
> creating build/bdist.linux-x86_64/egg
> copying build/lib.linux-x86_64-2.6/SimpleITK.py -> 
> build/bdist.linux-x86_64/egg
> byte-compiling build/bdist.linux-x86_64/egg/SimpleITK.py to SimpleITK.pyc
> [ 56%] Built target org_itk_simple_jar
> installing package data to build/bdist.linux-x86_64/egg
> running install_data
> copying /home/ajg23/GITROOT/SimpleITK/build/lib/_SimpleITK.so -> 
> build/bdist.linux-x86_64/egg/
> creating build/bdist.linux-x86_64/egg/EGG-INFO
> copying SimpleITK.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
> copying SimpleITK.egg-info/SOURCES.txt -> 
> build/bdist.linux-x86_64/egg/EGG-INFO
> copying SimpleITK.egg-info/dependency_links.txt -> 
> build/bdist.linux-x86_64/egg/EGG-INFO
> copying SimpleITK.egg-info/not-zip-safe -> 
> build/bdist.linux-x86_64/egg/EGG-INFO
> copying SimpleITK.egg-info/top_level.txt -> 
> build/bdist.linux-x86_64/egg/EGG-INFO
> creating 'dist/SimpleITK-0.3.0-py2.6.egg' and adding 
> 'build/bdist.linux-x86_64/egg' to it
> removing 'build/bdist.linux-x86_64/egg' (and everything under it)
> Processing SimpleITK-0.3.0-py2.6.egg
> creating 
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/lib/python2.6/site-packages/SimpleITK-0.3.0-py2.6.egg
> Extracting SimpleITK-0.3.0-py2.6.egg to 
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/lib/python2.6/site-packages
> Adding SimpleITK 0.3.0 to easy-install.pth file
> 
> Installed 
> /home/ajg23/GITROOT/SimpleITK/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/lib/python2.6/site-packages/SimpleITK-0.3.0-py2.6.egg
> Processing dependencies for SimpleITK==0.3.0
> Finished processing dependencies for SimpleITK==0.3.0
> [ 57%] Built target _SimpleITK
> make[3]: *** [all] Error 2
> make[2]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2
> make[1]: *** [CMakeFiles/SimpleITK.dir/all] Error 2
> make: *** [all] Error 2
> 

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110930/345199ee/attachment-0001.htm>


More information about the Insight-developers mailing list