NXP MCU 技术论坛
直播中

发烧友推温针

8年用户 795经验值
擅长:光电显示
私信 关注
[问答]

iMX8MP中的EGL问题如何解决?

我按照 NXP 的以下说明将 Debian 移植到我们的主板:
该链接描述了移植 Ubuntu 的步骤。我可以调整说明以将 Debian 移植到我们的主板上。

我们的开发板使用的是 iMX8MP SoC。
我使用最新的 NXP Yocto、Hardknott SDK 来移植 Debian。
我能够成功地将 debian 移植到我们的主板上,并在 Debian 中运行 Yocto 提供的大部分应用程序。
这些应用程序包括 gstreamer、glmark2-es2、QT、wayland 等。
移植后的 Debian 可以使用 SoC 的 VPU 和 GPU 功能。
我可以使用 VPU 和 gstreamer 播放 60fps 的视频。
还能够使用 glmark2-es2 运行 GPU 演示。
然后我们尝试运行我们的客户应用程序。
客户应用程序使用 EGL 来执行一些图形。
但是应用程序无法访问 EGL,并出现以下错误:
[1] 失败的 EGL API GetProcAddress:eglLockSurfaceKHR!
[2] EGL API GetProcAddress 失败:eglUnlockSurfaceKHR!
[3] 失败的 EGL API GetProcAddress:eglBindWaylandDisplayWL!
[4] 失败的 EGL API GetProcAddress:eglUnbindWaylandDisplayWL!
[5] 失败的 EGL API GetProcAddress:eglQueryWaylandBufferWL!
[6] 失败的 EGL API GetProcAddress:eglUpdateWaylandBufferWL!
[7] EGL API GetProcAddress 失败:eglSetDamageRegionKHR!
[8] 失败的 EGL API GetProcAddress:eglSwapBuffersWithDamageEXT!
[9] 失败的 EGL API GetProcAddress:eglQueryDmaBufFormatsEXT!
[10] 失败的 EGL API GetProcAddress:eglQueryDmaBufModifiersEXT!
[11] 失败的 EGL API GetProcAddress:eglPatchID!
[ 12] ES_Common API GetProcAddress 失败:forward_glActiveTexture!
[13] ES_Common API GetProcAddress 失败:forward_glBindBuffer!
[ 14] ES_Common API GetProcAddress 失败:forward_glBindTexture!
[ 15] ES_Common API GetProcAddress 失败:forward_glBlendFunc!
[16] ES_Common API GetProcAddress 失败:forward_glBufferData!
[ 17] ES_Common API GetProcAddress 失败:forward_glBufferSubData!
[ 18] ES_Common API GetProcAddress 失败:forward_glClear!
[ 19] ES_Common API GetProcAddress 失败:forward_glClearColor!
[20] ES_Common API GetProcAddress 失败:forward_glClearDepthf!
[21] ES_Common API GetProcAddress 失败:forward_glClearStencil!
[22] ES_Common API GetProcAddress 失败:forward_glColorMask!
[23] ES_Common API GetProcAddress 失败:forward_glCompressedTexImage2D!
[ 24] ES_Common API GetProcAddress 失败:forward_glCompressedTexSubImage2D!
[ 25] ES_Common API GetProcAddress 失败:forward_glCopyTexImage2D!
[ 26] ES_Common API GetProcAddress 失败:forward_glCopyTexSubImage2D!
[ 27] ES_Common API GetProcAddress 失败:forward_glCullFace!
[28] ES_Common API GetProcAddress 失败:forward_glDeleteBuffers!
[ 29] ES_Common API GetProcAddress 失败:forward_glDeleteTextures!
[30] ES_Common API GetProcAddress 失败:forward_glDepthFunc!
[31] ES_Common API GetProcAddress 失败:forward_glDepthMask!
[32] ES_Common API GetProcAddress 失败:forward_glDepthRangef!
[33] ES_Common API GetProcAddress 失败:forward_glDisable!
[ 34] ES_Common API GetProcAddress 失败:forward_glDrawArrays!
[ 35] ES_Common API GetProcAddress 失败:forward_glDrawElements!
[36] ES_Common API GetProcAddress 失败:forward_glEnable!
[ 37] ES_Common API GetProcAddress 失败:forward_glFinish!
[ 38] ES_Common API GetProcAddress 失败:forward_glFlush!
[ 39] ES_Common API GetProcAddress 失败:forward_glFrontFace!
[40] ES_Common API GetProcAddress 失败:forward_glGenBuffers!
[41] ES_Common API GetProcAddress 失败:forward_glGenTextures!
[ 42] ES_Common API GetProcAddress 失败:forward_glGetBooleanv!
[ 43] ES_Common API GetProcAddress 失败:forward_glGetBufferParameteriv!
[44] ES_Common API GetProcAddress 失败:forward_glGetError!
[ 45] ES_Common API GetProcAddress 失败:forward_glGetFloatv!
[ 46] ES_Common API GetProcAddress 失败:forward_glGetIntegerv!
[ 47] ES_Common API GetProcAddress 失败:forward_glGetPointerv!
[ 48] ES_Common API GetProcAddress 失败:forward_glGetString!
[ 49] ES_Common API GetProcAddress 失败:forward_glGetTexParameterfv!
[ 50] ES_Common API GetProcAddress 失败:forward_glGetTexParameteriv!
[51] ES_Common API GetProcAddress 失败:forward_glHint!
[52] ES_Common API GetProcAddress 失败:forward_glIsBuffer!
[ 53] ES_Common API GetProcAddress 失败:forward_glIsEnabled!
[54] ES_Common API GetProcAddress 失败:forward_glIsTexture!
[ 55] ES_Common API GetProcAddress 失败:forward_glLineWidth!
[ 56] ES_Common API GetProcAddress 失败:forward_glPixelStorei!
[ 57] ES_Common API GetProcAddress 失败:forward_glPolygonOffset!
[58] ES_Common API GetProcAddress 失败:forward_glReadPixels!
[ 59] ES_Common API GetProcAddress 失败:forward_glSampleCoverage!
[60] ES_Common API GetProcAddress 失败:forward_glScissor!
[61] ES_Common API GetProcAddress 失败:forward_glStencilFunc!
[62] ES_Common API GetProcAddress 失败:forward_glStencilMask!
[63] ES_Common API GetProcAddress 失败:forward_glStencilOp!
[64]失败的 ES_Common API GetProcAddress:forward_glTexImage2D!
[ 65] ES_Common API GetProcAddress 失败:forward_glTexParameterf!
[66]失败的 ES_Common API GetProcAddress:forward_glTexParameterfv!
[67] ES_Common API GetProcAddress 失败:forward_glTexParameteri!
[ 68] ES_Common API GetProcAddress 失败:forward_glTexParameteriv!
[ 69] ES_Common API GetProcAddress 失败:forward_glTexSubImage2D!
[70] ES_Common API GetProcAddress 失败:forward_glViewport!
[71] ES_Common API GetProcAddress 失败:forward_glMapBufferOES!
[72] ES_Common API GetProcAddress 失败:forward_glUnmapBufferOES!
[73] ES_Common API GetProcAddress 失败:forward_glEGLImageTargetTexture2DOES!
[74] ES_Common API GetProcAddress 失败:forward_glEGLImageTargetRenderbufferStorageOES!
[75] ES_Common API GetProcAddress 失败:forward_glMultiDrawArraysEXT!
[76] ES_Common API GetProcAddress 失败:forward_glMultiDrawElementsEXT!
[77]失败的 ES_Common API GetProcAddress:forward_glTexDirectVIV!
[78] ES_Common API GetProcAddress 失败:forward_glTexDirectInvalidateVIV!
[79]失败的 ES_Common API GetProcAddress:forward_glTexDirectVIVMap!
[80] ES_Common API GetProcAddress 失败:forward_glTexDirectTiledMapVIV!
[81] 失败的 GLES32 API GetProcAddress:glMultiDrawArraysEXT!
[82] 失败的 GLES32 API GetProcAddress:glMultiDrawElementsEXT!
[83] 失败的 GLES32 API GetProcAddress:glTexDirectVIV!
[84] 失败的 GLES32 API GetProcAddress:glTexDirectInvalidateVIV!
[85] 失败的 GLES32 API GetProcAddress:glTexDirectVIVMap!
[86] 失败的 GLES32 API GetProcAddress:glTexDirectTiledMapVIV!
[87] 失败的 GLES32 API GetProcAddress:glMultiDrawArraysIndirectEXT!
[88] 失败的 GLES32 API GetProcAddress:glMultiDrawElementsIndirectEXT!
[89] 失败的 GLES32 API GetProcAddress:glGetTexImage!
[90] ES 通用 GLES2X API GetProcAddress 失败:glMultiDrawArraysEXT!
ERROR: Could not create OpenGL context, 根本原因 'Could not create EGL context (call to eglCreateContext failed, reporting an error of EGL_B
AD_CONFIG)'
[2022-06-12 19:31:32.064] [645:000645] [error] ERROR: Could not create OpenGL context, root cause 'Could not create EGL context (call to eglCr eateContext failed, reporting an error of 无法创建 EGL
上下文EGL_BAD_CONFIG)'

更多回帖

发帖
×
20
完善资料,
赚取积分