@ -1443,194 +1443,194 @@ endif()
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# S u m m a r y :
# S u m m a r y :
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
message ( STATUS "" )
macro ( status text )
message ( STATUS "General configuration for opencv ${OPENCV_VERSION} =====================================" )
SET ( status_cond )
message ( STATUS "" )
SET ( status_then )
message ( STATUS " Built as dynamic libs?: ${BUILD_SHARED_LIBS}" )
SET ( status_else )
message ( STATUS " Compiler: ${CMAKE_COMPILER}" )
message ( STATUS " C++ flags (Release): ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}" )
SET ( status_current_name "cond" )
message ( STATUS " C++ flags (Debug): ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}" )
foreach ( arg ${ ARGN } )
if ( arg STREQUAL "THEN" )
SET ( status_current_name "then" )
elseif ( arg STREQUAL "ELSE" )
SET ( status_current_name "else" )
else ( )
LIST ( APPEND status_ ${ status_current_name } ${ arg } )
endif ( )
endforeach ( )
if ( DEFINED status_cond )
SET ( status_placeholder_length 32 )
string ( RANDOM LENGTH ${ status_placeholder_length } ALPHABET " " status_placeholder )
string ( LENGTH "${text}" status_text_length )
if ( status_text_length LESS status_placeholder_length )
string ( SUBSTRING "${text}${status_placeholder}" 0 ${ status_placeholder_length } status_text )
elseif ( status_then OR status_else )
message ( STATUS "${text}" )
SET ( status_text "${status_placeholder}" )
else ( )
SET ( status_text "${text}" )
endif ( )
if ( status_then OR status_else )
if ( ${ status_cond } )
string ( REPLACE ";" " " status_then "${status_then}" )
message ( STATUS "${status_text}" "${status_then}" )
else ( )
string ( REPLACE ";" " " status_else "${status_else}" )
message ( STATUS "${status_text}" "${status_else}" )
endif ( )
else ( )
string ( REPLACE ";" " " status_cond "${status_cond}" )
message ( STATUS "${status_text}" "${status_cond}" )
endif ( )
else ( )
message ( STATUS "${text}" )
endif ( )
endmacro ( )
status ( "" )
status ( "General configuration for opencv ${OPENCV_VERSION} =====================================" )
status ( "" )
status ( " Built as dynamic libs?:" BUILD_SHARED_LIBS THEN YES ELSE NO )
status ( " Compiler:" CMAKE_COMPILER THEN "${CMAKE_COMPILER}" ELSE "${CMAKE_CXX_COMPILER}" )
status ( " C++ flags (Release):" ${ CMAKE_CXX_FLAGS } ${ CMAKE_CXX_FLAGS_RELEASE } )
status ( " C++ flags (Debug):" ${ CMAKE_CXX_FLAGS } ${ CMAKE_CXX_FLAGS_DEBUG } )
if ( WIN32 )
if ( WIN32 )
message ( STATUS " Linker flags (Release): ${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_EXE_LINKER_FLAGS_RELEASE}" )
status ( " Linker flags (Release):" ${ CMAKE_EXE_LINKER_FLAGS } ${ CMAKE_EXE_LINKER_FLAGS_RELEASE } )
message ( STATUS " Linker flags (Debug): ${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_EXE_LINKER_FLAGS_DEBUG}" )
status ( " Linker flags (Debug):" ${ CMAKE_EXE_LINKER_FLAGS } ${ CMAKE_EXE_LINKER_FLAGS_DEBUG } )
else ( )
else ( )
message ( STATUS " Linker flags (Release): ${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}" )
status ( " Linker flags (Release):" ${ CMAKE_SHARED_LINKER_FLAGS } ${ CMAKE_SHARED_LINKER_FLAGS_RELEASE } )
message ( STATUS " Linker flags (Debug): ${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" )
status ( " Linker flags (Debug):" ${ CMAKE_SHARED_LINKER_FLAGS } ${ CMAKE_SHARED_LINKER_FLAGS_DEBUG } )
endif ( )
endif ( )
# Y V
# Y V
message ( STATUS "" )
statu s ( "" )
message ( STATUS " GUI: " )
statu s ( " GUI: " )
if ( HAVE_QT )
if ( HAVE_QT )
message ( STATUS " QT 4.x: ${HAVE_QT}" )
status ( " QT 4.x:" HAVE_QT THEN YES ELSE NO )
message ( STATUS " QT OpenGL support: ${HAVE_QT_OPENGL}" )
status ( " QT OpenGL support:" HAVE_QT_OPENGL THEN YES ELSE NO )
else ( )
else ( )
if ( WIN32 )
if ( WIN32 )
message ( STATUS " Win32 UI: YES" )
status ( " Win32 UI:" YES )
else ( )
else ( )
if ( APPLE )
if ( APPLE )
if ( WITH_CARBON )
if ( WITH_CARBON )
message ( STATUS " Carbon: YES" )
status ( " Carbon:" YES )
else ( )
else ( )
message ( STATUS " Cocoa: YES" )
status ( " Cocoa:" YES )
endif ( )
endif ( )
else ( )
else ( )
message ( STATUS " GTK+ 2.x: ${HAVE_GTK}" )
status ( " GTK+ 2.x:" HAVE_GTK THEN YES ELSE NO )
message ( STATUS " GThread: ${HAVE_GTHREAD}" )
status ( " GThread:" HAVE_GTHREAD THEN YES ELSE NO )
endif ( )
endif ( )
endif ( )
endif ( )
endif ( )
endif ( )
message ( STATUS "" )
# m e d i a
message ( STATUS " Media I/O: " )
status ( "" )
if ( ZLIB_FOUND )
status ( " Media I/O: " )
message ( STATUS " ZLib: ${ZLIB_FOUND}" )
status ( " ZLib:" ZLIB_FOUND THEN YES ELSE build )
else ( )
status ( " JPEG:" NOT WITH_JPEG OR JPEG_FOUND THEN ${ JPEG_FOUND } ELSE build )
message ( STATUS " ZLib: build" )
status ( " PNG:" NOT WITH_PNG OR PNG_FOUND THEN ${ PNG_FOUND } ELSE build )
endif ( )
status ( " TIFF:" NOT WITH_TIFF OR TIFF_FOUND THEN ${ TIFF_FOUND } ELSE build )
status ( " JPEG 2000:" NOT WITH_JASPER OR JASPER_FOUND THEN ${ JASPER_FOUND } ELSE build )
status ( " OpenEXR:" NOT WITH_OPENEXRR OR OPENEXR_FOUND THEN YES ELSE NO )
if ( NOT WITH_JPEG OR JPEG_FOUND )
status ( " OpenNI:" NOT HAVE_OPENNI OR HAVE_OPENNI_PRIME_SENSOR_MODULE
message ( STATUS " JPEG: ${JPEG_FOUND}" )
T H E N N O
else ( )
E L S E " $ { H A V E _ O P E N N I } ( W A R N I N G : P r i m e S e n s o r M o d u l e s f o r O p e n N I a r e n o t installed ( not found in OPENNI_PRIME_SENSOR_MODULE_BIN_DIR ) . ) " )
message ( STATUS " JPEG: build" )
endif ( )
if ( NOT WITH_PNG OR PNG_FOUND )
# v i d e o
me ssage ( STATUS " PNG: ${PNG_FOUND} ")
statu s ( "")
else ( )
if ( UNIX AND NOT APPLE )
message ( STATUS " PNG: build ")
status ( " Video I/O: " )
endif ( )
status ( " DC1394 1.x:" HAVE_DC1394 THEN YES ELSE NO )
status ( " DC1394 2.x:" HAVE_DC1394_2 THEN YES ELSE NO )
if ( NOT WITH_TIFF OR TIFF_FOUND )
status ( " FFMPEG:" HAVE_FFMPEG THEN YES ELSE NO )
message ( STATUS " TIFF: ${TIFF_FOUND}" )
status ( " codec:" HAVE_FFMPEG_CODEC THEN YES ELSE NO )
else ( )
status ( " format:" HAVE_FFMPEG_FORMAT THEN YES ELSE NO )
message ( STATUS " TIFF: build" )
status ( " util:" HAVE_FFMPEG_UTIL THEN YES ELSE NO )
endif ( )
status ( " swscale:" HAVE_FFMPEG_SWSCALE THEN YES ELSE NO )
status ( " gentoo-style:" HAVE_GENTOO_FFMPEG THEN YES ELSE NO )
if ( NOT WITH_JASPER OR JASPER_FOUND )
status ( " GStreamer:" HAVE_GSTREAMER THEN YES ELSE NO )
message ( STATUS " JPEG 2000: ${JASPER_FOUND}" )
status ( " UniCap:" HAVE_UNICAP THEN YES ELSE NO )
else ( )
status ( " PvAPI:" HAVE_PVAPI THEN YES ELSE NO )
message ( STATUS " JPEG 2000: build" )
status ( " V4L/V4L2:" HAVE_LIBV4L THEN Using libv4l ELSE ${ HAVE_CAMV4L } / ${ HAVE_CAMV4L2 } )
endif ( )
status ( " Xine:" HAVE_XINE THEN YES ELSE NO )
if ( WITH_OPENEXR AND OPENEXR_FOUND )
if ( ANDROID )
message ( STATUS " OpenEXR: YES" )
if ( BUILD_ANDROID_CAMERA_WRAPPER )
else ( )
status ( " AndroidNativeCamera:" "build for Android ${ANDROID_VERSION}" )
message ( STATUS " OpenEXR: NO" )
else ( )
status ( " AndroidNativeCamera:" ARMEABI_V7A THEN use prebuilt libraries ELSE NO )
endif ( )
endif ( )
elseif ( APPLE )
status ( " Video I/O:" WITH_QUICKTIME THEN QuickTime ELSE QTKit )
elseif ( WIN32 )
status ( " Video I/O:" HAVE_VIDEOINPUT THEN DirectShow ELSE NO )
endif ( )
endif ( )
if ( NOT HAVE_OPENNI OR HAVE_OPENNI_PRIME_SENSOR_MODULE )
# i n t e r f a c e s t o o t h e r l a n g u a g e s
message ( STATUS " OpenNI: ${HAVE_OPENNI}" )
status ( "" )
else ( )
status ( " Interfaces:" )
message ( STATUS " OpenNI: ${HAVE_OPENNI} (WARNING: PrimeSensor Modules for OpenNI are not installed (not found in OPENNI_PRIME_SENSOR_MODULE_BIN_DIR).)" )
status ( " Python:" BUILD_NEW_PYTHON_SUPPORT THEN YES ELSE NO )
endif ( )
status ( " Python interpreter:" PYTHON_EXECUTABLE THEN "${PYTHON_EXECUTABLE}" ELSE NO )
status ( " Python numpy:" PYTHON_USE_NUMPY THEN YES ELSE "NO (Python interface will not cover OpenCV 2.x API)" )
status ( " Java:" BUILD_JAVA_SUPPORT THEN YES ELSE NO )
if ( UNIX AND NOT APPLE )
message ( STATUS "" )
message ( STATUS " Video I/O: " )
message ( STATUS " DC1394 1.x: ${HAVE_DC1394}" )
message ( STATUS " DC1394 2.x: ${HAVE_DC1394_2}" )
message ( STATUS " FFMPEG: ${HAVE_FFMPEG}" )
message ( STATUS " codec: ${HAVE_FFMPEG_CODEC}" )
message ( STATUS " format: ${HAVE_FFMPEG_FORMAT}" )
message ( STATUS " util: ${HAVE_FFMPEG_UTIL}" )
message ( STATUS " swscale: ${HAVE_FFMPEG_SWSCALE}" )
message ( STATUS " gentoo-style: ${HAVE_GENTOO_FFMPEG}" )
message ( STATUS " GStreamer: ${HAVE_GSTREAMER}" )
message ( STATUS " UniCap: ${HAVE_UNICAP}" )
message ( STATUS " PvAPI: ${HAVE_PVAPI}" )
if ( HAVE_LIBV4L )
message ( STATUS " V4L/V4L2: Using libv4l" )
else ( )
message ( STATUS " V4L/V4L2: ${HAVE_CAMV4L}/${HAVE_CAMV4L2}" )
endif ( )
message ( STATUS " Xine: ${HAVE_XINE}" )
if ( ANDROID )
if ( ANDROID )
if ( ARMEABI_V7A )
status ( " android tool:" ANDROID_EXECUTABLE THEN "${ANDROID_EXECUTABLE}" ELSE NO )
if ( BUILD_ANDROID_CAMERA_WRAPPER )
status ( " ant:" ANT_EXECUTABLE THEN "${ANT_EXECUTABLE} (ver ${ANT_VERSION})" ELSE NO )
message ( STATUS " AndroidNativeCamera: build for Android ${ANDROID_VERSION}" )
else ( )
message ( STATUS " AndroidNativeCamera: use prebuilt libraries" )
endif ( BUILD_ANDROID_CAMERA_WRAPPER )
else ( ARMEABI_V7A )
message ( STATUS " AndroidNativeCamera: NO" )
endif ( ARMEABI_V7A )
endif ( ANDROID )
endif ( UNIX AND NOT APPLE )
if ( APPLE )
message ( STATUS "" )
if ( WITH_QUICKTIME )
message ( STATUS " Video I/O: QuickTime" )
else ( )
message ( STATUS " Video I/O: QTKit" )
endif ( )
endif ( APPLE )
if ( WIN32 AND HAVE_VIDEOINPUT )
message ( STATUS "" )
message ( STATUS " Video I/O: DirectShow" )
endif ( )
endif ( )
message ( STATUS "" )
# O t h e r t h i r d - p a r t y l i b r a r i e s
message ( STATUS " Interfaces: " )
status ( "" )
message ( STATUS " Python: ${BUILD_NEW_PYTHON_SUPPORT}" )
status ( " Other third-party dependencies:" )
message ( STATUS " Python interpreter: ${PYTHON_EXECUTABLE}" )
if ( PYTHON_USE_NUMPY )
message ( STATUS " Python numpy: YES" )
else ( )
message ( STATUS " Python numpy: NO (Python interface will not cover OpenCV 2.x API)" )
endif ( )
message ( STATUS " Java: ${BUILD_JAVA_SUPPORT}" )
if ( WITH_IPP AND IPP_FOUND )
if ( WITH_IPP AND IPP_FOUND )
message ( STATUS " Use IPP: ${IPP_LATEST_VERSION_STR} [${IPP_LATEST_VERSION_MAJOR}.${IPP_LATEST_VERSION_MINOR}.${IPP_LATEST_VERSION_BUILD}]" )
status ( " Use IPP:" "${IPP_LATEST_VERSION_STR} [${IPP_LATEST_VERSION_MAJOR}.${IPP_LATEST_VERSION_MINOR}.${IPP_LATEST_VERSION_BUILD}]" )
message ( STATUS " at: ${IPP_ROOT_DIR}" )
status ( " at:" "${IPP_ROOT_DIR}" )
elseif ( WITH_IPP AND NOT IPP_FOUND )
message ( STATUS " Use IPP: IPP not found" )
else ( )
else ( )
message ( STATUS " Use IPP: NO" )
status ( " Use IPP:" WITH_IPP AND NOT IPP_FOUND THEN IPP not found ELSE NO )
endif ( )
endif ( )
if ( HAVE_TBB )
status ( " Use TBB:" HAVE_TBB THEN YES ELSE NO )
message ( STATUS " Use TBB: YES" )
else ( )
message ( STATUS " Use TBB: NO" )
if ( HAVE_THREADING_FRAMEWORK )
message ( STATUS " Use ThreadingFramework: YES" )
else ( )
message ( STATUS " Use ThreadingFramework: NO" )
endif ( )
endif ( )
if ( HAVE_CUDA )
if ( UNIX )
message ( STATUS " Use Cuda: YES" )
status ( " Use ThreadingFramework:" HAVE_THREADING_FRAMEWORK THEN YES ELSE NO )
else ( )
message ( STATUS " Use Cuda: NO" )
endif ( )
endif ( )
if ( HAVE_EIGEN )
status ( " Use Cuda:" HAVE_CUDA THEN YES ELSE NO )
message ( STATUS " Use Eigen: YES" )
status ( " Use Eigen:" HAVE_EIGEN THEN YES ELSE NO )
else ( )
message ( STATUS " Use Eigen: NO" )
endif ( )
message ( STATUS "" )
# d o c u m e n t a t i o n
message ( STATUS " Documentation: " )
status ( "" )
status ( " Documentation:" )
status ( " Sphinx:" HAVE_SPHINX THEN "${SPHINX_BUILD} (ver ${SPHINX_VERSION})" ELSE NO )
status ( " PdfLaTeX compiler:" BUILD_DOCS AND PDFLATEX_COMPILER THEN "${PDFLATEX_COMPILER}" ELSE NO )
status ( " Build Documentation:" BUILD_DOCS AND PDFLATEX_COMPILER AND HAVE_SPHINX THEN YES ELSE NO )
if ( BUILD_DOCS AND PDFLATEX_COMPILER AND HAVE_SPHINX )
# s a m p l e s a n d t e s t s
message ( STATUS " Build Documentation: YES" )
status ( "" )
else ( )
status ( " Tests and samples:" )
message ( STATUS " Build Documentation: NO" )
status ( " Tests:" BUILD_TESTS THEN YES ELSE NO )
status ( " Examples:" BUILD_EXAMPLES THEN YES ELSE NO )
if ( ANDROID )
status ( " Android tests:" BUILD_TESTS AND CAN_BUILD_ANDROID_PROJECTS THEN YES ELSE NO )
status ( " Android examples:" BUILD_EXAMPLES AND CAN_BUILD_ANDROID_PROJECTS THEN YES ELSE NO )
endif ( )
endif ( )
message ( STATUS "" )
# a u x i l i a r y
message ( STATUS " Install path: ${CMAKE_INSTALL_PREFIX}" )
status ( "" )
message ( STATUS "" )
status ( " Install path:" "${CMAKE_INSTALL_PREFIX}" )
message ( STATUS " cvconfig.h is in: ${OPENCV_CONFIG_FILE_INCLUDE_DIR}" )
status ( "" )
message ( STATUS "-----------------------------------------------------------------" )
status ( " cvconfig.h is in:" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}" )
message ( STATUS "" )
status ( "-----------------------------------------------------------------" )
status ( "" )
# w a r n i n t h e c a s e o f i n - s o u r c e b u i l d
# w a r n i n t h e c a s e o f i n - s o u r c e b u i l d
if ( "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}" )
if ( "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}" )