How to compile latest OpenCV with OpenNI 1.5.4.0?

asked 2013-09-30 07:15:22 -0600

jeadorf gravatar image

updated 2013-09-30 07:15:57 -0600

I am trying to compile the latest OpenCV from the master branch with OpenNI support. Here is what I tried:

cmake -DOPENNI_LIB_DIR=/opt/openni-1.5.4.0/Lib -DOPENNI_INCLUDE_DIR=/opt/openni-1.5.4.0/Include -DWITH_OPENNI=on ..

However, this results in the following warning:

WARNING, OpenNI include directory (set by OPENNI_INCLUDE_DIR variable) is not found or does not have OpenNI include files.

Setting the variables OPENNI_LIB and OPENNI_INCLUDES directly did not help either.

edit retag flag offensive close merge delete