[Development] Possible bug in qwaylandbrcmeglintegration.h when cross compiling for Raspberry Pi

Guido Seifert wargand at gmx.de
Sat Mar 28 15:37:40 CET 2015

first I must say, I don't really know what I am doing here... new frontiers for me.

I compile Qt 5.5 (latest git master) for Raspian. Not out of the box possible, but
no rocket science either. 

The one of the problems was (is) in qtwayland. During compilation I get:

> ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmeglintegration.cpp:60:120: error: cannot convert 'QtWaylandClient::wl_registry*' to 
> 'wl_registry*' for argument '1' to 'void* wl_registry_bind(wl_registry*, uint32_t, const wl_interface*, uint32_t)'
> integration->m_waylandBrcm = static_cast<struct qt_brcm*>(wl_registry_bind(registry, id, &qt_brcm_interface, 1));

I can fix this compile error by adding 

> #include <QtWaylandClient/private/qwayland-wayland.h>

to qwaylandbrcmeglintegration.h.

Question is... is this a genuine bug, or does it only happen due to some cross compile peculiarities or a configurion glitch? 
Even if it is due to compile peculiarities, any reason not to add this header file to qwaylandbrcmeglintegration.h?
Would make it easier for others to cross compile Qt5.


More information about the Development mailing list