利用开发了一个支持opengl的atom x64发行版。没有添加qtwebengine,bitbake将构建得很好,但是添加它会导致错误:
致命错误: EGL/egl.h:没有这样的文件或目录
我补充说:
DISTRO_FEATURES_append = " opengl x11 "
IMAGE_INSTALL = "qtbase qtwebengine \
x11-common mesa-gl \
"
CORE_IMAGE_BASE_INSTALL += "mesa-megadriver"
CORE_IMAGE_BASE_INSTALL += "libegl-gallium"
CORE_IMAGE_BASE_INSTALL += "libegl-mesa"
CORE_IMAGE_BASE_INSTALL += "libgbm"
CORE_IMAGE_BASE_INSTALL += "libgbm-gallium"
CORE_IMAGE_BASE_INSTALL += "mesa-driver-pipe-swrast"
CORE_IMAGE_BASE_INSTALL += "mesa-driver-pipe-vmwgfx"
CORE_IMAGE_BASE_INSTALL += "mesa-driver-pipe-i915"
CORE_IMAGE_BASE_INSTALL += "libgles1-mesa"
CORE_IMAGE_BASE_INSTALL += "libgles2-mesa"
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
PREFERRED_PROVIDER_mesa-driver-swrast = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgles1 = "mesa-gl"
PREFERRED_PROVIDER_virtual/libgles2 = "mesa-gl"如果我将虚拟/egl设置为mesa,我将得到
错误:没有提供“虚拟/egl” 错误: mesa提供了虚拟/egl,但被跳过了:首选_PROVIDER_虚拟/libgl设置为mesa,而不是mesa 错误: mesa提供了虚拟/egl,但被跳过了:首选_PROVIDER_虚拟/libgl设置为mesa,而不是mesa
如果我将所有设置为mesa,qtbase将不会生成,因为无法找到LGL。
我怎么能通过这个。
发布于 2016-06-20 17:03:15
也许这个补丁从mesa主页会帮你。
diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h
index b76bd7e..5c172c6 100644
--- a/include/GL/mesa_glinterop.h
+++ b/include/GL/mesa_glinterop.h
@@ -51,7 +51,7 @@
#define MESA_GLINTEROP_H
#include <stddef.h>
-#include <EGL/egl.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@@ -61,6 +61,10 @@ extern "C" {
typedef struct _XDisplay Display;
typedef struct __GLXcontextRec *GLXContext;
+/* Forward declarations to avoid inclusion of EGL/egl.h */
+typedef void *EGLDisplay;
+typedef void *EGLContext;
+
/** Returned error codes. */
enum {
MESA_GLINTEROP_SUCCESS = 0,https://stackoverflow.com/questions/37890065
复制相似问题