Failed to create OpenGL context for format QSurfaceFormat



  • Hi all,

    I have an app compiled for aarch64.
    Running it return the following error :

    Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)
    

    Here is the backtrace :

    Thread 1 "CoreEngine" received signal SIGABRT, Aborted.
    0x0000007fb70b6528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
    54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
    (gdb) backtrace
    #0  0x0000007fb70b6528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
    #1  0x0000007fb70b79e0 in __GI_abort () at abort.c:89
    #2  0x0000007fb747fbd4 in QMessageLogger::fatal(char const*, ...) const () from /usr/local/qt5/lib/libQt5Core.so.5
    #3  0x0000007fa35fa59c in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () from /usr/local/Qt-5.7.1/lib/libQt5Quick.so.5
    #4  0x0000007fa3601c50 in ?? () from /usr/local/Qt-5.7.1/lib/libQt5Quick.so.5
    #5  0x0000000000566ad0 in ?? ()
    Backtrace stopped: previous frame inner to this frame (corrupt stack?)
    

    Do you have any idea ?
    It seems as a pbm with XCB & opengl driver.
    the same app is ok on PC.
    The difference is that i compiled my own QT5.7.1 on the target.
    Maybe i missed some parameterS ? but i dont think so.

    Thank you.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What is your target exactly ?

    What parameters did you pass to configure when you cross-compiled Qt ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.