Issues building openni_capture.cpp
Hi,
I just installed OpenCV-2.5 with no problems. I want to build an app using Kinect, and I tried the example is in the documentation openni_capture.cpp, however when I compile it, it gives me the following errors:
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp: In function ‘float getMaxDisparity(cv::VideoCapture&)’:
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:82:35: error: ‘CAP_OPENNI_DEPTH_GENERATOR_BASELINE’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:83:35: error: ‘CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp: In function ‘void parseCommandLine(int, char, bool&, bool&, int&, bool, std::string&, bool&)’:
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:145:21: error: ‘Error’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp: In function ‘int main(int, char)’:
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:194:23: error: ‘CAP_OPENNI’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:210:40: error: ‘CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:210:80: error: ‘CAP_OPENNI_VGA_30HZ’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:213:80: error: ‘CAP_OPENNI_SXGA_15HZ’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:216:80: error: ‘CAP_OPENNI_SXGA_30HZ’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:220:80: error: ‘CAP_OPENNI_QVGA_30HZ’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:223:80: error: ‘CAP_OPENNI_QVGA_60HZ’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:226:17: error: ‘Error’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:234:49: error: ‘CAP_PROP_FRAME_WIDTH’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:235:49: error: ‘CAP_PROP_FRAME_HEIGHT’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:236:49: error: ‘CAP_PROP_OPENNI_FRAME_MAX_DEPTH’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:237:49: error: ‘CAP_PROP_FPS’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:238:49: error: ‘CAP_PROP_OPENNI_REGISTRATION’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:239:22: error: ‘CAP_OPENNI_IMAGE_GENERATOR_PRESENT’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:243:46: error: ‘CAP_OPENNI_IMAGE_GENERATOR’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:269:71: error: ‘CAP_OPENNI_DEPTH_MAP’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:276:75: error: ‘CAP_OPENNI_DISPARITY_MAP’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:292:76: error: ‘CAP_OPENNI_VALID_DEPTH_MASK’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:295:71: error: ‘CAP_OPENNI_BGR_IMAGE’ was not declared in this scope
/home/david/Documents/Qt_workspace/test_OpenCV_NI/openni_capture.cpp:298:72: error: ‘CAP_OPENNI_GRAY_IMAGE’ was not declared in this scope
make[2]: [CMakeFiles/test_opencvkinect.dir/openni_capture.cpp.o] Error 1
make[1]: [CMakeFiles/test_opencvkinect.dir/all] Error 2
make: ** [all] Error 2
I found ...