ma3uk / obs-qsv-onevpl

obs-qsv11 plugin with oneVPL support
44 stars 1 forks source link

I encountered the following error log while running 'make' on Ubuntu 22. #30

Open Rod-fish opened 4 months ago

Rod-fish commented 4 months ago

Unable to build using make.

make
[ 14%] Building CXX object CMakeFiles/obs-qsvonevpl.dir/obs-qsv-onevpl-plugin-main.o
In file included from /home/sata1/pakg/obs-qsv-onevpl/obs-qsvonevpl/obs-qsv-onevpl-encoder-internal.hpp:14,
                 from /home/sata1/pakg/obs-qsv-onevpl/obs-qsvonevpl/obs-qsv-onevpl-encoder.hpp:23,
                 from /home/sata1/pakg/obs-qsv-onevpl/obs-qsvonevpl/obs-qsv-onevpl-plugin-main.cpp:57:
/home/sata1/pakg/obs-qsv-onevpl/obs-qsvonevpl/helpers/ext_buf_manager.hpp:51:10: fatal error: vpl/private/mfxav1.h: 没有那个文件或目录
   51 | #include <vpl/private/mfxav1.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/obs-qsvonevpl.dir/build.make:76:CMakeFiles/obs-qsvonevpl.dir/obs-qsv-onevpl-plugin-main.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/obs-qsvonevpl.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2

Can you tell me how to handle this issue? I suspect there might be a problem with the VPL installation, but I checked that libvpl-dev is installed with the version from 2022. --libvpl-dev/jammy,now 2022.1.0-2 amd64

Rod-fish commented 4 months ago

And I couldn't find the missing file in both the "Intel Media SDK" and the "Intel® Video Processing Library (Intel® VPL)" projects.

Rod-fish commented 4 months ago

Below is the CMake log.

cmake CMakeLists.txt 
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find VPL (missing: VPL_DIR)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'wayland-client'
--   Found wayland-client, version 1.20.0
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.22)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Warning (dev) at CMakeLists.txt:3 (add_library):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "obs-qsvonevpl" links to some libraries for which the linker
  must search:

    VPL, libvpl-private, va, va-drm, va-wayland, va-x11

  and other libraries with known full path:

    /usr/lib/x86_64-linux-gnu/libobs.so.30

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/sata1/pakg/obs-qsv-onevpl/obs-qsvonevpl
ma3uk commented 4 months ago

This file is presented in this repository in the libvpl-private folder. I can't help you with anything else, because I have no experience working with Linux and the plugin's support for Linux systems is mainly due to @DatCaptainHorse

DatCaptainHorse commented 4 months ago

There's been some changes which require me to update CMakeLists for the project to compile under Linux - I'll try to find sometime this weekend to do it