Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Application running is error for eglfs mali base on Arm platform (QT5.8)

    Mobile and Embedded
    3
    10
    3956
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JOHN.CHEN last edited by

      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 = 0x3009

      my 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 ...... no

      could you help me to solve this problem ?
      thank all

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        J 2 Replies Last reply Reply Quote 1
        • J
          JOHN.CHEN @SGaist last edited by

          @SGaist thank your help ,i will do it

          1 Reply Last reply Reply Quote 1
          • J
            JOHN.CHEN @SGaist last edited by

            @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 2Aborted

            and 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 2Aborted

            do you have some advice for this?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Again: please give more details about your target: model name, gpu exact type, linux distribution running on etc.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 3 Replies Last reply Reply Quote 1
              • J
                JOHN.CHEN @SGaist last edited by JOHN.CHEN

                @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.8

                build 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

                1 Reply Last reply Reply Quote 1
                • J
                  JOHN.CHEN @SGaist last edited by

                  This post is deleted!
                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @JOHN.CHEN last edited by

                    @JOHN.CHEN This are not answers to @SGaist question...

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 0
                    • J
                      JOHN.CHEN @SGaist last edited by

                      @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

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        Is that the board that is described in this Qt article ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post