Skip to content

Fail to use libfreenect2 with OpenNI2 [Ubuntu 15.04] #639

@zry656565

Description

@zry656565
  • Platform: Ubuntu 15.04
  • Video card: Nvidia GeForce 860M

I wanna use libfreenect2 with OpenNI2 built by myself.

  • Location of OpenNI2: /home/jerry/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/
  • Location of libfreenect2: /home/jerry/libs/libfreenect2
  • Location of freenect2 after make install: /home/jerry/libs/freenect2

libfreenect2/build/bin/Protonect works well.

jerry@tu1504:~/libs/libfreenect2/build/bin$ ./Protonect 
X server found. dri2 connection failed! 
Version: 0.2.0
Environment variables: LOGFILE=<protonect.log>
Usage: ./Protonect [-gpu=<id>] [gl | cl | cuda | cpu] [<device serial>]
        [-noviewer] [-norgb | -nodepth] [-help] [-version]
        [-frames <number of frames to process>]
To pause and unpause: pkill -USR1 Protonect
[Info] [Freenect2Impl] enumerating devices...
[Info] [Freenect2Impl] 13 usb devices connected
[Info] [Freenect2Impl] found valid Kinect v2 @2:7 with serial 021674143547
[Info] [Freenect2Impl] found 1 devices
[Info] [Freenect2DeviceImpl] opening...
[Info] [Freenect2DeviceImpl] transfer pool sizes rgb: 20*16384 ir: 60*8*33792
[Info] [Freenect2DeviceImpl] opened
[Info] [Freenect2DeviceImpl] starting...
[Debug] [Freenect2DeviceImpl] status 0x090000: 9729
[Debug] [Freenect2DeviceImpl] status 0x090000: 9731
[Info] [Freenect2DeviceImpl] submitting rgb transfers...
[Info] [Freenect2DeviceImpl] submitting depth transfers...
[Info] [Freenect2DeviceImpl] started
device serial: 021674143547
device firmware: 4.0.3911.0
[Debug] [DepthPacketStreamParser] not all subsequences received 0
[Debug] [DepthPacketStreamParser] not all subsequences received 512
[Info] [Freenect2DeviceImpl] stopping...
[Info] [Freenect2DeviceImpl] canceling rgb transfers...
[Info] [Freenect2DeviceImpl] canceling depth transfers...
[Info] [Freenect2DeviceImpl] stopped
[Info] [Freenect2DeviceImpl] closing...
[Info] [Freenect2DeviceImpl] releasing usb interfaces...
[Info] [Freenect2DeviceImpl] deallocating usb transfer pools...
[Info] [Freenect2DeviceImpl] closing usb device...
[Info] [Freenect2DeviceImpl] closed
[Info] [Freenect2DeviceImpl] closing...
[Info] [Freenect2DeviceImpl] already closed, doing nothing

I tried to create a soft link like blew:

jerry@tu1504:~/libs/freenect2/lib/OpenNI2/Drivers$ ln -s libfreenect2-openni2.so ~/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/
jerry@tu1504:~/libs/freenect2/lib/OpenNI2/Drivers$ ln -s libfreenect2-openni2.so.0 ~/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/

And NiViewer still could not detect the Kinect v2 device.

jerry@tu1504:~/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers$ ../../NiViewer 
openDevice failed:
    DeviceOpen using default: no devices found

Press any key to continue . . .

I didn't find some useful information for me in #243, #311, #523. Did I miss something to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions