[Insight-users] Error installing ITK with Python Wrapping

Matt McCormick matt.mccormick at kitware.com
Tue Sep 17 11:37:26 EDT 2013


Hi Davis,

Was the compiler that is being used to build ITK the same one that was
used to build the CPython you are building against (see the CMake
variables PYTHON_LIBRARY and PYTHON_INCLUDE_DIR).

Hope this helps,
Matt

On Tue, Sep 17, 2013 at 1:39 PM, DVigneault <davis.vigneault at gmail.com> wrote:
> I'm installing ITK 4.2.2 on OsX 10.8.4. I built it with CMake 2.8.11.1 using
> the Unix Makefiles generator. I'll need the python wrappings, so I selected
> ITK_WRAP_PYTHON. After I built it, I went to the directory containing the
> build files in the terminal and entered make. This all went smoothly until I
> got the following message:
>
> [ 41%] Generating vcl_complex.xml
> In file included from /usr/include/c++/4.2.1/climits:50,
>                  from /usr/include/c++/4.2.1/bits/stl_algobase.h:67,
>                  from /usr/include/c++/4.2.1/bits/char_traits.h:46,
>                  from /usr/include/c++/4.2.1/string:47,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkMacro.h:46,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkLightObject.h:21,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkObject.h:31,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkCommand.h:21,
>                  from
> /Applications/ITK/build/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:
> /usr/bin/../lib/clang/4.2/include/limits.h:37:54: error: missing binary
> operator before token "("
> In file included from /usr/include/c++/4.2.1/bits/postypes.h:49,
>                  from /usr/include/c++/4.2.1/iosfwd:49,
>                  from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,
>                  from /usr/include/c++/4.2.1/bits/char_traits.h:46,
>                  from /usr/include/c++/4.2.1/string:47,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkMacro.h:46,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkLightObject.h:21,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkObject.h:31,
>                  from
> /Applications/ITK/src/Modules/Core/Common/include/itkCommand.h:21,
>                  from
> /Applications/ITK/build/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:
> /usr/bin/../lib/clang/4.2/include/stdint.h:32:54: error: missing binary
> operator before token "("
> make[2]: *** [Wrapping/Modules/ITKCommon/vcl_complex.xml] Error 1
> make[1]: *** [Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/all]
> Error 2
> make: *** [all] Error 2
> At this point I wasn't sure if it had "worked," because it had gone from 1%
> to 100% a number of times in a number of different processes, so I entered
> sudo make install. After a little while, I got the same error.
>
> Questions:
>
> --How do I get rid of this error?
> --Do I need to start the install over again?
> --If I do need to start over, is there a way to undo what I've done already
> first, to get a clean install?
>
> Best,
>
> --Davis
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Error-installing-ITK-with-Python-Wrapping-tp7583976.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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