首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >qtwebengine无法编译。在yocto找不到EGL/egl.h

qtwebengine无法编译。在yocto找不到EGL/egl.h
EN

Stack Overflow用户
提问于 2016-06-17 20:39:41
回答 1查看 1.5K关注 0票数 1

利用开发了一个支持opengl的atom x64发行版。没有添加qtwebengine,bitbake将构建得很好,但是添加它会导致错误:

致命错误: EGL/egl.h:没有这样的文件或目录

我补充说:

代码语言:javascript
复制
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。

我怎么能通过这个。

EN

回答 1

Stack Overflow用户

发布于 2016-06-20 17:03:15

也许这个补丁从mesa主页会帮你。

代码语言:javascript
复制
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,
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37890065

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档