GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

3 versions of OpenCV.

ProgramAgeSizeByWWWSummary
OpenCV 2.4.13.2-r1 1129  1376 Luca...
A library of programming functions for real time computer vision.
view entry at GitHub | download recipe.bz2 file
01-disable_pch.patch
Recipe
Resources/BuildInformation
Resources/Dependencies
Resources/Description
Fixes build problems with GCC 6.x.
See https://github.com/opencv/opencv/issues/6517 for a taste of it.

Signed-off-by: Lucas C. Villa Real <lucasvr@gobolinux.org>

--- opencv-2.4.13.2/cmake/OpenCVPCHSupport.cmake.orig	2017-04-24 18:21:54.067686450 \
-0300
+++ opencv-2.4.13.2/cmake/OpenCVPCHSupport.cmake	2017-04-24 18:22:24.417687019 -0300
@@ -14,12 +14,8 @@
 
 IF(CMAKE_COMPILER_IS_GNUCXX)
 
-    IF(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.2.0")
-        SET(PCHSupport_FOUND TRUE)
-    ENDIF()
-
     SET(_PCH_include_prefix "-I")
-    SET(_PCH_isystem_prefix "-isystem")
+    SET(_PCH_isystem_prefix "-I")
     SET(_PCH_define_prefix "-D")
 
 ELSEIF(CMAKE_GENERATOR MATCHES "^Visual.*$")
OpenCV 2.2.0-r1 3393  1172 Lean...
A library of programming functions for real time computer vision.
OpenCV 1.0.0-r2 3579  1266 Fabi...
OpenCV is a computer vision library.