【问题标题】:"EGL Error : could not create the EGL surface: error 0x300b" on i.MX6 when running Qt5 application with -platform eglfs使用 -platform eglfs 运行 Qt5 应用程序时,i.MX6 上的“EGL 错误:无法创建 EGL 表面:错误 0x300b”
【发布时间】:2017-04-21 03:39:06
【问题描述】:

我正在尝试通过指定 eglfs 平台来运行不带 X 服务器的 hellogl_es2 Qt 示例:

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

Aborted (core dumped)

CPU 是飞思卡尔 i.MX6。

Linux 内核是 3.10.17。

发行版是 Ubuntu 14.04.4 LTS(值得信赖)。

Qt 版本是 5.2.1,从http://packages.ubuntu.com 安装,armhf 架构,包 qtbase5-dev、qtbase5-examples、qtbase5-examples-dbg。

核心转储是:

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

行为与其他 Qt 示例项目相同。

我尝试从源代码中重新制作 Qt,无论是否应用此补丁: https://patchwork.openembedded.org/patch/66349/ 但没有结果(同样的错误)。

【问题讨论】:

  • 首先要建议的显然是升级所有内容

标签: linux qt qt5 egl imx6


【解决方案1】:

我在 Cubieboard A10 上使用 qt 5.2 时遇到了这个问题,并通过从源代码编译并根据本教程更改 qeglfshooks_stub.cpp 来修复它 Qt On Cubieboard

希望对你有帮助

【讨论】:

    猜你喜欢
    • 2021-11-28
    • 2017-04-17
    • 2020-04-21
    • 2013-11-30
    • 1970-01-01
    • 2017-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多