首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从源代码CentOS 8生成OBS时出错

从源代码CentOS 8生成OBS时出错
EN

Unix & Linux用户
提问于 2020-07-06 21:05:31
回答 1查看 674关注 0票数 0

我对OBS源代码有一个问题,因为它没有检测到安装在我计算机上的芬伯

代码语言:javascript
复制
[mlodybukk@localhost build]$ cmake -DUNIX_STRUCTURE=0 -DCMAKE_INSTALL_PREFIX="${HOME}/obs-studio-portable" ..
-- OBS_VERSION: 0.0.1
CMake Warning at CMakeLists.txt:227 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find FFmpeg (missing: FFMPEG_AVCODEC_LIBRARIES
  FFMPEG_AVCODEC_INCLUDE_DIRS avcodec avdevice avutil avformat)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindFFmpeg.cmake:151 (find_package_handle_standard_args)
  deps/media-playback/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/mlodybukk/Pobrane/

编辑1:在安装了ffmpeg-devel和其他一些必需的编解码器之后,我得到了一个错误:

代码语言:javascript
复制
CMake Error at UI/CMakeLists.txt:59 (find_package):
  By not providing "FindQt5Svg.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Svg", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Svg" with any
  of the following names:

    Qt5SvgConfig.cmake
    qt5svg-config.cmake

  Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set
  "Qt5Svg_DIR" to a directory containing one of the above files.  If "Qt5Svg"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/mlodybukk/Pobrane/obs-studio-25.0.8/build/CMakeFiles/CMakeOutput.log".
See also "/home/mlodybukk/Pobrane/obs-studio-25.0.8/build/CMakeFiles/CMakeError.log".
[mlodybukk@localhost build]$ 

我该怎么修理这个?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2020-07-07 17:25:32

因此,OBS需要一些我在磁盘上没有的包。构建OBS和安装进度所需的软件包列表在OBS帮助页面上,即:

代码语言:javascript
复制
sudo yum install \
   make \
   gcc \
   gcc-c++ \
   gcc-objc \
   cmake \
   git \
   libX11-devel \
   mesa-libGL-devel \
   libv4l-devel \
   pulseaudio-libs-devel \
   libspeexdsp-devel \
   x264-devel \
   freetype-devel \
   fontconfig-devel \
   libXcomposite-devel \
   libXinerama-devel \
   qt5-qtbase-devel \
   qt5-qtx11extras-devel \
   qt5-qtsvg-devel \
   libcurl-devel \
   systemd-devel \
   ffmpeg \
   ffmpeg-devel \
   luajit-devel \
   python3-devel \
   mbedtls \
   mbedtls-devel \
   swig

谢谢你帮忙!)jsbillings对我的帮助最大。(谢谢!)

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

https://unix.stackexchange.com/questions/597072

复制
相关文章

相似问题

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