简体   繁体   English

使用-platform eglfs运行Qt5应用程序时,i.MX6上的“EGL错误:无法创建EGL表面:错误0x300b”

[英]“EGL Error : could not create the EGL surface: error 0x300b” on i.MX6 when running Qt5 application with -platform eglfs

I am trying to run the hellogl_es2 Qt example without X Server by specifying the eglfs platform: 我试图通过指定eglfs平台来运行没有X Server的hellogl_es2 Qt示例:

./hellogl_es2 -platform eglfs
EGL Error : Could not create the egl surface: error = 0x300b

Aborted (core dumped)

CPU is Freescale i.MX6. CPU是飞思卡尔i.MX6。

Linux kernel is 3.10.17. Linux内核是3.10.17。

Distribution is Ubuntu 14.04.4 LTS (trusty). 分发是Ubuntu 14.04.4 LTS(可靠)。

Qt version is 5.2.1, installed from http://packages.ubuntu.com , armhf architecture, packages qtbase5-dev, qtbase5-examples, qtbase5-examples-dbg. Qt版本是5.2.1,安装自http ://packages.ubuntu.com,armhf架构,软件包qtbase5-dev,qtbase5-examples,qtbase5-examples-dbg。

The core dump is: 核心转储是:

GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from hellowindow...(no debugging symbols found)...done.
[New LWP 19681]
[New LWP 19683]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `./hellowindow -platform eglfs'.
Program terminated with signal SIGABRT, Aborted.
#0  0xb66168e6 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
(gdb) backtrace
#0  0xb66168e6 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0xb6624f0e in raise () from /lib/arm-linux-gnueabihf/libc.so.6
#2  0xb6627766 in abort () from /lib/arm-linux-gnueabihf/libc.so.6
#3  0xb6902372 in QMessageLogger::fatal(char const*, ...) const () from /usr/local/Qt-5.2.1/lib/libQt5Core.so.5
#4  0xb62599fc in ?? () from /usr/local/Qt-5.2.1/plugins/platforms/libqeglfs.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) q

The behavior is the same with other Qt example projects. 该行为与其他Qt示例项目相同。

I tried to remake Qt from sources with or without applying this patch: https://patchwork.openembedded.org/patch/66349/ but with no result (same error). 我试图从有或没有应用此补丁的来源重新制作Qt: https//patchwork.openembedded.org/patch/66349/但没有结果(相同的错误)。

I had This problem With qt 5.2 on Cubieboard A10 and fixed it by compiling from source and changing qeglfshooks_stub.cpp according to this tutorial Qt On Cubieboard 我有这个问题在Cubieboard A10上使用qt 5.2并通过从源代码编译修改它并根据本教程改变qeglfshooks_stub.cpp Qt在Cubieboard上

Hope This helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用-platform eglfs运行Qt5应用程序时,i.MX6上的分段错误 - Segmentation fault on i.MX6 when running Qt5 application with -platform eglfs OpenGL EGL eglGetDisplay 不断返回 EGL 错误 0x3008(EGL_BAD_DISPLAY) - OpenGL EGL eglGetDisplay keeps return EGL error 0x3008(EGL_BAD_DISPLAY ) 在i.MX6的Qt5 OpenGL测试的交叉编译期间发现了不兼容的libc.so.6 - Incompatible libc.so.6 Found During Cross-Compilation of Qt5 OpenGL Test for i.MX6 iMX6上的Qt5:在平台eglfs vs xcb上运行时的性能优势 - Qt5 on iMX6: performance advantage on running on platform eglfs vs xcb Linux下的EGLFS和QT5应用程序的轮换 - EGLFS and rotation of QT5 application under Linux eglCreateImageKHR 返回 EGL_BAD_ATTRIBUTE 错误 - eglCreateImageKHR returning EGL_BAD_ATTRIBUTE error 如果未在NVIDIA GPU上安装X11 / Wayland,那么在CentOS机器上的哪里可以获得EGL标头? - Where could I get EGL headers on a CentOS machine without X11/Wayland installed with NVIDIA GPU? 使用Yocto的i.MX6上的Qt 5.3.2:QML WebView的问题 - Qt 5.3.2 on i.MX6 using Yocto: problems with QML WebView 为什么我不能使用EGL创建无头的OpenGl上下文? - Why can't I create a headless OpenGl context with EGL? 嵌入式Linux上的QT5 eglfs(TI am355x evm入门套件) - QT5 eglfs on embedded linux (TI am355x evm starter kit)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM