Line 0
Link Here
|
|
|
1 |
--- configure.ac.orig 2019-01-16 08:56:00 UTC |
2 |
+++ configure.ac |
3 |
@@ -102,7 +102,7 @@ if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
4 |
dnl AC_MSG_WARN(CXX is "$CXX") |
5 |
dnl http://nerdland.net/2009/07/detecting-c-libraries-with-autotools/ solution 2 |
6 |
dnl we handle 2 opencv versions because of a debian bug with opencv2 and GTK3 |
7 |
- PKG_CHECK_MODULES([OPENCV], [opencv >= 3.0], |
8 |
+ PKG_CHECK_MODULES([OPENCV], [opencv4-core >= 3.0], |
9 |
[OPENCV_LIBS="-lopencv_core -lopencv_imgproc -lopencv_calib3d"], |
10 |
[PKG_CHECK_MODULES([OPENCV], [opencv >= 2.0], |
11 |
[OPENCV_LIBS="-lopencv_core -lopencv_imgproc"], |
12 |
@@ -111,6 +111,10 @@ if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
13 |
AC_MSG_ERROR([opencv not found. Not using some image processing.]))] |
14 |
)] |
15 |
) |
16 |
+ OPENCV_LIBS_ONLY_L=`$PKG_CONFIG opencv4-core --libs-only-L` |
17 |
+ OPENCV_LIBS_ONLY_OTHER=`$PKG_CONFIG opencv4-core --libs-only-other` |
18 |
+ AC_SUBST(OPENCV_LIBS_ONLY_L) |
19 |
+ AC_SUBST(OPENCV_LIBS_ONLY_OTHER) |
20 |
else |
21 |
AC_MSG_ERROR([no C++ compiler found]) |
22 |
fi |