Results 1 to 1 of 1

Thread: QEglContext::createSurface() failed in embedded Qt 4.8.0

  1. #1
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QEglContext::createSurface() failed in embedded Qt 4.8.0

    When I run hello_es2 built in embedded Qt 4.8.0 and SGX Gaphics_SDK_4_05_00_03 in BB xM board, it failed with
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b, then I set windowDrawable to zero in

    surf = eglCreateWindowSurface
    (context->display(), context->config(), windowDrawable, props);

    it works, it seems there is a bug in createNativeWindow(static_cast<QWidget *>(device), &windowDrawable) of qgl_qws.cpp.

    But when I run my application,
    myapp -qws -display powervr
    it failed in the second call to eglCreateWindowSurface with
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x3003.
    I have patched Qt as someone suggested (https://e2e.ti.com/support/dsp/omap_...f/447/t/101221)
    and set powervr.ini to
    WindowSystem=libpvrQWSWSEGL.so.

    In the second and later calls, I created sub-QGLWidgets shared with main windows. My application used to work in Qt 4.7.4. and old SGX SDK. Here is my config
    WSEGL settings
    [default]
    WindowSystem=libpvrQWSWSEGL.so
    ------
    ARM CPU information
    Processor : ARMv7 Processor rev 2 (v7l)
    BogoMIPS : 996.71
    Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x3
    CPU part : 0xc08
    CPU revision : 2

    Hardware : OMAP3 Beagle Board
    Revision : 0020
    Serial : 0000000000000000
    ------
    SGX driver information
    Version 1.6.16.4117 (release) /home/tang/Projects/OE/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/omap3-sgx-modules-4.05.00.03-r125b/Graphics_SDK_4_05_00_03/GFX_Linux_KM
    System Version String: SGX revision = 1.2.5
    ------
    Framebuffer settings

    mode "1360x768-60"
    # D: 72.010 MHz, H: 47.375 kHz, V: 59.968 Hz
    geometry 1360 768 1360 2304 32
    timings 13887 80 48 3 9 32 10
    rgba 8/16,8/8,8/0,8/24
    endmode

    Frame buffer device information:
    Name : omapfb
    Address : 0x86000000
    Size : 12582912
    Type : PACKED PIXELS
    Visual : TRUECOLOR
    XPanStep : 1
    YPanStep : 1
    YWrapStep : 0
    LineLength : 5440
    Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module Size Used by
    bufferclass_ti 5064 0
    omaplfb 11963 0
    pvrsrvkm 148853 2 bufferclass_ti,omaplfb
    sdmak 4622 0
    lpm_omap3530 6967 0
    dsplinkk 128609 1 lpm_omap3530
    cmemk 22859 0
    ------
    Boot settings
    console=tty0 console=ttyO2,115200n8 consoleblank=1 mem=128M@0x80000000 psplash=false omapdss.debug=y loglevel=8 mpurate=1000 buddy=none camera=lbcm3m1 vram=32M omapfb.mode=dvi:1360x768MR-24@60 omapfb.vram=0:12M,1:12M,2:8M omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
    ------
    Linux Kernel version
    Linux beagleboard 2.6.37 #1 Fri May 29 16:26:50 BST 2015 armv7l GNU/Linux

    I have tried different vram size, I don't know why it still fails.
    Any idea?
    Last edited by Kaijun; 18th June 2015 at 14:58.

Similar Threads

  1. Qt/Embedded 4.7 TP failed to build for -qconfig small
    By jmod in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 3rd October 2013, 06:53
  2. Replies: 0
    Last Post: 19th April 2011, 08:07
  3. Qt 4.7.0 compilation failed
    By Nivlag in forum Newbie
    Replies: 3
    Last Post: 16th November 2010, 03:07
  4. Multiple apps using Qt/Embedded+Qtopia on Embedded Linux
    By drahardja in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th February 2008, 21:46

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.