Skip to content

Commit

Permalink
fix: lack of ffmpeg libs
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulightouch authored Jul 17, 2024
1 parent 6c277e6 commit 1b60862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/virtual-source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 1b60862

Please sign in to comment.