From 1b60862d8d445ef9eee9723019d7eef950ff6384 Mon Sep 17 00:00:00 2001 From: Miau Lightouch <5199594+miaulightouch@users.noreply.github.com> Date: Wed, 17 Jul 2024 21:50:39 +0800 Subject: [PATCH] fix: lack of ffmpeg libs --- src/virtual-source/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/virtual-source/CMakeLists.txt b/src/virtual-source/CMakeLists.txt index 3d77cd3..0e8b65f 100644 --- a/src/virtual-source/CMakeLists.txt +++ b/src/virtual-source/CMakeLists.txt @@ -3,12 +3,13 @@ cmake_minimum_required(VERSION 3.16...3.26) project(obs-virtualsource VERSION ${_version}) add_library(${PROJECT_NAME} MODULE) -find_package(FFmpeg REQUIRED COMPONENTS avutil swscale avcodec avformat swresample) +find_package(FFmpeg REQUIRED COMPONENTS avutil swscale avfilter avcodec avformat swresample) target_link_libraries(${PROJECT_NAME} PRIVATE FFmpeg::avutil FFmpeg::swscale) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(_arch x64) set(bit 64bit) + add_file(${FFmpeg_avfilter_LIBRARY} ${bit}) add_file(${FFmpeg_avcodec_LIBRARY} ${bit}) add_file(${FFmpeg_avformat_LIBRARY} ${bit}) add_file(${FFmpeg_swresample_LIBRARY} ${bit})