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

Document need to download cuda-samples for freenect2 to correctly build? #22

Open
dcolli23 opened this issue Aug 16, 2022 · 2 comments
Open

Comments

@dcolli23
Copy link
Contributor

dcolli23 commented Aug 16, 2022

Currently the cuda-samples repo is required to be cloned and maked to get freenect2 up and running. Should we document this here or should this be handled elsewhere? Maybe make an install script for freenect2?

This is the issue that I followed that helped me to make at least some progress: OpenKinect/libfreenect2#777

@dcolli23
Copy link
Contributor Author

dcolli23 commented Aug 16, 2022

To fix the libfreenect2 build error I had to:

  1. git clone cuda-samples repo into ~/.local/src
  2. In cuda-samples dir, make
  3. In libfreenect2 dir: mkdir build && cd build
  4. cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2 -Dfreenect2_DIR=$HOME/freenect2/lib/cmake/freenect2 -DENABLE_CXX11=ON -DCUDA_PROPAGATE_HOST_FLAGS=off
  5. make

@dcolli23
Copy link
Contributor Author

I also needed to do a make install for freenect2 which installed the necessary libraries

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

1 participant