[ITK] [ITK-users] Building PyBuffer (itk 4.8.0/Win7/VS2012)

Bradley Lowekamp blowekamp at mail.nih.gov
Fri Aug 28 09:21:28 EDT 2015


Hello,

There were some recent updates to this module [1] that were remote module merged into the release branch.

Try getting the ITK git repository [2], and checking out the release branch.

HTH,
Brad

[1] http://review.source.kitware.com/#/c/20108/
[2] http://www.itk.org/Wiki/ITK/Git

On Aug 28, 2015, at 8:39 AM, Barry Hathaway <bhathaw1 at nycap.rr.com> wrote:

> I'm having problems building PyBuffer (itk 4.8.0) under Windows 7 64-bit using Visual Studio 2012. Numpy is 1.9.2.
> I get the following errors when building the BridgeNumPyPython project:
> 
> Warning  1    warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION    c:\python27\virtualenv\cmcenv\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h    12    1    BridgeNumPyPython
> 
> Error    2    error C2057: expected constant expression    c:\insighttoolkit-4.8.0\modules\remote\bridgenumpy\include\itkPyBuffer.hxx    61    1    BridgeNumPyPython
> 
> Error    3    error C2466: cannot allocate an array of constant size 0    c:\insighttoolkit-4.8.0\modules\remote\bridgenumpy\include\itkPyBuffer.hxx    61    1    BridgeNumPyPython
> 
> Error    4    error C2133: 'dimensions' : unknown size    c:\insighttoolkit-4.8.0\modules\remote\bridgenumpy\include\itkPyBuffer.hxx    61    1    BridgeNumPyPython
> 
> Error    5    error C2057: expected constant expression    c:\insighttoolkit-4.8.0\modules\remote\bridgenumpy\include\itkPyBuffer.hxx    79    1    BridgeNumPyPython
> 
> Error    6    error C2466: cannot allocate an array of constant size 0    c:\insighttoolkit-4.8.0\modules\remote\bridgenumpy\include\itkPyBuffer.hxx    79    1    BridgeNumPyPython
> 
> Error    7    error C2133: 'reverseDimensions' : unknown size    c:\insighttoolkit-4.8.0\modules\remote\bridgenumpy\include\itkPyBuffer.hxx    79    1    BridgeNumPyPython
> 
> Any ideas?
> Thanks in advance.
> 
> Barry Hathaway
> 
> _____________________________________
> 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://public.kitware.com/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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list