在 ubuntu 20.04 上为 alder lake i5 12500 构建/编译英特尔媒体驱动程序时出现问题。请帮忙

在 ubuntu 20.04 上为 alder lake i5 12500 构建/编译英特尔媒体驱动程序时出现问题。请帮忙

我有英特尔 i5 12500 alder lake。我安装了 ubuntu 22.04,但遇到了一些烦人的问题,尽管英特尔驱动程序在此版本上开箱即用。无论如何,我决定安装 20.04,但最新的英特尔媒体驱动程序是 20.1.1,它不支持 alder lake。

我已经通过 tuxinvader ppa 安装了内核 5.18.6。

现在我正在尝试构建自己的英特尔媒体驱动程序 22.3.1,这是支持 Alder Lake 的最新驱动程序。然而我在这样做时遇到了很多问题。

我按照建筑指南https://github.com/intel/media-driver

输出cmake ../media_driver

~/software/driver_intel/media-driver-intel-media-22.3.1/build_media$ cmake ../media_driver
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 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
*BUILD_TYPE not defined, default to: release
CMake Error at CMakeLists.txt:86 (include):
  include could not find load file:

    /home/user/software/driver_intel/media-driver-intel-media-22.3.1/media_driver/media_driver/cmake/media_defs.cmake


CMake Error at CMakeLists.txt:88 (include):
  include could not find load file:

    /media_utils.cmake


-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
CMake Error at media_top_cmake.cmake:29 (include):
  include could not find load file:

    /media_gen_flags.cmake
Call Stack (most recent call first):
  CMakeLists.txt:95 (include)


CMake Error at media_top_cmake.cmake:30 (include):
  include could not find load file:

    /media_feature_flags.cmake
Call Stack (most recent call first):
  CMakeLists.txt:95 (include)


-- Checking for module 'igdgmm>=12.0.0'
--   Found igdgmm, version 12.1.0
-- media -- PLATFORM = linux
-- media -- ARCH = 64
-- media -- CMAKE_CURRENT_LIST_DIR = /home/user/software/driver_intel/media-driver-intel-media-22.3.1/media_driver
-- media -- INCLUDED_LIBS = 
-- media -- LIB_NAME = iHD_drv_video
-- media -- OUTPUT_NAME = 
-- media -- BUILD_TYPE/UFO_BUILD_TYPE/CMAKE_BUILD_TYPE = release/release/Release
-- media -- LIBVA_INSTALL_PATH = 
-- media -- MEDIA_VERSION = 
-- media -- X11 Found
-- Checking for module 'libva-x11'
--   Found libva-x11, version 1.14.0
CMake Error at media_top_cmake.cmake:65 (media_include_subdirectory):
  Unknown CMake command "media_include_subdirectory".
Call Stack (most recent call first):
  CMakeLists.txt:95 (include)


-- Configuring incomplete, errors occurred!
See also "/home/user/software/driver_intel/media-driver-intel-media-22.3.1/build_media/CMakeFiles/CMakeOutput.log".

观察错误后,似乎 CMakeLists.txt 有问题

CMake Error at CMakeLists.txt:86 (include):
  include could not find load file:

    /home/user/software/driver_intel/media-driver-intel-media-22.3.1/media_driver/media_driver/cmake/media_defs.cmake

我从未构建过自己的驱动程序,因此我希望具有构建专业知识的人可以帮助我构建驱动程序。

相关内容