CentOS 8에서 OBS를 빌드하는 중에 오류가 발생했습니다.

CentOS 8에서 OBS를 빌드하는 중에 오류가 발생했습니다.

질문이 있어요OBS 소스코드, 감지하지 못하기 때문에ffmpeg누가 내 컴퓨터에 설치했는지.

[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 및 기타 필수 코덱을 설치한 후 오류가 발생합니다.

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]$ 

이 문제를 어떻게 해결할 수 있나요?

답변1

따라서 OBS에는 내 디스크에 없는 일부 패키지가 필요합니다. OBS 구축에 필요한 소프트웨어 패키지 목록과 설치 진행 상황은 다음을 참조하세요.OBS 도움말페이지는 다음과 같습니다.

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가 가장 큰 도움이 되었습니다. 감사합니다!)

관련 정보