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

Barry Hathaway bhathaw1 at nycap.rr.com
Fri Aug 28 08:39:20 EDT 2015


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



More information about the Insight-users mailing list