[Buildroot] Qt5 Webkit fails to compile
Peter Korsgaard
peter at korsgaard.com
Sun Feb 2 21:26:00 UTC 2020
>>>>> "Peter" == Peter Seiderer <ps.report at gmx.net> writes:
> Hello Andrea,
> On Sun, 2 Feb 2020 18:25:14 +0100, Andrea Simeoni <andreasimeoni73 at gmail.com> wrote:
>> Hi! I'm building a slightly modified config for Raspberry Pi 3 (attached
>> the .config file).
>> The compilation of qt5webkit fails. This is the error:
>>
>> platform/graphics/SegmentedFontData.cpp:65:9: error: expected ‘;’ before
>> ‘if’
>> if (!containsCharacter(c))
>> ^~
>>
>> the line before is:
>>
>> U16_NEXT(characters, i, length, c)
>>
>> and U16_NEXT is defined in uft16.h as:
>>
>> #define U16_NEXT(s, i, length, c) { \
>> (c)=(s)[(i)++]; \
>> if(U16_IS_LEAD(c)) { \
>> uint16_t __c2; \
>> if((i)<(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
>> ++(i); \
>> (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
>> } \
>> } \
>> }
>>
>> Is there something other I need to add in the configuration?
> Detected the same failure while preparing the the Qt-5.12.7 version bump,
> fixed by the following qt5webkit patch (proper buildroot patch will
> follow soon):
> diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
> index af63b141..26f7312b 100644
> --- a/Source/WebCore/dom/Document.cpp
> +++ b/Source/WebCore/dom/Document.cpp
> @@ -3846,12 +3846,12 @@ static bool isValidNameNonASCII(const UChar* characters, unsigned length)
> unsigned i = 0;
> UChar32 c;
> - U16_NEXT(characters, i, length, c)
> + U16_NEXT(characters, i, length, c);
> if (!isValidNameStart(c))
> return false;
> while (i < length) {
> - U16_NEXT(characters, i, length, c)
> + U16_NEXT(characters, i, length, c);
This looks very similar to our recent webkitgtk / wpewebkit patches:
https://git.buildroot.net/buildroot/commit/?id=8f8abbeec33ce8dfc0e3b14d2c352210634ce28c
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list