|
|
@ -381,7 +381,9 @@ if(UNIX) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(HAVE_FFMPEG) |
|
|
|
if(HAVE_FFMPEG) |
|
|
|
CHECK_MODULE(libavformat>=52.111.0 NEW_FFMPEG) |
|
|
|
if(NOT ALIASOF_libavformat_VERSION VERSION_LESS "52.111.0") |
|
|
|
|
|
|
|
set(NEW_FFMPEG ON) |
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(WITH_1394) |
|
|
|
if(WITH_1394) |
|
|
@ -436,13 +438,17 @@ if(APPLE AND WITH_FFMPEG) |
|
|
|
set(FFMPEG_LIB_DIR "${FFMPEG_INCLUDE_DIR}/../lib" CACHE PATH "Full path of FFMPEG library directory") |
|
|
|
set(FFMPEG_LIB_DIR "${FFMPEG_INCLUDE_DIR}/../lib" CACHE PATH "Full path of FFMPEG library directory") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavcodec.a") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavcodec.a") |
|
|
|
set(HAVE_FFMPEG_CODEC 1) |
|
|
|
set(HAVE_FFMPEG_CODEC 1) |
|
|
|
|
|
|
|
set(ALIASOF_libavcodec_VERSION "Unknown") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavformat.a") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavformat.a") |
|
|
|
set(HAVE_FFMPEG_FORMAT 1) |
|
|
|
set(HAVE_FFMPEG_FORMAT 1) |
|
|
|
|
|
|
|
set(ALIASOF_libavformat_VERSION "Unknown") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavutil.a") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavutil.a") |
|
|
|
set(HAVE_FFMPEG_UTIL 1) |
|
|
|
set(HAVE_FFMPEG_UTIL 1) |
|
|
|
|
|
|
|
set(ALIASOF_libavutil_VERSION "Unknown") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libswscale.a") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libswscale.a") |
|
|
|
ocv_include_directories(${FFMPEG_INCLUDE_DIR}) |
|
|
|
ocv_include_directories(${FFMPEG_INCLUDE_DIR}) |
|
|
|
set(HAVE_FFMPEG_SWSCALE 1) |
|
|
|
set(HAVE_FFMPEG_SWSCALE 1) |
|
|
|
|
|
|
|
set(ALIASOF_libswscale_VERSION "Unknown") |
|
|
|
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} "${FFMPEG_LIB_DIR}/libavcodec.a" |
|
|
|
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} "${FFMPEG_LIB_DIR}/libavcodec.a" |
|
|
|
"${FFMPEG_LIB_DIR}/libavformat.a" "${FFMPEG_LIB_DIR}/libavutil.a" |
|
|
|
"${FFMPEG_LIB_DIR}/libavformat.a" "${FFMPEG_LIB_DIR}/libavutil.a" |
|
|
|
"${FFMPEG_LIB_DIR}/libswscale.a") |
|
|
|
"${FFMPEG_LIB_DIR}/libswscale.a") |
|
|
@ -648,6 +654,9 @@ include(cmake/OpenCVGenConfig.cmake REQUIRED) |
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
status("") |
|
|
|
status("") |
|
|
|
status("General configuration for OpenCV ${OPENCV_VERSION} =====================================") |
|
|
|
status("General configuration for OpenCV ${OPENCV_VERSION} =====================================") |
|
|
|
|
|
|
|
if(OPENCV_SVNVERSION) |
|
|
|
|
|
|
|
status("svn:" "${OPENCV_SVNVERSION}") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
#build platform |
|
|
|
#build platform |
|
|
|
status("") |
|
|
|
status("") |
|
|
@ -741,9 +750,9 @@ else() |
|
|
|
status(" Cocoa:" YES) |
|
|
|
status(" Cocoa:" YES) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
else() |
|
|
|
else() |
|
|
|
status(" GTK+ 2.x:" HAVE_GTK THEN YES ELSE NO) |
|
|
|
status(" GTK+ 2.x:" HAVE_GTK THEN "YES (ver ${ALIASOF_gtk+-2.0_VERSION})" ELSE NO) |
|
|
|
status(" GThread :" HAVE_GTHREAD THEN YES ELSE NO) |
|
|
|
status(" GThread :" HAVE_GTHREAD THEN "YES (ver ${ALIASOF_gthread-2.0_VERSION})" ELSE NO) |
|
|
|
status(" GtkGlExt:" HAVE_GTKGLEXT THEN YES ELSE NO) |
|
|
|
status(" GtkGlExt:" HAVE_GTKGLEXT THEN "YES (ver ${ALIASOF_gtkglext-1.0_VERSION})" ELSE NO) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
@ -788,23 +797,39 @@ endif() |
|
|
|
status("") |
|
|
|
status("") |
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
status(" Video I/O:") |
|
|
|
status(" Video I/O:") |
|
|
|
status(" DC1394 1.x:" HAVE_DC1394 THEN YES ELSE NO) |
|
|
|
status(" DC1394 1.x:" HAVE_DC1394 THEN "YES (ver ${ALIASOF_libdc1394_VERSION})" ELSE NO) |
|
|
|
status(" DC1394 2.x:" HAVE_DC1394_2 THEN YES ELSE NO) |
|
|
|
status(" DC1394 2.x:" HAVE_DC1394_2 THEN "YES (ver ${ALIASOF_libdc1394-2_VERSION})" ELSE NO) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
if(UNIX) |
|
|
|
if(UNIX) |
|
|
|
status(" FFMPEG:" HAVE_FFMPEG THEN YES ELSE NO) |
|
|
|
status(" FFMPEG:" HAVE_FFMPEG THEN YES ELSE NO) |
|
|
|
status(" codec:" HAVE_FFMPEG_CODEC THEN YES ELSE NO) |
|
|
|
status(" codec:" HAVE_FFMPEG_CODEC THEN "YES (ver ${ALIASOF_libavcodec_VERSION})" ELSE NO) |
|
|
|
status(" format:" HAVE_FFMPEG_FORMAT THEN YES ELSE NO) |
|
|
|
status(" format:" HAVE_FFMPEG_FORMAT THEN "YES (ver ${ALIASOF_libavformat_VERSION})" ELSE NO) |
|
|
|
status(" util:" HAVE_FFMPEG_UTIL THEN YES ELSE NO) |
|
|
|
status(" util:" HAVE_FFMPEG_UTIL THEN "YES (ver ${ALIASOF_libavutil_VERSION})" ELSE NO) |
|
|
|
status(" swscale:" HAVE_FFMPEG_SWSCALE THEN YES ELSE NO) |
|
|
|
status(" swscale:" HAVE_FFMPEG_SWSCALE THEN "YES (ver ${ALIASOF_libswscale_VERSION})" ELSE NO) |
|
|
|
status(" gentoo-style:" HAVE_GENTOO_FFMPEG THEN YES ELSE NO) |
|
|
|
status(" gentoo-style:" HAVE_GENTOO_FFMPEG THEN YES ELSE NO) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
status(" GStreamer:" HAVE_GSTREAMER THEN YES ELSE NO) |
|
|
|
status(" GStreamer:" HAVE_GSTREAMER THEN "" ELSE NO) |
|
|
|
status(" UniCap:" HAVE_UNICAP THEN YES ELSE NO) |
|
|
|
if(HAVE_GSTREAMER) |
|
|
|
|
|
|
|
status(" base:" "YES (ver ${ALIASOF_gstreamer-base-0.10_VERSION})") |
|
|
|
|
|
|
|
status(" app:" "YES (ver ${ALIASOF_gstreamer-app-0.10_VERSION})") |
|
|
|
|
|
|
|
status(" video:" "YES (ver ${ALIASOF_gstreamer-video-0.10_VERSION})") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
status(" UniCap:" HAVE_UNICAP THEN "YES (ver ${ALIASOF_libunicap_VERSION})" ELSE NO) |
|
|
|
|
|
|
|
status(" UniCap ucil:" HAVE_UNICAP_UCIL THEN "YES (ver ${ALIASOF_libucil_VERSION})" ELSE NO) |
|
|
|
status(" PvAPI:" HAVE_PVAPI THEN YES ELSE NO) |
|
|
|
status(" PvAPI:" HAVE_PVAPI THEN YES ELSE NO) |
|
|
|
status(" V4L/V4L2:" HAVE_LIBV4L THEN "Using libv4l" ELSE ${HAVE_CAMV4L}/${HAVE_CAMV4L2}) |
|
|
|
if(HAVE_CAMV4L) |
|
|
|
status(" Xine:" HAVE_XINE THEN YES ELSE NO) |
|
|
|
set(HAVE_CAMV4L_STR "YES") |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
set(HAVE_CAMV4L_STR "NO") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
if(HAVE_CAMV4L2) |
|
|
|
|
|
|
|
set(HAVE_CAMV4L2_STR "YES") |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
set(HAVE_CAMV4L2_STR "NO") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
status(" V4L/V4L2:" HAVE_LIBV4L THEN "Using libv4l (ver ${ALIASOF_libv4l1_VERSION})" ELSE "${HAVE_CAMV4L_STR}/${HAVE_CAMV4L2_STR} (ver ${ALIASOF_libv4l1_VERSION})") |
|
|
|
|
|
|
|
status(" Xine:" HAVE_XINE THEN "YES (ver ${ALIASOF_libxine_VERSION}" ELSE NO) |
|
|
|
|
|
|
|
|
|
|
|
if(ANDROID) |
|
|
|
if(ANDROID) |
|
|
|
if(HAVE_opencv_androidcamera) |
|
|
|
if(HAVE_opencv_androidcamera) |
|
|
@ -844,9 +869,9 @@ if(HAVE_CUDA) |
|
|
|
|
|
|
|
|
|
|
|
status(" Use CUFFT:" HAVE_CUFFT THEN YES ELSE NO) |
|
|
|
status(" Use CUFFT:" HAVE_CUFFT THEN YES ELSE NO) |
|
|
|
status(" Use CUBLAS:" HAVE_CUBLAS THEN YES ELSE NO) |
|
|
|
status(" Use CUBLAS:" HAVE_CUBLAS THEN YES ELSE NO) |
|
|
|
status(" NVIDIA GPU arch:" OPENCV_CUDA_ARCH_BIN) |
|
|
|
status(" NVIDIA GPU arch:" "${OPENCV_CUDA_ARCH_BIN}") |
|
|
|
status(" NVIDIA PTX archs:" OPENCV_CUDA_ARCH_BIN) |
|
|
|
status(" NVIDIA PTX archs:" "${OPENCV_CUDA_ARCH_BIN}") |
|
|
|
status(" NVIDIA GPU features": OPENCV_CUDA_ARCH_FEATURES) |
|
|
|
status(" NVIDIA GPU features:" "${OPENCV_CUDA_ARCH_FEATURES}") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# interfaces to other languages |
|
|
|
# interfaces to other languages |
|
|
|