Apt
OBS Studio CMAKE 找不到 FFmpeg?
我正在嘗試在 Debian 8 上安裝 OBS Studio。我嘗試遵循OBS Studio的官方安裝指南,但是當我嘗試執行時
cmake -DUNIX_STRUCTURE=1 DCMAKE_INSTALL_PREFIX=/usr ..
出現以下錯誤:-- 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".
我能找到人們提供的唯一解決方案是安裝
ffmpeg
;但是,我已經ffmpeg
從 backports 安裝了,所以這並不能告訴我任何事情。基於錯誤,我嘗試執行apt-get install libavcodec-dev libavfilter-dev libavdevice-dev libavutil-dev libswscale-dev libavformat-dev libswresample-dev
並收到以下錯誤: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.
即使使用
-f
arg,此錯誤仍然存在。該ffmpeg
命令有這個輸出,列出所有“缺失”的庫: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
我已經嘗試安裝
obs-studio
三天了,無法解決這個問題。我該怎麼辦?
顯然我遇到了和你一樣的問題。我嘗試以 3 種不同的方式安裝 ffmpeg(從原始碼、從儲存庫和使用 ffmpeg_installer) - OBS 沒有檢測到任何這些安裝。
我從 Launchpad 下載了一個 .deb 文件並嘗試安裝它,但它說我的 Debian 8.8.0 上有一堆舊的庫(我正在執行穩定的分支)。
我所做的是:
- 將我的整個系統升級到不穩定(sid)分支。為此,我需要更改我的條目並將條目
etc/apt/sources.list
替換為. 要升級整個發行版,您必須執行jessie``sid
apt-get update apt-get -u dist-upgrade
之後。 2. 安裝缺少
libfdk-aac1
的庫。它位於非免費分支中,因此您還需要non-free
向您的sources.list
. 然後執行:apt-get update apt-get install libfdk-aac1
- 最後一件事是
libfontconfig1
lib。即使將整個發行版升級到了不穩定的分支,該庫仍然太舊,無法安裝 OBS Studio。不用擔心,您可以從實驗分支獲得更新的版本。將以下行添加到您的sources.list
:deb http://deb.debian.org/debian experimental main
然後執行:
apt-get update apt-get -t experimental install libfontconfig1
- 最後,您現在可以從 Launchpad 安裝 deb 包。我在 Ubuntu 17.04 (Zesty Zapus) 上使用過這個:
dpkg -i obs-studio_18.0.1-0obsproject1~zesty_amd64.deb