Updated by Anna Kogan about 12 years ago
We needed to make the following change in order to fix a cmake error:
<pre>
Index: source/cmake/OpenCVFindLibsGrfmt.cmake
===================================================================
--- source/cmake/OpenCVFindLibsGrfmt.cmake (Revision 1919)
+++ source/cmake/OpenCVFindLibsGrfmt.cmake (Arbeitskopie)
@@ -116,6 +116,7 @@
else()
include(FindPNG)
if(PNG_FOUND)
+ include(CheckIncludeFile)
check_include_file("${PNG_PNG_INCLUDE_DIR}/png.h" HAVE_PNG_H)
check_include_file("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" HAVE_LIBPNG_PNG_H)
if(HAVE_PNG_H)
</pre>
Similar lines appear in libtiff/openexr/zlib directories, and in the main CMakeLists.txt, but there it is in an if(UNIX) block (for local use for alloca.h etc.).
<pre>
Index: source/cmake/OpenCVFindLibsGrfmt.cmake
===================================================================
--- source/cmake/OpenCVFindLibsGrfmt.cmake (Revision 1919)
+++ source/cmake/OpenCVFindLibsGrfmt.cmake (Arbeitskopie)
@@ -116,6 +116,7 @@
else()
include(FindPNG)
if(PNG_FOUND)
+ include(CheckIncludeFile)
check_include_file("${PNG_PNG_INCLUDE_DIR}/png.h" HAVE_PNG_H)
check_include_file("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" HAVE_LIBPNG_PNG_H)
if(HAVE_PNG_H)
</pre>
Similar lines appear in libtiff/openexr/zlib directories, and in the main CMakeLists.txt, but there it is in an if(UNIX) block (for local use for alloca.h etc.).