Skip to content

NewChromantics/PopCameraDevice

Repository files navigation

Build Status

Build Windows Build Windows_NoKinect Build Apple Build Linux Create Release

Kinect Azure

  • Windows compiles with SDK path

  • Linux comes via nuget package (Comes with windows, so we should switch to that)

  • Added a packages.config in /Source/Libs/

  • Osx

    • brew install nuget
    • cd Source/Libs
    • nuget install
  • Linux

    • sudo apt install nuget
    • Install rules so KinectAzure can run without root access; https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/docs/usage.md#linux-device-setup
    • Install kinect azure sdk properly here https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/docs/usage.md#debian-package
    • sudo apt-get install curl
    • curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
    • sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/multiarch/prod
    • sudo apt-get update
    • sudo apt install libk4a1.4-dev
    • sudo apt install k4a-tools
    • sudo ln /usr/lib/aarch64-linux-gnu/libk4a1.4/libdepthengine.so.2.0 /usr/lib/aarch64-linux-gnu/libk4a1.4/libdepthengine.so
    • enable headless mode export DISPLAY=:0 otherwise we get error 204 from the depth engine (this is for opengl support)
    • Allow SDK usage as non-root; sudo curl https://raw.githubusercontent.com/microsoft/Azure-Kinect-Sensor-SDK/develop/scripts/99-k4a.rules /etc/udev/rules.d/./99-k4a.rules
  • Windows

    • We should be able to add packages.config to the project...

LibUsb (for Kinect 1/LibFreenect)

  • On Macos we now build the lib from source, but not actually building a libusb lib, just include the (small!) amount of source files directly from the libusb repository
    • Easier to build for arm & x86
    • No more pre-built out of date/mismatched libs
  • Todo: do same for windows.