Build Configure Issue for OBS 31.0.0 (FFmpeg Library Related)

w0nd3r365

New Member
OS: Kali GNU/Linux Rolling 2024.4

Can someone kindly help me figure out what's wrong. After a recursive git clone, and git switch to 31.0.0, my OBS cmake build configure fails with the error shown below.
Rich (BB code):

CMake Error at /usr/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find FFmpeg: (Required is at least version "6.1") 
  (found /usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so;/usr/lib/x86_64-linux-gnu/libavcodec.so,
  found components: avformat avutil swscale swresample avcodec)

      Reason given by package: Ensure that required FFmpeg libraries are installed on the system.

Call Stack (most recent call first):
  /usr/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)
  cmake/finders/FindFFmpeg.cmake:313 (find_package_handle_standard_args)
  libobs/CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!

My cmake build preset is shown below:
JSON:
{
      "name": "kali",
      "displayName": "Wonder's Kali Linux",
      "description": "obs-studio for Kali",
      "inherits": [
        "environmentVars"
      ],
      "condition": {
        "type": "equals",
        "lhs": "${hostSystemName}",
        "rhs": "Linux"
      },
      "binaryDir": "${sourceDir}/build",
      "generator": "Ninja",
      "warnings": {
        "dev": false,
        "deprecated": true
      },
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Release",
        "ENABLE_AJA": false,
        "ENABLE_VLC": true,
        "ENABLE_WAYLAND": false,
        "ENABLE_BROWSER": false,
        "ENABLE_FFMPEG_LOGGING": false,
        "ENABLE_WEBRTC": true,
        "ENABLE_LIBFDK": true,
        "ENABLE_SNDIO": true,
        "ENABLE_JACK": true,
        "ENABLE_VST": true,
        "ENABLE_RTMPS": true,
        "CMAKE_INSTALL_PREFIX": "/usr"
      }  
}

I have installed every ffmpeg library development package I can think of.
Code:
sudo apt install libavdevice-dev libavfilter-dev libpostproc-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev
 

Tuna

Member
Compare with the wiki then:

Open the Debian bracket.
Keep in mind it may be out of date - especially for development versions.
 
Top