Itseez/opencv — pull request #1 by sbromle (2012-07-26 16:21:41+00:00)
Title: Fixes

Hi.

Sorry to trouble you, however I have applied some fixes to the OpenCV master branch that, perhaps, may be of interest to you:

1) Fixed crash when polling non-existent Kinect devices. (Prior to this fix, polling for a non-existent Kinect device lead to a crash when stepping beyond the end of the enumerated devices.)

2) Fixed header file naming conflict between openCV #include and system level #include . Since the openCV directory containing flann.h ("flann") is not distinctive from the parent directory containing the system-level flann.h, compilation errors can arise if one combines OpenCV with something that uses the system-installed flann, when the include_directories are used in the wrong order. This is worse when using CMake, as CMake does not provide a robust means to explicitly re-order the include directories, particularly when using a "FindModule" macro. I've renamed the openCV flann directory to cvflann (and modified the module name accordingly). Now the openCV-specific flann.h has a parent directory named "cvflann", references internal to openCV all now use #include , and there is no longer a conflict with external codes that use #include .

I believe this resolves *many* users' problems, as reported on-line.

Kindest regards,
Sam