diff --git a/CMakeLists.txt b/CMakeLists.txt index fcc863e3..c3b0ea29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ if (WIVRN_BUILD_SERVER) endif() if (WIVRN_USE_VAAPI) - pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter) + pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil) pkg_check_modules(LIBDRM REQUIRED IMPORTED_TARGET libdrm) endif() @@ -200,7 +200,7 @@ if (WIVRN_BUILD_CLIENT) endif() if (WIVRN_BUILD_CLIENT AND NOT ANDROID) - pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter) + pkg_check_modules(LIBAV_CLIENT REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale) find_package(Fontconfig REQUIRED) if (WIVRN_USE_SYSTEM_OPENXR) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 63f4ab3d..1926af20 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -81,7 +81,7 @@ else() target_link_libraries(wivrn openxr_loader) endif() - target_link_libraries(wivrn PkgConfig::LIBAV Fontconfig::Fontconfig CURL::libcurl) + target_link_libraries(wivrn PkgConfig::LIBAV_CLIENT Fontconfig::Fontconfig CURL::libcurl) file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS "decoder/ffmpeg/*.cpp") diff --git a/server/encoder/ffmpeg/ffmpeg_helper.cpp b/server/encoder/ffmpeg/ffmpeg_helper.cpp index 93291d7d..abe8dd74 100644 --- a/server/encoder/ffmpeg/ffmpeg_helper.cpp +++ b/server/encoder/ffmpeg/ffmpeg_helper.cpp @@ -24,7 +24,6 @@ extern "C" { #include -#include #include #include }