Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #11

Open
kaygudo opened this issue Aug 3, 2016 · 3 comments
Open

Installation error #11

kaygudo opened this issue Aug 3, 2016 · 3 comments

Comments

@kaygudo
Copy link

kaygudo commented Aug 3, 2016

Hello!
I git cloned the repository and when i run "sudo python setup.py install" for installation i get following error:
In file included from pyfreenect2.cpp:1:0:
pyfreenect2.hpp:5:41: fatal error: libfreenect2/libfreenect2.hpp: No such file or directory
#include <libfreenect2/libfreenect2.hpp>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

could you help?
Thanks

@crauterb
Copy link

Ahoi.
I had the same problems today.
These are the steps that worked for me:

  1. First of, they seemed to have updated the project structure. A fix that worked was to include those in the setup.py as command line arguments:
    include_dirs=[numpy.get_include()]
    I changed to
    include_dirs=[numpy.get_include(), "../libfreenect2/include", "../libfreenect2/build"]
    --> You will have to adjust the position of the libfreenect2 directory.

  2. As mentioned here you will have to compile libfreenect2 with a different cmake argument so that it can be found via the linker. As I did not do this and was too lazy to re-compile, I just simply created a symbolic link to /usr/lib for the binary of libfreenect:
    sudo ln -s $HOME/freenect2/lib/libfreenect2.so.0.2.0 /usr/lib/libfreenect2.so
    so that ld was able to find and link the binaries.

Using these two hooks, I was able to compile it, hope this helps :-)

@remexre
Copy link
Owner

remexre commented Sep 15, 2016

@crauterb, if you want to submit a pull request, I'll certainly accept it -- I haven't done much (any) work with machine vision for about a year, and I'm unlikely to be able to devote a large amount of time to this project in the near future.

@pedrombmachado
Copy link

I followed what was suggested by @crauterb and it did work for me.
setup.py.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants