How can I build the Vulkan driver for linux mint?
I'm running Linux Mint Rafaella, 17.2, with Intel Graphics 5th gen, i3-5010U. I tried to compile https://cgit.freedesktop.org/mesa/mesa/tree/?h=vulkan, but it failed with:
anv_allocator.c:32:25: fatal error: linux/memfd.h: No such file or directory #include <linux/memfd.h>
I tried toying with installing different versions of linux-headers, but even if I managed to get rid of this error, others appeared.
Which version of linux-headers should I use and how to configure them in order to work? Or, what else should I do first, to make Vulkan compilable on my OS?
I decided to give a bit of insight into my process of compiling. I enhanced $VULKAN/src/vulkan/Makefile with
CFLAGS += -I"/usr/src/linux-headers-3.19.0-49/include/uapi"
and for CXXFLAGS I did same. New error appeared stating that linux/compiler.h is missing. Another enhancement to Makefile looked like this:
CFLAGS += -I"/usr/src/linux-headers-3.19.0-49/include/uapi" -I"/usr/src/linux-headers-3.19.0-49/include"
and for CXXFLAGS I did same. The next error is one I cannot get rid at all, mainly because of lack of knowledge:
anv_allocator.c:137:19: error: 'SYS_memfd_create' undeclared (first use in this function)
return syscall(SYS_memfd_create, name, flags);
This is the error that made me question which version of linux-headers should I use. Also, it seems not right for me that memfd.h is located under uapi.