1 --- OpenCV-2.3.1/OpenCVFindXimea.cmake.orig 2011-09-12 20:45:38.000000000 +0200
2 +++ OpenCV-2.3.1/OpenCVFindXimea.cmake 2012-02-01 19:18:07.619900166 +0100
7 -# Try to find the XIMEA API path in registry.
8 -GET_FILENAME_COMPONENT(XIMEA_PATH "[HKEY_CURRENT_USER\\Software\\XIMEA\\CamSupport\\API;Path]" ABSOLUTE)
9 +find_file(XIMEA_INC "m3Api.h" PATHS $ENV{XIMEA_INCLUDE} "/usr/include/ximea")
10 +find_library(XIMEA_LIB "m3api" PATHS $ENV{XIMEA_LIB} "/usr/lib${LIB_SUFFIX}")
13 +if(XIMEA_INC AND XIMEA_LIB)
14 + get_filename_component(XIMEA_LIBRARY_DIR "${XIMEA_LIB}" PATH CACHE)
15 + get_filename_component(XIMEA_PATH "${XIMEA_INC}" PATH CACHE)
19 - set(XIMEA_LIBRARY_DIR "${XIMEA_PATH}\\x86")
24 --- OpenCV-2.3.1/modules/highgui/src/cap_ximea.cpp.orig 2011-09-12 20:41:29.000000000 +0200
25 +++ OpenCV-2.3.1/modules/highgui/src/cap_ximea.cpp 2012-02-01 20:12:54.750010230 +0100
29 #include "precomp.hpp"
34 void CvCaptureCAM_XIMEA::errMsg(char* msg, int errNum)
37 - sprintf( buf, "%s : %d\n", msg, errNum);
38 - OutputDebugString(buf);
39 + fprintf(stderr, "%s : %d\n", msg, errNum);
42 -/**********************************************************************************/
44 +/**********************************************************************************/