[英]“EGL Error : could not create the EGL surface: error 0x300b” on i.MX6 when running Qt5 application with -platform eglfs
[英]Segmentation fault on i.MX6 when running Qt5 application with -platform eglfs
我試圖通過指定eglfs
平台在沒有X Server的情況下運行hellogl_es2
Qt示例:
> ./hellogl_es2 -platform eglfs
No protocol specified
Segmentation fault (core dumped)
CPU是飛思卡爾i.MX6。
Linux內核是3.10.17。
發行版是Ubuntu 14.04.4 LTS(可信賴)。
Qt版本是5.2.1,從http : armhf
體系結構,軟件包qtbase5-dev
, qtbase5-examples
和qtbase5-examples-dbg
。
核心轉儲為( gcoOS_InitLocalDisplayInfo
中的libGAL.so
問題):
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 hellogl_es2...Reading symbols from /usr/lib/debug/.build-id/6f/8a8dfdb5abe920e37000a98092b4058b56da0a.debug...done.
done.
[New LWP 2802]
[New LWP 2803]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `./hellogl_es2 -platform eglfs'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xb5dd0c84 in gcoOS_InitLocalDisplayInfo () from /usr/lib/arm-linux-gnueabihf/vivante/libGAL.so
(gdb) bt
#0 0xb5dd0c84 in gcoOS_InitLocalDisplayInfo () from /usr/lib/arm-linux-gnueabihf/vivante/libGAL.so
#1 0xb5d095f8 in ?? () from /usr/lib/arm-linux-gnueabihf/libEGL.so.1
/build/buildd/gdb-7.7.1/gdb/frame.c:472: internal-error: get_frame_id: Assertion `fi->this_id.p' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
其行為與其他Qt示例項目相同。
當X Server運行時,指定xcb
平台( -platform xcb
,即默認值)可以正常工作。
我設法通過以下方法解決“分段錯誤”問題:
apt-get install gpu-viv-bin-mx6q-fb
(會自動卸載gpu-viv-bin-mx6q-x11
)。
但是,現在我還有另一個問題: 使用-platform eglfs運行Qt5應用程序時,在i.MX6上出現了“ EGL錯誤:無法創建EGL表面:錯誤0x300b”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.