From 2b5657d36fb202010d021ca2575789e25b21bfab Mon Sep 17 00:00:00 2001 From: dxbstyle <72038162+dxbstyle@users.noreply.github.com> Date: Wed, 26 Oct 2022 18:24:17 +0200 Subject: [PATCH] Fixed FFMPEG not found error FFmpeg doesn't support find_package in CMake, instead you have to write this for it to work --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 742c8df..b363051 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ find_package(GLUT REQUIRED) find_package(ZLIB REQUIRED) find_package(SDL REQUIRED) find_package(LZ4 REQUIRED) -find_package(FFMPEG REQUIRED) +find_path(AVCODEC_INCLUDE_DIR libavcodec/avcodec.h) +find_library(AVCODEC_LIBRARY avcodec) find_package(FreeImage REQUIRED) @@ -218,4 +219,4 @@ check_function_exists(XSetIOErrorExitHandler HAVE_XSETIOERROREXITHANDLER) if(HAVE_XSETIOERROREXITHANDLER) add_compile_definitions(HAVE_XSETIOERROREXITHANDLER=1) -endif() \ No newline at end of file +endif()