Build Qt5.9.1: error: invalid conversion from ‘xcb_window_t {aka unsigned int}’ to ‘EGLNativeWindowType {aka void*}’ [-fpermissive]
-
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 -
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. -
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...