khrplatform.h error
System information
- OS:
CentOS Linux 8
- GPU:
VMware SVGA II Adapter [15ad:0405]
- Kernel version:
4.18.0-240.10.1.el8_3.x86_64
- Mesa version:
3.1 Mesa 20.1.10
- Xserver version (if applicable):
1.20.8-6.1.el8_3
- Desktop manager and compositor:
gnome
Describe the issue
I'm testing it on a virtual machine to run it on headless servers. Tried both mesa 20.1.10 and 20.3.4 in both virtualbox and docker, got same results.
performed yum -y builddep mesa
before installation
In file included from ../include/GL/gl.h:2050,
from ../src/mesa/main/glheader.h:37,
from ../src/util/format/../../mesa/main/macros.h:38,
from ../src/util/format/../../mesa/main/texcompress_bptc_tmp.h:33,
from ../src/util/format/u_format_bptc.c:32:
../include/GL/glext.h:56:10: fatal error: KHR/khrplatform.h: No such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
then sudo yum install libglvnd-devel
and compile again. New error:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line 140, in run
return options.run_func(options)
File "/usr/local/lib/python3.6/site-packages/mesonbuild/minstall.py", line 554, in run
installer.do_install(datafilename)
File "/usr/local/lib/python3.6/site-packages/mesonbuild/minstall.py", line 373, in do_install
self.install_headers(d)
File "/usr/local/lib/python3.6/site-packages/mesonbuild/minstall.py", line 427, in install_headers
if self.do_copyfile(fullfilename, outfilename, makedirs=(d.dirmaker, outdir)):
File "/usr/local/lib/python3.6/site-packages/mesonbuild/minstall.py", line 249, in do_copyfile
'{!r}'.format(from_file))
RuntimeError: Tried to install something that isn't a file:'/home/gux215/mesa/include/KHR/khrplatform.h'
The folder is empty and I manually made a symlink from /usr/include/KHR/khrplatform.h
. Then compile, the symlink is deleted and eventually the same error.
Although the installation terminated, llvmpipe driver can still work without any problem.
Regression
Didn't see any error when following this outdated tutorial(ver 18.3.3) on CentOS 7
Edited by Guanyang Xue