[ITK] Fwd: ITK and python wrap problem
Matt McCormick
matt.mccormick at kitware.com
Fri Aug 22 14:04:39 EDT 2014
Hi,
Please see inline comments below
On Fri, Aug 22, 2014 at 12:13 PM, gowith king <gowithking at googlemail.com> wrote:
> I recorded my procedure as follow:
> cd ~
> git clone git://itk.org/ITK.git
> cd ITK
> git pull
> mkdir BUILD
> cd BUILD
> ccmake ..
> in the ccmake configure options the follow flags were selected:
> BUILD_EXAMPLES OFF
> BUILD_SHARED_LIBS ON
> BUILD_TESTING OFF
> CMAKE_BUILD_TYPE Release
> ITK_WRAP_PERL OFF
> ITK_WRAP_PYTHON ON
> PERL_EXECUTABLE /usr/bin/perl
> PYTHON_EXECUTABLE /usr/bin/python
Try /usr/bin/python2.7 or /usr/bin/python2
> PYTHON_INCLUDE_DIR /usr/include/python2.7
> PYTHON_LIBRARY /usr/lib/libpython2.7.so
> PY_SITE_PACKAGES_PATH /usr/lib/python2.7/dist-packages
> SCPCOMMAND /usr/bin/scp
>
> Then the configure warning of executable and library mismatch comes, ignore
> the warning
> g to generation
> sudo make
> sudo make install
>
> for the test :
> python
>>>>import itk
>>>> inputimage=itk.Image[itk.UC,3] --- errors report here :
> in eclispe : undefined variable from import UC
Here "UC" stands for "unsigned char". In your CMake configuration
options, make sure
ITK_WRAP_unsigned_char
is ON to support this pixel type.
Hope this helps,
Matt
More information about the Community
mailing list