在没有依赖项或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)
发布于 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
https://askubuntu.com/questions/1125437
复制相似问题