Trying to install on a brand new Mac (10.12.6):
python --version
Python 2.7.11 :: Anaconda 2.5.0 (x86_64)
conda list
packages in environment at //anaconda/envs/kinect:
freetype 2.5.5 2
jpeg 8d 2
lcms 1.19 0
libpng 1.6.30 1
mkl 2017.0.3 0
numpy 1.7.1 py27_2
opencv 2.4.8 np17py27_2
openssl 1.0.2l 0
pil 1.1.7 py27_2
pip 9.0.1 py27_1
python 2.7.13 0
readline 6.2 2
scipy 0.13.2 np17py27_1
setuptools 27.2.0 py27_0
sqlite 3.13.0 0
tk 8.5.18 0
wheel 0.29.0 py27_0
zlib 1.2.11 0
sudo python setup.py install
src/Frame.cpp:44:2: error: non-void function 'py_Frame_getData' should return a value [-Wreturn-type]
import_array();
^
//anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1532:144: note: expanded from macro 'import_array'
#define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NUMPY_IM...
^
src/Frame.cpp:64:2: error: non-void function 'py_Frame_getDepthData' should return a value [-Wreturn-type]
import_array();
^
//anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1532:144: note: expanded from macro 'import_array'
#define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NUMPY_IM...
Commenting out the import_array() calls in Frame.cpp leads to the following error:
sudo python setup.py install
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
//anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1448:1: warning: unused function '_import_array' [-Wunused-function]
_import_array(void)
^
1 warning generated.
g++ -bundle -undefined dynamic_lookup -L//anaconda/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.5-x86_64-2.7/pyfreenect2.o build/temp.macosx-10.5-x86_64-2.7/src/Frame.o build/temp.macosx-10.5-x86_64-2.7/src/FrameMap.o build/temp.macosx-10.5-x86_64-2.7/src/Freenect2.o build/temp.macosx-10.5-x86_64-2.7/src/Freenect2Device.o build/temp.macosx-10.5-x86_64-2.7/src/Registration.o build/temp.macosx-10.5-x86_64-2.7/src/SyncMultiFrameListener.o build/temp.macosx-10.5-x86_64-2.7/src/SmartFrame.o -L//anaconda/lib -lfreenect2 -o build/lib.macosx-10.5-x86_64-2.7/_pyfreenect2.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1`
Trying to install on a brand new Mac (10.12.6):
python --versionconda listsudo python setup.py install
Commenting out the import_array() calls in Frame.cpp leads to the following error:
sudo python setup.py install