I have installed libfreenect2 in my home directory.
This create freenect2 in my home directory too, containing /include and /lib
Protonect, NiViewer2 and Nite2 are working.
Try installing pylibfreenect2 with:
sudo LIBFREENECT2_INSTALL_PREFIX=/home/stf/freenect2/ pip install git+https://github.com/r9y9/pylibfreenect2
getting errors:
Downloading/unpacking git+https://github.com/r9y9/pylibfreenect2
Cloning https://github.com/r9y9/pylibfreenect2 to /tmp/pip-3jVmAQ-build
Running setup.py (path:/tmp/pip-3jVmAQ-build/setup.py) egg_info for package from git+https://github.com/r9y9/pylibfreenect2
Compiling pylibfreenect2/libfreenect2.pyx because it changed.
Cythonizing pylibfreenect2/libfreenect2.pyx
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in /usr/local/lib/python2.7/dist-packages (from pylibfreenect2==0.0.1-dev)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from pylibfreenect2==0.0.1-dev)
Installing collected packages: pylibfreenect2
Running setup.py install for pylibfreenect2
building 'pylibfreenect2.libfreenect2' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/home/stf/freenect2/include/libfreenect2 -I/usr/include/python2.7 -c pylibfreenect2/libfreenect2.cpp -o build/temp.linux-x86_64-2.7/pylibfreenect2/libfreenect2.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from pylibfreenect2/libfreenect2.cpp:287:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
In file included from pylibfreenect2/libfreenect2.cpp:298:0:
/home/stf/freenect2/include/libfreenect2/frame_listener_impl.h:35:43: fatal error: libfreenect2/frame_listener.hpp: Aucun fichier ou dossier de ce type
#include <libfreenect2/frame_listener.hpp>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-3jVmAQ-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-Om021S-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pylibfreenect2
copying pylibfreenect2/init.py -> build/lib.linux-x86_64-2.7/pylibfreenect2
running build_ext
building 'pylibfreenect2.libfreenect2' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/pylibfreenect2
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/home/stf/freenect2/include/libfreenect2 -I/usr/include/python2.7 -c pylibfreenect2/libfreenect2.cpp -o build/temp.linux-x86_64-2.7/pylibfreenect2/libfreenect2.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from pylibfreenect2/libfreenect2.cpp:287:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
In file included from pylibfreenect2/libfreenect2.cpp:298:0:
/home/stf/freenect2/include/libfreenect2/frame_listener_impl.h:35:43: fatal error: libfreenect2/frame_listener.hpp: Aucun fichier ou dossier de ce type
#include <libfreenect2/frame_listener.hpp>
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-3jVmAQ-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-Om021S-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-3jVmAQ-build
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/init.py", line 235, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)