QT5 eglfs on embedded linux (TI am355x evm starter kit)

白昼怎懂夜的黑 提交于 2019-12-07 12:54:52

问题


I’ve just cross-compiled QT 5.2.1 for ARM and I am using it on a TI AM335x EVM (Starter Kit) board.

I’de like to use the eglfs platform, but unluckily it shows some artifacts on the screen…

I just made a simple program for showing the problem and captured some photos of my screen. The program basically draws a set of vertical black and white lines (alternated).

If I run QT on platform linuxfb (that is I launch my program passing “-platform linuxfb” on command line) then the software works fine… Here is a photo of my screen:

If instead I run QT on platform eglfs (that is I launch my program passing “-platform eglfs” on command line) then I have some artifacts near the center of screen (it seems that some vertical lines are “missing” or “swapped”)… Here are two photos of my screen:

Any idea about that?

Furthermor it seems that on the same board QT 5.2.1 is slower than QT 4.8.x (using QWS)… how is it possible? Is there some optimization that can be turned on while compiling QT 5.x?


回答1:


Ok, if found a solution. I was drawing within a QWidget… Drawing within a QGLWidget the problem is fixed.



来源:https://stackoverflow.com/questions/22662858/qt5-eglfs-on-embedded-linux-ti-am355x-evm-starter-kit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!