Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kms: fails to build with mesa >= 21.1 #33

Closed
jbeich opened this issue Apr 15, 2021 · 2 comments
Closed

kms: fails to build with mesa >= 21.1 #33

jbeich opened this issue Apr 15, 2021 · 2 comments

Comments

@jbeich
Copy link

jbeich commented Apr 15, 2021

Regressed by https://github.com/mesa3d/mesa/commit/5e6db1916860 (part of mesa 21.1.0-rc1)

$ meson setup -Dkms=true _build
[...]
Has header "vulkan/vulkan_intel.h" with dependency vulkan: NO

meson.build:38:4: ERROR: Problem encountered: KMS plugin needs the vulkan_intel.h header, but it couldn't be found
@SupervisedThinking
Copy link

SupervisedThinking commented Feb 9, 2022

I've got the same problem, looks like vulkan-tools solved it for vkcube like this krh/vkcube@dfe5d8b

build log

UNPACK      vkmark
BUILD      vkmark (target)
    TOOLCHAIN      meson (auto-detect)
Executing (target): meson --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --buildtype=plain -Dstrip=true --cross-file=/build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/build/vkmark-cf45f2faee236fd1118be2fcd27e4f2a91fc2e40/.armv8a-libreelec-linux-gnueabihf/meson.conf -Dkms=true /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/build/vkmark-cf45f2faee236fd1118be2fcd27e4f2a91fc2e40
The Meson build system
Version: 0.61.1
Source dir: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/build/vkmark-cf45f2faee236fd1118be2fcd27e4f2a91fc2e40
Build dir: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/build/vkmark-cf45f2faee236fd1118be2fcd27e4f2a91fc2e40/.armv8a-libreelec-linux-gnueabihf
Build type: cross build
Project name: vkmark
Project version: 2017.08
C compiler for the host machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc (gcc 10.3.0 "armv8a-libreelec-linux-gnueabihf-gcc-10.3.0 (GCC) 10.3.0")
C linker for the host machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc ld.bfd 2.35.1
C++ compiler for the host machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-g++ (gcc 10.3.0 "armv8a-libreelec-linux-gnueabihf-g++-10.3.0 (GCC) 10.3.0")
C++ linker for the host machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-g++ ld.bfd 2.35.1
C compiler for the build machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/host-gcc (gcc 9.3.0 "gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the build machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/host-gcc ld.bfd 2.34
C++ compiler for the build machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/host-g++ (gcc 9.3.0 "g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C++ linker for the build machine: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/host-g++ ld.bfd 2.34
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: arm
Host machine cpu: armv8-a
Target machine cpu family: arm
Target machine cpu: armv8-a
Found pkg-config: /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/toolchain/bin/pkg-config (0.29.2)
Run-time dependency vulkan found: YES 1.3.204
Library dl found: YES
Run-time dependency glm found: YES 0.9.9.8
Run-time dependency assimp found: YES 5.2.0
Found CMake: NO
Run-time dependency xcb found: NO (tried pkgconfig and cmake)
Run-time dependency xcb-icccm found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-client found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-scanner found: NO (tried pkgconfig and cmake)
Run-time dependency libdrm found: YES 2.4.109
Run-time dependency gbm found: YES 21.3.5
Has header "vulkan/vulkan_intel.h" with dependency vulkan: NO 

../meson.build:38:4: ERROR: Problem encountered: KMS plugin needs the vulkan_intel.h header, but it couldn't be found

A full log can be found at /build/LibreELEC-RR/build.LibreELEC-AMLGX.arm-11.0-devel/build/vkmark-cf45f2faee236fd1118be2fcd27e4f2a91fc2e40/.armv8a-libreelec-linux-gnueabihf/meson-logs/meson-log.txt
FAILURE: scripts/build vkmark during configure_target (default)
*********** FAILED COMMAND ***********
CC="${HOST_CC}" CXX="${HOST_CXX}" meson ${TARGET_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_TARGET} ${PKG_MESON_SCRIPT%/*}
**************************************

@afrantzis
Copy link
Contributor

The vulkan_intel.h header has been removed, and along with it the vkCreateDmaBufImageINTEL extension function. The functionality is now provided by the VK_EXT_external_memory_dma_buf extension. See #43

afrantzis added a commit that referenced this issue Sep 9, 2022
… images

Drop the vkCreateDmaBufImageINTEL extension function and use the
functionality provided by the official VK_EXT_external_memory_dmabuf
extension to create dmabuf-backed Vulkan images.

Fixes #33

Co-authored-by: Jeffy Chen <jeffy.chen@rock-chips.com>
afrantzis added a commit that referenced this issue Sep 9, 2022
… images

Drop the vkCreateDmaBufImageINTEL extension function and use the
functionality provided by the official VK_EXT_external_memory_dmabuf
extension to create dmabuf-backed Vulkan images.

Fixes #33

Co-authored-by: Jeffy Chen <jeffy.chen@rock-chips.com>
afrantzis added a commit that referenced this issue Sep 9, 2022
… images

Drop the vkCreateDmaBufImageINTEL extension function and use the
functionality provided by the official VK_EXT_external_memory_dmabuf
extension to create dmabuf-backed Vulkan images.

Fixes #33

Co-authored-by: Jeffy Chen <jeffy.chen@rock-chips.com>
afrantzis added a commit that referenced this issue Sep 9, 2022
… images

Drop the vkCreateDmaBufImageINTEL extension function and use the
functionality provided by the official VK_EXT_external_memory_dmabuf
extension to create dmabuf-backed Vulkan images.

Fixes #33

Co-authored-by: Jeffy Chen <jeffy.chen@rock-chips.com>
afrantzis added a commit that referenced this issue Apr 12, 2023
… images

Drop the vkCreateDmaBufImageINTEL extension function and use the
functionality provided by the official VK_EXT_external_memory_dmabuf
extension to create dmabuf-backed Vulkan images.

Fixes #33

Co-authored-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants