[opencv] 20/251: Fixing Aravis support compilation issue
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.
commit 0ef5c8c54104051e071ae89b66a2cd43abb61e28
Author: Arkadiusz Raj <arek.raj at gmail.com>
Date: Wed Jul 5 11:30:43 2017 +0200
Fixing Aravis support compilation issue
---
cmake/OpenCVFindLibsVideo.cmake | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/cmake/OpenCVFindLibsVideo.cmake b/cmake/OpenCVFindLibsVideo.cmake
index f50b8ee..3865199 100644
--- a/cmake/OpenCVFindLibsVideo.cmake
+++ b/cmake/OpenCVFindLibsVideo.cmake
@@ -127,13 +127,18 @@ endif(WITH_GIGEAPI)
# --- Aravis SDK ---
ocv_clear_vars(HAVE_ARAVIS_API)
if(WITH_ARAVIS)
- find_path(ARAVIS_INCLUDE_PATH "arv.h"
- PATHS /usr/local /var /opt /usr ENV ProgramFiles ENV ProgramW6432
- PATH_SUFFIXES include "aravis-0.6" "aravis-0.4"
- DOC "The path to Aravis SDK headers")
- find_library(ARAVIS_LIBRARIES NAMES "aravis-0.6" "aravis-0.4" )
- if(ARAVIS_LIBRARIES AND ARAVIS_INCLUDE_PATH)
- set(HAVE_ARAVIS_API TRUE)
+ check_module(glib-2.0 HAVE_ARAVIS_GLIB VIDEOIO)
+ if(HAVE_ARAVIS_GLIB)
+ find_path(ARAVIS_INCLUDE_PATH "arv.h"
+ PATHS /usr/local /var /opt /usr ENV ProgramFiles ENV ProgramW6432
+ PATH_SUFFIXES include "aravis-0.6" "aravis-0.4"
+ DOC "The path to Aravis SDK headers")
+ find_library(ARAVIS_LIBRARIES NAMES "aravis-0.6" "aravis-0.4" )
+ if(ARAVIS_LIBRARIES AND ARAVIS_INCLUDE_PATH)
+ set(HAVE_ARAVIS_API TRUE)
+ endif()
+ else()
+ message("Can not build Aravis support without glib2")
endif()
endif(WITH_ARAVIS)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list