Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73038

egl_viv: invalid conversion of EGLNativeDisplayType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.1
    • Fix Version/s: 5.12.1
    • Component/s: QPA: EGLFS
    • Labels:
      None
    • Platform/s:
      Linux/Other display system

      Description

      After fix for QTBUG-72564 all flags from egl.pc are passed to build, which causes EGLNative types to not match the functions used to create them.

      EGLNativeDisplayType etc., are now typedef'ed as wl_display* instead of void*, which the function returns.

      /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.12.1+gitAUTOINC+f1aa4c076f-r0/git/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp: In member function 'virtual void QEglFSVivWaylandIntegration::platformInit()':
      /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.12.1+gitAUTOINC+f1aa4c076f-r0/git/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp:63:34: error: invalid conversion from 'void*' to 'EGLNativeDisplayType {aka wl_display*}' [-fpermissive]
           mNativeDisplay = fbGetDisplay(mWaylandDisplay);
                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
      /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.12.1+gitAUTOINC+f1aa4c076f-r0/git/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp: In member function 'virtual wl_egl_window* QEglFSVivWaylandIntegration::createNativeWindow(QPlatformWindow*, const QSize&, const QSurfaceFormat&)':
      /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.12.1+gitAUTOINC+f1aa4c076f-r0/git/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv_wl/qeglfsvivwlintegration.cpp:84:51: error: invalid conversion from 'void*' to 'EGLNativeWindowType {aka wl_egl_window*}' [-fpermissive]
           EGLNativeWindowType eglWindow = fbCreateWindow(mNativeDisplay, 0, 0, size.width(), size.height());
                                           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       

        Attachments

        For Gerrit Dashboard: QTBUG-73038
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes