kinect - Error LINK2019 using OpenNI and Visual Studio -


i trying built .cpp file using openni in visual studio 2012. using code of simpleviewer sample (it included in openni). when try build .cpp file got error lnk2019 seems problem when compiler has link openni library. wrong?

errors (55 in total):

>  error    1   error lnk2019: unresolved external symbol __imp__onishutdown > referenced in function "public: static void __cdecl > openni::openni::shutdown(void)" > (?shutdown@openni@openni@@saxxz)  c:\develop\visualstudioworkspace\projects\my > programs\openni2_test\openni2_test\viewer.obj openni2_test error   2   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@papavvideostream@2@hpahh@z) c:\develop\visualstudioworkspace\projects\my programs\openni2_test\openni2_test\viewer.obj  openni2_test 

i followed steps described in openni website compile file in visual studio: added vcc directories , include , lib environment variables. added openni2.lib in additional dependencies on linker section. copied redist files in working directory (the directory have .vcproj).

i ran similar issue. sample projects wouldn't build because using openni x64 platform set win32. changing x64 (in properties dialog @ top) fixed me.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -