[Insight-users] Python wrapping

Bradley Lowekamp blowekamp at mail.nih.gov
Fri Feb 8 20:58:29 EST 2013


Hello,

Are you using the system SWIG or the one that is automatically built inside ITK? It sounds like it's the one in ITK. The building of SWIG inside ITK is known not to be too robust. You could try installing the system SWIG, and starting to build again from a fresh configure and ensure that it's using the system SWIG.

I have hear some people have used SimpleITK's superbuild, to compile ITK with WrapITK, because it's superbuild system is a more robust.

Also I may suggest looking into downloading SimpleITK's pre-compile binaries if it has the functionality you need.

Brad

On Feb 8, 2013, at 4:44 PM, Uday Kurkure <ukurkure at uh.edu> wrote:

> Bumping this thread.
> I am not able to resolve the following issue.
> Any one who has experienced this?
> 
> On Mon, Jan 28, 2013 at 4:55 PM, Uday Kurkure <ukurkure at uh.edu> wrote:
>> Hi Matt and Bradley,
>> 
>> I am using Cmake 2.8.3-3ubuntu7 on Ubuntu 11.04 OS. And I am using
>> native compilers. I had setup the environment by installing
>> build-essentials and I was able to build and use some other C/C++
>> applications. ITK also builds without any errors if I do not enable
>> wrapping.
>> 
>> - Uday
>> 
>> On Sun, Jan 27, 2013 at 8:52 PM, Bradley Lowekamp
>> <blowekamp at mail.nih.gov> wrote:
>>> Hello,
>>> 
>>> Do you care to share your OS, and compiler you are using? Are you using the system compiler? Do you have your CC or CXX environment variables set?
>>> 
>>> Brad
>>> 
>>> On Jan 27, 2013, at 8:12 PM, Uday Kurkure <ukurkure at uh.edu> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I was able to compile ITK without any issues (without enabling the wrapping).
>>>> 
>>>> However, I am getting the following error when I enable wrapping for python:
>>>> 
>>>> [ 21%] Built target swig
>>>> [ 21%] Built target copy_python_files
>>>> [ 21%] Built target copy_python_extras_files
>>>> [ 21%] Built target ITKPyBaseGccXML
>>>> [ 21%] Built target ITKPyBaseIdx
>>>> [ 21%] Built target ITKPyBaseSwig
>>>> make[2]: *** No rule to make target `swig', needed by
>>>> `Wrapping/Generators/Python/PyBase/pyBasePython.cpp'.  Stop.
>>>> make[1]: *** [Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/all]
>>>> Error 2
>>>> make: *** [all] Error 2
>>>> 
>>>> I am a newbie in python (and swig). So, any help is welcome.
>>>> 
>>>> Thanks,
>>>> 
>>>> - Uday
>>>> _____________________________________
>>>> Powered by www.kitware.com
>>>> 
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>> 
>>>> Kitware offers ITK Training Courses, for more information visit:
>>>> http://www.kitware.com/products/protraining.php
>>>> 
>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>> 
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.itk.org/mailman/listinfo/insight-users
>>> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list