libplacebo icon indicating copy to clipboard operation
libplacebo copied to clipboard

Build failing with OpenGL

Open brad0 opened this issue 2 years ago • 0 comments

This is on OpenBSD.

I think src/opengl/meson.build should be able to detect the gl.pc pkg-config file and find the header path it should be pulling in which is /usr/X11R6/include.

FAILED: src/libplacebo.so.8.0.p/opengl_context.c.o
cc -Isrc/libplacebo.so.8.0.p -Isrc -I../libplacebo-6.338.2/src -Isrc/include -I../libplacebo-6.338.2/src/include -Isrc/opengl/include -I../libplacebo-6.338.2/src/opengl/include -Isrc/shaders -Isrc/vulkan -Isrc/opengl/include/glad -I/usr/local/include -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -Wundef -Wshadow -Wparentheses -Wpointer-arith -fno-math-errno -D_ISOC99_SOURCE -D_ISOC11_SOURCE -D_GNU_SOURCE -U__STRICT_ANSI__ -Wmissing-prototypes -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-type-limits -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Wno-missing-braces -Wundef -Wshadow -Wparentheses -Wpointer-arith -fno-math-errno -O2 -pipe -fPIC -pthread -DPL_HAVE_PTHREAD -DPTHREAD_HAS_SETCLOCK -DPL_EXPORT -MD -MQ src/libplacebo.so.8.0.p/opengl_context.c.o -MF src/libplacebo.so.8.0.p/opengl_context.c.o.d -o src/libplacebo.so.8.0.p/opengl_context.c.o -c ../libplacebo-6.338.2/src/opengl/context.c
In file included from ../libplacebo-6.338.2/src/opengl/context.c:20:
In file included from ../libplacebo-6.338.2/src/opengl/common.h:33:
src/opengl/include/glad/egl.h:700:10: fatal error: 'KHR/khrplatform.h' file not found
#include <KHR/khrplatform.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

brad0 avatar Feb 23 '24 09:02 brad0