XDMF Make with Python3.5
Hello all,
I am attempting to make XDMF with the python bindings (to get the python API) from the source on MacOSX. I was successfully able to get xdmf to build but had to invoke the following two items:
- setting the HDF5_ROOT environment variable
export HDF5_ROOT=”/usr/local/Cellar/HDF5/1.10.1_2”
- Adding
-DHDF5_C_INCLUDE_DIR=/usr/local/Cellar/hdf5/1.10.1_2/lib
at the command line when invoking cmake.
Then as per the build instructions, I called make. I then got the following error message:
Scanning dependencies of target _XdmfCorePython [ 98%] Building CXX object core/CMakeFiles/_XdmfCorePython.dir/__/XdmfCorePYTHON_wrap.cxx.o /Users/tonyalberti/Documents/projects/Xdmf/build/XdmfCorePYTHON_wrap.cxx:4277:24: error: use of undeclared identifier 'PyBuffer_FromMemory' PyObject * c = PyBuffer_FromMemory(vp, sz); ^ 1 error generated. make[2]: *** [core/CMakeFiles/_XdmfCorePython.dir/__/XdmfCorePYTHON_wrap.cxx.o] Error 1 make[1]: *** [core/CMakeFiles/_XdmfCorePython.dir/all] Error 2 make: *** [all] Error 2
Does anyone know how I can remedy this undeclared identifier error? There were also a number of warning messages before this error popped up.