-
Notifications
You must be signed in to change notification settings - Fork 746
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
Fail to use libfreenect2 with OpenNI2 [Ubuntu 15.04] #639
Comments
I don't think they way you create symlinks is correct. Check that again. Also I'm not sure of the path you used here |
@zry656565 did you run |
You are right, so I recreate symlinks with absolute path to avoiding Error 'Too many levels of symbolic links'. jerry@tu1504:~/libs/freenect2/lib$ ln -s /home/jerry/libs/freenect2/lib/OpenNI2/Drivers/libfreenect2-openni2.so /home/jerry/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/
jerry@tu1504:~/libs/freenect2/lib$ ln -s /home/jerry/libs/freenect2/lib/OpenNI2/Drivers/libfreenect2-openni2.so.0 /home/jerry/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/ I didn't modify
The content of these two files are same like below. I don't know which takes effect. [Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=3
LogToConsole=0
LogToFile=0
[Device]
;Override=""
[Drivers]
; Location of the drivers specified by a relative path based on OpenNI's shared library or an absolute path.
; Path separator "/" can be used to be portable for any platforms.
; Default - OpenNI2/Drivers
;Repository=OpenNI2/Drivers So I tried to create symlinks of libfreenect2-openni2.so to Yes, so I get the folder jerry@tu1504:~/libs/libfreenect2/build$ sudo make install-openni2
[sudo] password for jerry:
[ 3%] Built target generate_resources_tool
[ 75%] Built target freenect2
[100%] Built target freenect2-openni2
[100%] Built target install-openni2
jerry@tu1504:~/libs/freenect2/lib/OpenNI2/Drivers$ cd ~/libs/freenect2/lib/OpenNI2/Drivers/
jerry@tu1504:~/libs/freenect2/lib/OpenNI2/Drivers$ ls
libfreenect2-openni2.so libfreenect2-openni2.so.0 |
@zry656565 I am also trying to compile Kintinuous and after OpenNI2 port + changing the stream resolution to 512,424 Kintinuous is running (not perfectly though) |
Seriously, I've never been able to reproduce these issues. The README instructions say to install OpenNI2 from apt-get and its location would be in /usr/lib. If you follow the README verbatim, I don't believe you'll be able to reproduce these issues. But this is not really a hard problem. Change OpenNI.ini to
run NiViewer2 and see the console output, which will show you the problem. If it is still not informative, |
I don't know if this might be useful or not, but I had significant issues getting the libFreenectDriver.so to be found and just solved the problem by setting the permissions and link names correctly for Taking the advice of @xlz and running |
I wanna use libfreenect2 with OpenNI2 built by myself.
/home/jerry/lab/Kintinuous/deps/OpenNI2/Bin/x64-Release/
/home/jerry/libs/libfreenect2
make install
:/home/jerry/libs/freenect2
libfreenect2/build/bin/Protonect
works well.I tried to create a soft link like blew:
And
NiViewer
still could not detect the Kinect v2 device.I didn't find some useful information for me in #243, #311, #523. Did I miss something to solve this problem?
The text was updated successfully, but these errors were encountered: