I am trying to install OBS Studio on Debian 8. I tried to follow the official install guide for OBS Studio, but when I try to run cmake -DUNIX_STRUCTURE=1 DCMAKE_INSTALL_PREFIX=/usr .. I get the following error:
-- OBS_VERSION: 18.0.1-12-g3540e71
CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find FFmpeg (missing: FFMPEG_AVCODEC_LIBRARIES
FFMPEG_AVCODEC_INCLUDE_DIRS avcodec avfilter avdevice avutil swscale
avformat swresample)
Call Stack (most recent call first):
/usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindFFmpeg.cmake:151 (find_package_handle_standard_args)
deps/libff/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
See also "/root/obs-studio/build/CMakeFiles/CMakeOutput.log".
The only solution I could find people giving was to install ffmpeg; however, I have already installed ffmpeg from backports so this does not tell me anything. Based on the error I tried to run apt-get install libavcodec-dev libavfilter-dev libavdevice-dev libavutil-dev libswscale-dev libavformat-dev libswresample-dev and got the following error:
The following packages have unmet dependencies:
libavcodec-dev : Depends: libavcodec56 (<= 6:11.8-99) but 10:2.6.9-dmo1 is to be installed or
libavcodec-extra-56 (<= 6:11.8-99) but it is not going to be installed
Depends: libavresample-dev (= 6:11.8-1~deb8u1) but it is not going to be installed
libavfilter-dev : Depends: libavresample-dev (= 6:11.8-1~deb8u1) but it is not going to be installed
Depends: libavfilter5 (= 6:11.8-1~deb8u1) but it is not going to be installed
libavformat-dev : Depends: libavformat56 (= 6:11.8-1~deb8u1) but 10:2.6.9-dmo1 is to be installed
libavutil-dev : Depends: libavutil54 (= 6:11.8-1~deb8u1) but 10:2.6.9-dmo1 is to be installed
libswresample-dev : Depends: libavutil-dev (= 7:3.2.4-1~bpo8+1) but 6:11.8-1~deb8u1 is to be installed
libswscale-dev : Depends: libswscale3 (= 6:11.8-1~deb8u1) but 10:2.6.9-dmo1 is to be installed
E: Unable to correct problems, you have held broken packages.
This error persists even using the -f arg. The ffmpeg command has this output, listing all the "missing" libraries:
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
I have been trying to install obs-studio for three days now and cannot figure out a way around this. What should I do?