首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu18.04 LTS上安装OBS (开放广播软件)而没有错误

如何在Ubuntu18.04 LTS上安装OBS (开放广播软件)而没有错误
EN

Ask Ubuntu用户
提问于 2019-03-13 21:28:02
回答 1查看 1.7K关注 0票数 0

在没有依赖项或ffmpeg错误的情况下,为Ubuntu18.04LTS构建OBS有哪些步骤?

我最初在这里遵循了Ubuntu正式文档:https://obsproject.com/wiki/install-instructions#linux,如下所示:

$sudo apt-get install ffmpeg $sudo add-apt-repository ppa:obsproject/obs-studio $sudo apt-get update $sudo apt-get install obs-studio

这将导致软件包版本出现问题:

The following packages have unmet dependencies: obs-studio : Depends: libavcodec57 (>= 7:3.4.4) but 7:3.4.2-2 is to be installed or libavcodec-extra57 (>= 7:3.4.4) but it is not going to be installed Depends: libavdevice57 (>= 7:3.4.4) but 7:3.4.2-2 is to be installed Depends: libavformat57 (>= 7:3.4.4) but 7:3.4.2-2 is to be installed Depends: libavutil55 (>= 7:3.4.4) but 7:3.4.2-2 is to be installed Depends: libswresample2 (>= 7:3.4.4) but 7:3.4.2-2 is to be installed Depends: libswscale4 (>= 7:3.4.4) but 7:3.4.2-2 is to be installed E: Unable to correct problems, you have held broken packages.

从源头构建,用Git克隆:

git clone --recursive https://github.com/obsproject/obs-studio.git

...still给了我错误:

CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find FFmpeg (missing: FFMPEG_AVCODEC_LIBRARIES FFMPEG_AVCODEC_INCLUDE_DIRS avcodec avdevice avutil avformat)

EN

回答 1

Ask Ubuntu用户

发布于 2019-03-13 21:28:02

在运行cmake和make之前添加以下库:

$sudo apt install libavcodec-dev libavformat-dev libavdevice-dev (参考文献:如何从Launchpad下载和安装ffmpeg?)

接下来您需要:$sudo apt-get install libmbedtls-dev

Qt5Svg也是必需的:$sudo apt-get install libqt5svg5-dev

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1125437

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档