Ask Your Question
0

Opencv3,openni2, on Winx64

asked 2014-11-09 13:51:26 -0500

nik33 gravatar image

Hi All,

I am building opencv3, with the opencv_contrib, with openni2 support, cuda, tbb on windows 7, x64 for microsoft visual vs2013

I run cmake and have identified my openni2 location for my .lib, and includes. CUDA has been identified. Tbb is found and built. However, I don't see an option for the primesensor modules. Regardless of this, I run cmake and it sets up the project. As expected,the primesensor module shows up as:

OpenNI:                      NO
OpenNI PrimeSensor Modules:  NO
OpenNI2:                     YES (ver 2.2.0, build 30)

I don't see an option anywhere for primesensor and reading the cmakelists in the sources folder, the option for primesensor module only happens with openni1

Ignoring this, and building the OpenCV project in vs2013, I run into the following "unresolved external symbol" errors (For a Debug x64 build)

13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniInitialize referenced in function "public: static enum openni::Status __cdecl openni::OpenNI::initialize(void)" (?initialize@OpenNI@openni@@SA?AW4Status@2@XZ)

13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniShutdown referenced in function "public: static void __cdecl openni::OpenNI::shutdown(void)" (?shutdown@OpenNI@openni@@SAXXZ) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniWaitForAnyStream referenced in function "public: static enum openni::Status __cdecl openni::OpenNI::waitForAnyStream(class openni::VideoStream * *,int,int *,int)" (?waitForAnyStream@OpenNI@openni@@SA?AW4Status@2@PEAPEAVVideoStream@2@HPEAHH@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniGetExtendedError referenced in function "public: static char const * __cdecl openni::OpenNI::getExtendedError(void)" (?getExtendedError@OpenNI@openni@@SAPEBDXZ) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceOpen referenced in function "public: enum openni::Status __cdecl openni::Device::open(char const *)" (?open@Device@openni@@QEAA?AW4Status@2@PEBD@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceClose referenced in function "public: void __cdecl openni::Device::close(void)" (?close@Device@openni@@QEAAXXZ) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceGetInfo referenced in function "private: enum openni::Status __cdecl openni::Device::_setHandle(struct _OniDevice *)" (?_setHandle@Device@openni@@AEAA?AW4Status@2@PEAU_OniDevice@@@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceCreateStream referenced in function "public: enum openni::Status __cdecl openni::VideoStream::create(class openni::Device const &,enum openni::SensorType)" (?create@VideoStream@openni@@QEAA?AW4Status@2@AEBVDevice@2@W4SensorType@2@@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceEnableDepthColorSync referenced in function "public: enum openni::Status __cdecl openni::Device::setDepthColorSyncEnabled(bool)" (?setDepthColorSyncEnabled@Device@openni@@QEAA?AW4Status@2@_N@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceDisableDepthColorSync referenced in function "public: enum openni::Status __cdecl openni::Device::setDepthColorSyncEnabled(bool)" (?setDepthColorSyncEnabled@Device@openni@@QEAA?AW4Status@2@_N@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceGetDepthColorSyncEnabled referenced in function "public: bool __cdecl openni::Device::getDepthColorSyncEnabled(void)" (?getDepthColorSyncEnabled@Device@openni@@QEAA_NXZ) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceSetProperty referenced in function "public: enum openni::Status __cdecl openni::Device::setProperty(int,void const *,int)" (?setProperty@Device@openni@@QEAA?AW4Status@2@HPEBXH@Z) 13>cap_openni2.obj : error LNK2019: unresolved external symbol __imp_oniDeviceGetProperty referenced in function ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-05 03:12:37 -0500

Hi, do you know how to use the openni that already supported in openCV 3?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-11-09 13:51:26 -0500

Seen: 602 times

Last updated: Nov 09 '14