From 52c7a8474f4c90fc63829ddf4caffe614ef591e4 Mon Sep 17 00:00:00 2001 From: Evgeny Shulgin Date: Wed, 22 Feb 2017 16:40:40 +0300 Subject: [PATCH] Added missing swscale library --- src/CMakeLists.txt | 3 +++ src/lib_ccx/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ed5845d4..1a37aa0c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -71,14 +71,17 @@ if (PKG_CONFIG_FOUND AND WITH_FFMPEG) pkg_check_modules (AVFORMAT REQUIRED libavformat) pkg_check_modules (AVUTIL REQUIRED libavutil) pkg_check_modules (AVCODEC REQUIRED libavcodec) + pkg_check_modules (SWSCALE REQUIRED libswscale) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVFORMAT_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVUTIL_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVCODEC_LIBRARIES}) + set (EXTRA_LIBS ${EXTRA_LIBS} ${SWSCALE_LIBRARIES}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVFORMAT_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVUTIL_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVCODEC_INCLUDE_DIRS}) + set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${SWSCALE_INCLUDE_DIRS}) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HARDSUBX") diff --git a/src/lib_ccx/CMakeLists.txt b/src/lib_ccx/CMakeLists.txt index e44416bb..b9951c0c 100644 --- a/src/lib_ccx/CMakeLists.txt +++ b/src/lib_ccx/CMakeLists.txt @@ -8,14 +8,17 @@ if (WITH_FFMPEG) pkg_check_modules (AVFORMAT REQUIRED libavformat) pkg_check_modules (AVUTIL REQUIRED libavutil) pkg_check_modules (AVCODEC REQUIRED libavcodec) + pkg_check_modules (SWSCALE REQUIRED libswscale) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVFORMAT_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVUTIL_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVCODEC_LIBRARIES}) + set (EXTRA_LIBS ${EXTRA_LIBS} ${SWSCALE_LIBRARIES}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVFORMAT_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVUTIL_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVCODEC_INCLUDE_DIRS}) + set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${SWSCALE_INCLUDE_DIRS}) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HARDSUBX")