mirror of
https://github.com/bspeice/libcvautomation
synced 2026-05-30 19:50:58 -04:00
Fix the build process to support OpenCV 2 (Ubuntu)
This commit is contained in:
13
configure.ac
13
configure.ac
@ -27,7 +27,18 @@ AC_PATH_X
|
||||
#AC_CHECK_HEADER(opencv/highgui.h)
|
||||
#AC_CHECK_HEADER(X11/Xlib.h)
|
||||
#AC_CHECK_HEADER(X11/Xutil.h)
|
||||
PKG_CHECK_MODULES([OpenCV], [opencv >= 1.0.0])
|
||||
|
||||
#Configure OpenCV - version 2+ breaks a lot of things
|
||||
PKG_CHECK_MODULES([OpenCV], [opencv >= 2.0.0], [use_opencv2=true], [use_opencv1=true])
|
||||
if test "$use_opencv2" != ""; then
|
||||
AM_CONDITIONAL(USEOPENCV2, true)
|
||||
AC_DEFINE(USEOPENCV2)
|
||||
fi
|
||||
if test "$use_opencv1" != ""; then
|
||||
echo "could not find OpenCV version 2.0.0 or higher, checking for 1.0.0 or higher..."
|
||||
PKG_CHECK_MODULES([OpenCV], [opencv >= 1.0.0])
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES([X11], [x11 >= 1.0.3])
|
||||
|
||||
AC_ARG_WITH(examples, [ --with-examples build example programs '['default=yes']'])
|
||||
|
||||
Reference in New Issue
Block a user