Unable to build citra with FFMPEG

When I try to cmake citra in my Linux OS with build type optimized and FFMPEG enabled, I get the following error:

CMake Error at /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find FFmpeg (missing: FFmpeg_INCLUDE_avcodec
  FFmpeg_LIBRARY_avcodec FFmpeg_INCLUDE_avformat FFmpeg_LIBRARY_avformat
  FFmpeg_INCLUDE_avutil FFmpeg_LIBRARY_avutil FFmpeg_INCLUDE_swscale
  FFmpeg_LIBRARY_swscale FFmpeg_INCLUDE_swresample FFmpeg_LIBRARY_swresample
  avcodec avformat avutil swscale swresample)
Call Stack (most recent call first):
  /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  externals/cmake-modules/FindFFmpeg.cmake:174 (find_package_handle_standard_args)
  CMakeLists.txt:212 (find_package)

I have installed ffmpeg 4.0+ using the command

sudo apt-get install ffmpeg

System Information

  • Operating System: Ubuntu 18.04
  • CPU: i7 7700HQ
  • GPU: 1050Ti
  • Citra Version (found in title bar): Latest git clone

In order for us to provide better support, we need to see the log generated by Citra. This guide will walk you through how you can obtain the log file: How to Upload the Log File.

i guess cmake still doesn’t support ‘find_package’ for ffmpeg, try this.