[Insight-users] Compiling error on UBUNTU 11.04

Uday Kurkure ukurkure at uh.edu
Thu Jan 17 16:06:46 EST 2013


Thanks Matt.
I am interested in chan-vese filter which I see is included in
wrapping. However, I would like to know the process of writing a patch
for wrappers. Is there any guide explaining the steps?

Also, 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

Any help on this?

Regards,

- Uday




On Wed, Jan 16, 2013 at 9:16 AM, Matt McCormick
<matt.mccormick at kitware.com> wrote:
> Hi Uday,
>
> Great to hear it is working for you.
>
> The classes that are wrapped in the Review module are listed in
> Modules/Nonunit/Review/wrapping/*.wrap.
>
> We are moving the classes in Review into their respective module after
> some clean-up.  If you have a favorite class that you want better
> support, please consider making a patch to do so.  I can help you
> through the process.
>
>   http://www.itk.org/Wiki/ITK/Git/Develop
>
> Thanks,
> Matt
>
> On Wed, Jan 16, 2013 at 2:50 PM, Uday Kurkure <ukurkure at uh.edu> wrote:
>> Thanks Matt. It compiled for v4.3.1 without any errors.
>> Now I can try to compile it for python wrapping too.
>> Are the classes in 'Review' folder available through python interface?
>>
>> Thanks and regards,
>> - Uday
>>
>>
>>
>> On Mon, Jan 14, 2013 at 11:21 PM, Matt McCormick
>> <matt.mccormick at kitware.com> wrote:
>>> Hi Uday,
>>>
>>> This error sounds familiar.  Did you start with a clean build tree?
>>> Why not use v4.3.1?
>>>
>>> Thanks,
>>> Matt
>>>
>>> On Mon, Jan 14, 2013 at 5:06 PM, Uday Kurkure <ukurkure at uh.edu> wrote:
>>>> Hi there,
>>>>
>>>> This is the first time I am trying to compile ITK 4 (v4.2.1) on Linux
>>>> machine (I have build and used ITK 3 on Win earlier).
>>>>
>>>> The error I get is:
>>>>
>>>> Building CXX object
>>>> Modules/IO/NRRD/src/CMakeFiles/ITKIONRRD.dir/itkNrrdImageIO.cxx.o
>>>> ~/toolkits/ITK/Modules/IO/NRRD/src/itkNrrdImageIO.cxx: In member
>>>> function ‘itk::ImageIOBase::IOComponentType
>>>> itk::NrrdImageIO::NrrdToITKComponentType(int) const’:
>>>> ~/toolkits/ITK/Modules/IO/NRRD/src/itkNrrdImageIO.cxx:85:14: error:
>>>> ‘itk_airMy32Bit’ was not declared in this scope
>>>> ~/toolkits/ITK/Modules/IO/NRRD/src/itkNrrdImageIO.cxx: In member
>>>> function ‘int itk::NrrdImageIO::ITKToNrrdComponentType(itk::ImageIOBase::IOComponentType)
>>>> const’:
>>>> ~/toolkits/ITK/Modules/IO/NRRD/src/itkNrrdImageIO.cxx:134:14: error:
>>>> ‘itk_airMy32Bit’ was not declared in this scope
>>>> make[2]: *** [Modules/IO/NRRD/src/CMakeFiles/ITKIONRRD.dir/itkNrrdImageIO.cxx.o]
>>>> Error 1
>>>> make[1]: *** [Modules/IO/NRRD/src/CMakeFiles/ITKIONRRD.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>> What am I missing here?
>>>> Any help is appreciated.
>>>>
>>>> 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


More information about the Insight-users mailing list