-
Notifications
You must be signed in to change notification settings - Fork 781
Kinect device not detected in custom code, but works in Protonect #916
Copy link
Copy link
Closed
Description
Overview Description:
I'm trying to replicate a basic version of Protonect in Visual studio 2015. The protonect executable works fine, but my code shows no devices connected (specifically I get the "LIBUSB_ERROR_NOT_FOUND Entity not found error"). A weird symptom is that when protonect runs, it detects 6 usb devices, and 1 kinect device. but my code detects 8 usb devices and no kinect.
I've stripped my code to the basic form to replicate the error:
#include <iostream>
#define GLFW_DLL
#include <libfreenect2/libfreenect2.hpp>
#include <libfreenect2/frame_listener_impl.h>
#include <libfreenect2/packet_pipeline.h>
int main(int argc, char *argv[])
{
// Initialize freenect device (kinect), pipeline and listener
std::cout << "here1" << std::endl;
libfreenect2::Freenect2 freenect2;
if (freenect2.enumerateDevices() == 0)
{
std::cout << "no device connected!" << std::endl;
return -1;
}
return 0;
}
Version, Platform, and Hardware Bug Found:
- Latest version: 93769ab
- Platform: Windows 10 64bit
- Using UsbDk and "WDF KinectSensor Interface 0" shows in device manager
Steps to Reproduce:
- Build a basic example of enumerating devices
Actual Results:
No kinect detected.
Expected Results:
1 kinect detected.
Reproducibility:
Additional Information:
My code compiles and links fine
Reactions are currently unavailable