cdcpd icon indicating copy to clipboard operation
cdcpd copied to clipboard

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

Open dcolli23 opened this issue 3 years ago • 2 comments

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: https://github.com/OpenKinect/libfreenect2/issues/777

dcolli23 avatar Aug 16 '22 18:08 dcolli23

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 avatar Aug 16 '22 19:08 dcolli23

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

dcolli23 avatar Aug 16 '22 19:08 dcolli23