vulkan: build error on Ubuntu Xenial "VK_MEMORY_PROPERTY_PROTECTED_BIT undeclared here"
On Ubuntu Xenial environment, the following compile errors occur:
../gst-libs/gst/vulkan/gstvkdebug.c:59:4: error: 'VK_MEMORY_PROPERTY_PROTECTED_BIT' undeclared here (not in a function)
{VK_MEMORY_PROPERTY_PROTECTED_BIT, "protected"},
^
../gst-libs/gst/vulkan/gstvkdebug.c:73:4: error: 'VK_MEMORY_HEAP_MULTI_INSTANCE_BIT' undeclared here (not in a function)
{VK_MEMORY_HEAP_MULTI_INSTANCE_BIT, "multi-instance"},
^
../gst-libs/gst/vulkan/gstvkdebug.c:73:4: error: initializer element is not constant
../gst-libs/gst/vulkan/gstvkdebug.c:73:4: note: (near initialization for 'vk_memory_heap_flags_map[1].flag_bit')
../gst-libs/gst/vulkan/gstvkdebug.c:86:4: error: 'VK_QUEUE_PROTECTED_BIT' undeclared here (not in a function)
{VK_QUEUE_PROTECTED_BIT, "protected"},
^
../gst-libs/gst/vulkan/gstvkdebug.c:86:4: error: initializer element is not constant
../gst-libs/gst/vulkan/gstvkdebug.c:86:4: note: (near initialization for 'vk_queue_flags_map[4].flag_bit')
ninja: build stopped: subcommand failed.
The bad commit is 2b705012:
commit 2b7050120ee78f091f59d0c8022e4c243a08bf6b
Author: Matthew Waters <matthew@centricular.com>
Date: Wed Sep 11 19:24:50 2019 +1000
vulkan: dump most of the device information
Dump anything that can be queried using the physical device like features,
limits, queue properties, memory properties.
My software stack:
...
gstreamer (master) heads/master-0-g4812c4087fe3
gst-plugins-base (master) heads/master-0-gc8d0edfea9ed
gst-plugins-bad (master) heads/master-0-g68a51abdcdd5
$ dpkg -s libvulkan-dev
Package: libvulkan-dev
Status: install ok installed
Version: 1.0.61.1+dfsg1-1ubuntu1~16.04.1
Depends: libvulkan1 (= 1.0.61.1+dfsg1-1ubuntu1~16.04.1)
Edited by Tim-Philipp Müller