我正在尝试在 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
从向后移植安装了,所以这并没有告诉我任何信息。根据错误,我尝试运行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.
即使使用 arg,此错误仍然存在-f
。该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
三天了,但无法找到解决此问题的方法。我应该怎么办?
答案1
显然我遇到了和你一样的问题。我尝试了 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
在那之后。
安装缺少的
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