Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build Qt5.9.1: error: invalid conversion from ‘xcb_window_t {aka unsigned int}’ to ‘EGLNativeWindowType {aka void*}’ [-fpermissive]
Forum Updated to NodeBB v4.3 + New Features

Build Qt5.9.1: error: invalid conversion from ‘xcb_window_t {aka unsigned int}’ to ‘EGLNativeWindowType {aka void*}’ [-fpermissive]

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 4 Posters 1.4k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by MHermann
    #1

    Hi all,

    I want to cross compile Qt5.9.1 for Raspberry Pi 3.
    After configuring the Qt I ran make.
    After about 1 hour I got following errors:

    ...
    ceSupport -I../../../../../../include/QtThemeSupport -I../../../../../../include/QtThemeSupport/5.9.1 -I../../../../../../include/QtThemeSupport/5.9.1/QtThemeSupport -I../../../../../../include/QtEventDispatcherSupport -I../../../../../../include/QtEventDispatcherSupport/5.9.1 -I../../../../../../include/QtEventDispatcherSupport/5.9.1/QtEventDispatcherSupport -I../../../../../../include/QtFontDatabaseSupport -I../../../../../../include/QtFontDatabaseSupport/5.9.1 -I../../../../../../include/QtFontDatabaseSupport/5.9.1/QtFontDatabaseSupport -I../../../../../../include/QtEglSupport -I../../../../../../include/QtEglSupport/5.9.1 -I../../../../../../include/QtEglSupport/5.9.1/QtEglSupport -I../../../../../../include/QtGui/5.9.1 -I../../../../../../include/QtGui/5.9.1/QtGui -I../../../../../../include/QtGui -I../../../../../../include/QtCore/5.9.1 -I../../../../../../include/QtCore/5.9.1/QtCore -I../../../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs-new/opt/vc/include -I/mnt/rasp-pi-rootfs-new/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs-new/opt/vc/include/interface/vmcs_host/linux -I../../../../../../mkspecs/devices/linux-rasp-pi-g++ -o .obj/qxcbeglwindow.o qxcbeglwindow.cpp
    qxcbeglwindow.cpp: In member function ‘virtual void QXcbEglWindow::create()’:
    qxcbeglwindow.cpp:96:92: error: invalid conversion from ‘xcb_window_t {aka unsigned int}’ to ‘EGLNativeWindowType {aka void*}’ [-fpermissive]
         m_surface = eglCreateWindowSurface(m_glIntegration->eglDisplay(), m_config, m_window, 0);
                                                                                                ^
    In file included from ../../../../../../include/QtEglSupport/5.9.1/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:65:0,
                     from ../../../../../../include/QtEglSupport/5.9.1/QtEglSupport/private/qt_egl_p.h:1,
                     from qxcbeglinclude.h:49,
                     from qxcbeglwindow.h:45,
                     from qxcbeglwindow.cpp:40:
    /mnt/rasp-pi-rootfs-new/opt/vc/include/EGL/egl.h:265:31: error:   initializing argument 3 of ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’ [-fpermissive]
     EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
                                   ^
    make[7]: *** [.obj/qxcbeglwindow.o] Error 1
    make[7]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
    make[6]: *** [sub-xcb_egl-make_first] Error 2
    make[6]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase/src/plugins/platforms/xcb/gl_integrations'
    make[5]: *** [sub-gl_integrations-make_first-ordered] Error 2
    make[5]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase/src/plugins/platforms/xcb'
    make[4]: *** [sub-xcb-make_first] Error 2
    make[4]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase/src/plugins/platforms'
    make[3]: *** [sub-platforms-make_first] Error 2
    make[3]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase/src/plugins'
    make[2]: *** [sub-plugins-make_first] Error 2
    make[2]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/mh/Qt/5.9.1/Src/qtbase'
    make: *** [module-qtbase-make_first] Error 2
    

    Does anyone know how I can solve these errors?

    Kind regards,
    MHermann

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you locked to that old version of Qt ?
      If not, you should update to Qt 5.12 and check if things get better.

      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
      0
      • M Offline
        M Offline
        Michael_C
        wrote on last edited by
        #3

        Hi @MHermann ,
        Did you solve this problem? I use Qt5.12.3, and the errors are the same. Thanks!

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Fernando Melo
          wrote on last edited by
          #4

          I had the same problems with a Raspberry pi 3 and Qt 5.12.3 LTS from source.
          The configuration steps showed that I have EGLFS ok, and Raspberry pi EGL module as 'yes' / 'ok', but on 'make' step, it gave the very same error as above.
          I then tried to compile Qt 5.10 from source, because of reasons... No luck, same error. I tried with other config parameters and still no go, then I've found somebody over the internet saying that 'sudo rpi-update' would do the trick. I've updated the kernel / firmware trough 'rpi-update' and it worked. I have Qt 5.10 working!
          I'm even thinking in try the Qt 5.12.3 again, but I tired of compilations by now...

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved