OpenCV 2.4.5 can't find OpenNI and PrimeSensor Module [closed]

asked 2013-05-29 10:02:30 -0600

I have OpenCV 2.4.5 and I just got a kinect and I installed OpenNI and PrimeSensor Module on my Ubuntu 12.04 64 bit machine. I tried the given example in OpenNI and it was working. I could see the depth image and RGB image.

I tried rebuilding OpenCV with OpenNI support by using WITH_OPENNI=ON flag but it still shows

--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO

I checked /usr/lib, /usr/include/ni, and /usr/bin and found all the files there (I guess).

I found following relevant files in /usr/lib

libOpenNI.jni.so
libOpenNI.so
libXnCore.so
libXnDDK.so
libXnDeviceFile.so
libXnDeviceSensorV2KM.so
libXnFormats.so
libXRes.so.1
libXRes.so.1.0.0
libXvMC.so.1
libXvMC.so.1.0.0
libXvMCW.so.1
libXvMCW.so.1.0.0
libXxf86dga.so.1
libXxf86dga.so.1.0.0

and following files in /usr/include/ni

IXnNodeAllocator.h
Linux-Arm
Linux-x86
MacOSX
XnAlgorithms.h
XnArray.h
XnBaseNode.h
XnBitSet.h
XnCallback.h
XnCodecIDs.h
XnContext.h
XnCppWrapper.h
XnCyclicQueueT.h
XnCyclicStackT.h
XnDataTypes.h
XnDerivedCast.h
XnDump.h
XnDumpWriters.h
XnEnumerationErrors.h
XnEvent.h
XnEventT.h
XnFPSCalculator.h
XnGeneralBuffer.h
XnHash.h
XnHashT.h
XnInternalDefs.h
XnLicensing.h
XnList.h
XnListT.h
XnLog.h
XnLogTypes.h
XnLogWriterBase.h
XnMacros.h
XnModuleCFunctions.h
XnModuleCppInterface.h
XnModuleCppRegistratration.h
XnModuleInterface.h
XnNodeAllocator.h
XnNode.h
XnOpenNI.h
XnOSCpp.h
XnOS.h
XnOSMemory.h
XnOSStrings.h
XnPlatform.h
XnPrdNode.h
XnPrdNodeInfo.h
XnPrdNodeInfoList.h
XnProfiling.h
XnPropNames.h
XnQueries.h
XnQueue.h
XnQueueT.h
XnScheduler.h
XnStack.h
XnStackT.h
XnStatusCodes.h
XnStatus.h
XnStatusRegister.h
XnStringsHash.h
XnStringsHashT.h
XnThreadSafeQueue.h
XnTypes.h
XnUSBDevice.h
XnUSB.h
XnUtils.h
XnVersion.h

I couldn't find any such relevant files in /usr/bin. What files should be there?

Is there any solution to this problem?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Mathieu Barnachon
close date 2013-06-11 23:37:11.905894

Comments

Your install seems to be correct. You can check this comment : https://groups.google.com/d/msg/openni-dev/vnrOw1CEzvY/lyFtfKXT_ukJ and the config page: http://docs.opencv.org/doc/user_guide/ug_highgui.html to get further ideas.

rics gravatar imagerics ( 2013-05-31 04:03:06 -0600 )edit

It was a silly mistake. I had forgot to add -D before WITH_OPENNI=ON

jayrambhia gravatar imagejayrambhia ( 2013-05-31 09:20:45 -0600 )edit

can someone close this question?

jayrambhia gravatar imagejayrambhia ( 2013-05-31 09:21:38 -0600 )edit