You will find lot of tutorials on building OpenNI from source on ubuntu.
I encountered only one error and had to go through number of blogs to figure it out.
Error is something like this
/usr/bin/ld: ./x64-Release/NiSimpleViewer.o: undefined reference to symbol 'glEnd'
/usr/bin/ld: note: 'glEnd' is defined in DSO /usr/lib/libGL.so.1 so try adding it to the linker command line
/usr/lib/libGL.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Solution
Goto OpenNI/Platform/Linux/Build/Samples/
In each sample try to find the line
USED_LIBS += glut
and replace it with
USED_LIBS += glut GL
hope it helps :)
I encountered only one error and had to go through number of blogs to figure it out.
Error is something like this
/usr/bin/ld: ./x64-Release/NiSimpleViewer.o: undefined reference to symbol 'glEnd'
/usr/bin/ld: note: 'glEnd' is defined in DSO /usr/lib/libGL.so.1 so try adding it to the linker command line
/usr/lib/libGL.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Solution
Goto OpenNI/Platform/Linux/Build/Samples/
In each sample try to find the line
USED_LIBS += glut
and replace it with
USED_LIBS += glut GL
hope it helps :)
You probably saved me at least another 3 hours chasing down this problem. Thank you!!
ReplyDeleteYou are welcome :)
DeleteFunctioning Fixed,
Deletebut i do prefer to run them one by one for Easyness :)
I just want to say THANK YOU!
ReplyDeleteGlad to help :)
DeleteCheers