|
|
@ -218,42 +218,35 @@ if(WITH_FFMPEG) |
|
|
|
# Do an other trial |
|
|
|
# Do an other trial |
|
|
|
FIND_FILE(BZIP2_LIBRARIES NAMES libbz2.so.1 PATHS /lib) |
|
|
|
FIND_FILE(BZIP2_LIBRARIES NAMES libbz2.so.1 PATHS /lib) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif(HAVE_FFMPEG) |
|
|
|
else() |
|
|
|
endif() |
|
|
|
find_path(FFMPEG_INCLUDE_DIR "libavformat/avformat.h" |
|
|
|
|
|
|
|
PATHS /usr/local /usr /opt |
|
|
|
if(APPLE) |
|
|
|
PATH_SUFFIXES include |
|
|
|
find_path(FFMPEG_INCLUDE_DIR "libavformat/avformat.h" |
|
|
|
DOC "The path to FFMPEG headers") |
|
|
|
PATHS /usr/local /usr /opt |
|
|
|
if(FFMPEG_INCLUDE_DIR) |
|
|
|
PATH_SUFFIXES include |
|
|
|
set(HAVE_GENTOO_FFMPEG TRUE) |
|
|
|
DOC "The path to FFMPEG headers") |
|
|
|
set(FFMPEG_LIB_DIR "${FFMPEG_INCLUDE_DIR}/../lib" CACHE PATH "Full path of FFMPEG library directory") |
|
|
|
if(FFMPEG_INCLUDE_DIR) |
|
|
|
find_library(FFMPEG_CODEC_LIB "avcodec" HINTS "${FFMPEG_LIB_DIR}") |
|
|
|
set(HAVE_GENTOO_FFMPEG TRUE) |
|
|
|
find_library(FFMPEG_FORMAT_LIB "avformat" HINTS "${FFMPEG_LIB_DIR}") |
|
|
|
set(FFMPEG_LIB_DIR "${FFMPEG_INCLUDE_DIR}/../lib" CACHE PATH "Full path of FFMPEG library directory") |
|
|
|
find_library(FFMPEG_UTIL_LIB "avutil" HINTS "${FFMPEG_LIB_DIR}") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavcodec.a") |
|
|
|
find_library(FFMPEG_SWSCALE_LIB "swscale" HINTS "${FFMPEG_LIB_DIR}") |
|
|
|
set(HAVE_FFMPEG_CODEC 1) |
|
|
|
if(FFMPEG_CODEC_LIB AND FFMPEG_FORMAT_LIB AND |
|
|
|
set(ALIASOF_libavcodec_VERSION "Unknown") |
|
|
|
FFMPEG_UTIL_LIB AND FFMPEG_SWSCALE_LIB) |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavformat.a") |
|
|
|
set(ALIASOF_libavcodec_VERSION "Unknown") |
|
|
|
set(HAVE_FFMPEG_FORMAT 1) |
|
|
|
|
|
|
|
set(ALIASOF_libavformat_VERSION "Unknown") |
|
|
|
set(ALIASOF_libavformat_VERSION "Unknown") |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libavutil.a") |
|
|
|
set(ALIASOF_libavutil_VERSION "Unknown") |
|
|
|
set(HAVE_FFMPEG_UTIL 1) |
|
|
|
set(ALIASOF_libswscale_VERSION "Unknown") |
|
|
|
set(ALIASOF_libavutil_VERSION "Unknown") |
|
|
|
set(HAVE_FFMPEG 1) |
|
|
|
if(EXISTS "${FFMPEG_LIB_DIR}/libswscale.a") |
|
|
|
|
|
|
|
set(HAVE_FFMPEG_SWSCALE 1) |
|
|
|
|
|
|
|
set(ALIASOF_libswscale_VERSION "Unknown") |
|
|
|
|
|
|
|
set(HAVE_FFMPEG 1) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif(FFMPEG_INCLUDE_DIR) |
|
|
|
endif(FFMPEG_INCLUDE_DIR) |
|
|
|
if(HAVE_FFMPEG) |
|
|
|
if(HAVE_FFMPEG) |
|
|
|
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} |
|
|
|
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} "${FFMPEG_LIB_DIR}/libavcodec.a" |
|
|
|
${FFMPEG_CODEC_LIB} ${FFMPEG_FORMAT_LIB} |
|
|
|
"${FFMPEG_LIB_DIR}/libavformat.a" "${FFMPEG_LIB_DIR}/libavutil.a" |
|
|
|
${FFMPEG_UTIL_LIB} ${FFMPEG_SWSCALE_LIB}) |
|
|
|
"${FFMPEG_LIB_DIR}/libswscale.a") |
|
|
|
ocv_include_directories(${FFMPEG_INCLUDE_DIR}) |
|
|
|
ocv_include_directories(${FFMPEG_INCLUDE_DIR}) |
|
|
|
endif(HAVE_FFMPEG) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif(APPLE) |
|
|
|
endif() |
|
|
|
endif(WITH_FFMPEG) |
|
|
|
endif(WITH_FFMPEG) |
|
|
|
|
|
|
|
|
|
|
|
# --- VideoInput/DirectShow --- |
|
|
|
# --- VideoInput/DirectShow --- |
|
|
|