Application running is error for eglfs mali base on Arm platform (QT5.8)
-
hello every one :
i have a problem on arm platform for qt5.8 .when i run the app the log :root@firefly:/home/firefly/testapp# ./test
hello
hello john
hello window1111
EGL Error : Could not create the egl surface: error = 0x3009my source code is :
QByteArray width = qgetenv("QT_QPA_EGLFS_PHYSICAL_WIDTH"); width.setNum(1920); QByteArray height = qgetenv("QT_QPA_EGLFS_PHYSICAL_HEIGHT"); height.setNum(720); printf("hello\r\n"); QApplication a(argc, argv); printf("hello john\r\n"); MainWindow w; printf("hello window1111\r\n"); w.show(); printf("hello window\r\n"); return a.exec();
my qt config is :
Qt Gui:
FreeType ............................... yes
Using system FreeType ................ yes
HarfBuzz ............................... yes
Using system HarfBuzz ................ no
Fontconfig ............................. yes
Image formats:
GIF .................................. yes
ICO .................................. yes
JPEG ................................. yes
Using system libjpeg ............... no
PNG .................................. yes
Using system libpng ................ no
OpenGL:
EGL .................................. yes
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ yes
OpenGL ES 3.0 ........................ yes
OpenGL ES 3.1 ........................ yes
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
mtdev .................................. no
tslib .................................. no
xkbcommon-evdev ........................ yes
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS EGLDevice ...................... no
EGLFS GBM ............................ no
EGLFS Mali ........................... yes
EGLFS Rasberry Pi .................... no
EGL on X11 ........................... no
LinuxFB ................................ yes
Mir client ............................. no
X11:
Using system provided XCB libraries .. no
EGL on X11 ........................... no
Xinput2 .............................. yes
XCB XKB .............................. no
XLib ................................. yes
Xrender .............................. yes
XCB GLX .............................. yes
XCB Xlib ............................. yes
Using system-provided xkbcommon ...... nocould you help me to solve this problem ?
thank all -
Hi,
You should add the model of the board.
You might also want to consider moving to 5.9 which just got released and is the new LTS.
-
Hi,
You should add the model of the board.
You might also want to consider moving to 5.9 which just got released and is the new LTS.
-
Hi,
You should add the model of the board.
You might also want to consider moving to 5.9 which just got released and is the new LTS.
@SGaist
if i selected the mode for -platform linuxfb ,the testapp works
but when i was run the dashboard app ,like this :root@firefly:/home/firefly/dashboard# ./dashboard -platform eglfs
libpng warning: iCCP: known incorrect sRGB profile
EGL Error : Could not create the egl surface: error = 0x3009
hello 1hello 2Abortedand other mode :
./dashboard -platform linuxfb
libpng warning: iCCP: known incorrect sRGB profile
This plugin does not support createPlatformOpenGLContext!
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
hello 1hello 2Aborteddo you have some advice for this?
-
Again: please give more details about your target: model name, gpu exact type, linux distribution running on etc.
-
Again: please give more details about your target: model name, gpu exact type, linux distribution running on etc.
@SGaist said in Application running is error for eglfs mali base on Arm platform (QT5.8):
inux distribution running on etc.
**Target information:
target:
SoC: RK32885, ARM Cortex-A17 (MP4) with Mali-T760 (MP4) GPU.
Architecture: ARMv7
HWREV: r0p0
linux distribution running on : ubuntu 14.04 kernel 3.1.0
QT lib version: QT5.8build tools information
Build Os :ubuntu 16.04 64bit
arm build tools: gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabihf.tar**my qt config information :
./configure -v -release -platform linux-g++ -xplatform linux-arm-gnueabi-g++ -qt-zlib -nomake examples -opensource -confirm-license -no-xcb -eglfs -no-pch -opengl es3 -make libs -qt-libjpeg -qt-libpng -sysroot /mnt/nfs -extprefix /opt/qt5.8-arm -
Again: please give more details about your target: model name, gpu exact type, linux distribution running on etc.
-
@JOHN.CHEN This are not answers to @SGaist question...
-
Again: please give more details about your target: model name, gpu exact type, linux distribution running on etc.
@SGaist
when i was run the app for this information:
root@firefly:/home/firefly/dashboard# ./dashboard
libpng warning: iCCP: known incorrect sRGB profile
This plugin does not support createPlatformOpenGLContext!
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
hello 1hello 2Aborted -
Is that the board that is described in this Qt article ?