[ITK] [ITK-dev] cannot enable python wrapping in ITK
Michka Popoff
michkapopoff at gmail.com
Thu Jun 5 05:40:58 EDT 2014
Hi
I changed to the community mailing list to answer your question, so everybody sees it.
To build the python wrappings, you juste need the DITK_WRAP_PYTHON=ON option.
Note: Java, Ruby and TCL can stay OFF, those are not supported for the moment (even if the options are present in cmake).
I would need more details to be able to help you:
- Which version of ITK are you trying to build
- What version of python
- On what platform (linux, mac, win ?) are you trying this.
Michka
Le 5 juin 2014 à 11:01, Rashad M a écrit :
> Hi,
>
> I tried to build python bindings for ITK and build failed with below output:
>
> canning dependencies of target ITKPyBasePython
> [ 23%] Building CXX object Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/ITKPyBasePython.cpp.o
> [ 23%] Building CXX object Wrapping/Generators/Python/PyBase/CMakeFiles/ITKPyBasePython.dir/pyBasePython.cpp.o
> Linking CXX shared module ../../../../lib/_ITKPyBasePython.so
> [ 23%] Built target ITKPyBasePython
> Scanning dependencies of target ITKCommonIdx
> [ 23%] Generating ../../Typedefs/vcl_complex.idx
> Traceback (most recent call last):
> File "/home/rashad/code/itk/ITK/Wrapping/Generators/SwigInterface/idx.py", line 28, in <module>
> res = pygccxml_reader.read_xml_file(sys.argv[1])
> File "/home/rashad/code/itk/ITK/Wrapping/Generators/SwigInterface/pygccxml-1.0.0/pygccxml/parser/source_reader.py", line 240, in read_xml_file
> ffname = self.__file_full_name(gccxml_created_file)
> File "/home/rashad/code/itk/ITK/Wrapping/Generators/SwigInterface/pygccxml-1.0.0/pygccxml/parser/source_reader.py", line 277, in __file_full_name
> raise RuntimeError( "pygccxml error: file '%s' does not exist" % file )
> RuntimeError: pygccxml error: file '/home/rashad/build/itk/ITK_/Wrapping/Typedefs/vcl_complex.idx' does not exist
> make[2]: *** [Wrapping/Typedefs/vcl_complex.idx] Error 1
> make[1]: *** [Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonIdx.dir/all] Error 2
> make: *** [all] Error 2
>
>
> For cmake I had given
> cmake -DITK_WRAPING=ON -DITK_WRAP_PYTHON=ON -DITK_USE_SYSTEM_SWIG=OFF -DITK_WRAP_SWIGINTERFACE=ON
>
> but ITK_WRAP_ ( GCCXML JAVA, RUBY, TCL ) are also OFF.
>
>
> I dont need gccxml and it is off in my cmake configuration but I am getting pygccxml error
>
> Any ideas?
>
> --
> Regards,
> Rashad
> _______________________________________________
> 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://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-developers
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140605/6111beff/attachment-0002.html>
More information about the Community
mailing list