[Buildroot] [PATCH 1/1] qt5: qt5websockets: install missing qml modules

Manfred Schlaegl manfred.schlaegl at ginzinger.com
Mon Apr 16 16:06:39 UTC 2018


Hi,

On 2018-04-16 17:48, Thomas Petazzoni wrote:
> Hello,
> 
> Thanks for your contribution!
Thanks for maintaining ;-)

> 
> On Wed, 11 Apr 2018 14:40:37 +0200, Manfred Schlaegl wrote:
>> QML modules for QtWebSockets are located in /usr/qml/QtWebSockets since
>> Qt 5.5.
>>
>> /usr/qml/Qt/WebSockets still exists for compatibility reasons, but
>> it contains only a qmldir file which points to ../../QtWebSockets/.
> 
> Does this mean we should remove the installation
> of /usr/qml/Qt/WebSockets ?

Newer projects (since Qt5.5) use
{{{
import QtWebSockets 1.0
}}}
which translates to /usr/qml/QtWebSockets
-> This is, what was missing.

Older projects (prior Qt5.5) use
{{{
import Qt.WebSockets 1.0
}}}
which resolves to /usr/qml/Qt/WebSockets
-> We don't want to break them, so we have to keep /usr/qml/Qt/WebSockets.

In short: We have to keep it. ;-)

> 
> I've applied your patch to master as-is, anyway. Thanks!
> 
> Thomas
> 
Thanks!

Best regards,
Manfred



More information about the buildroot mailing list