Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt5.4 qtwebkit build error with GRefPtr.cpp
Forum Updated to NodeBB v4.3 + New Features

Qt5.4 qtwebkit build error with GRefPtr.cpp

Scheduled Pinned Locked Moved Unsolved Qt WebKit
3 Posts 3 Posters 2.1k 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.
  • Y Offline
    Y Offline
    Y.L Chiu
    wrote on last edited by
    #1

    Hi all:

    I use qt5.4 cross compile with Freescale imx6.

    But, all modules is success install in my embedded board(Freescale imx6).
    Only qtwebkit and qtwebengine !!

    When I into qtwebkit sub-folder, and commad "make"
    It show those error:

    In file included from ./wtf/unicode/Unicode.h:34:0,
    from ./wtf/text/ASCIIFastPath.h:31,
    from ./wtf/text/WTFString.h:28,
    from wtf/DateMath.h:54,
    from wtf/DateMath.cpp:73:
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isAlphanumeric(UChar)':
    ./wtf/unicode/wchar/UnicodeWchar.h:136:58: error: 'iswalnum' was not declared in this scope
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isDigit(UChar)':
    ./wtf/unicode/wchar/UnicodeWchar.h:137:51: error: 'iswdigit' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isLetter(UC
    ./wtf/unicode/wchar/UnicodeWchar.h:138:52: error: 'iswalpha' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isLower(UCh
    ./wtf/unicode/wchar/UnicodeWchar.h:139:51: error: 'iswlower' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isPrintable
    ./wtf/unicode/wchar/UnicodeWchar.h:140:59: error: 'iswprint' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isPunct(UCh
    ./wtf/unicode/wchar/UnicodeWchar.h:141:51: error: 'iswpunct' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isSpace(UCh
    ./wtf/unicode/wchar/UnicodeWchar.h:142:51: error: 'iswspace' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isUpper(UCh
    ./wtf/unicode/wchar/UnicodeWchar.h:143:51: error: 'iswupper' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::foldCase(U
    ./wtf/unicode/wchar/UnicodeWchar.h:148:51: error: 'towlower' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toLower(UC
    ./wtf/unicode/wchar/UnicodeWchar.h:149:50: error: 'towlower' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toUpper(UC
    ./wtf/unicode/wchar/UnicodeWchar.h:150:50: error: 'towupper' was not declared i
    ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toTitleCas
    ./wtf/unicode/wchar/UnicodeWchar.h:151:54: error: 'towupper' was not declared i
    In file included from ./wtf/text/ASCIIFastPath.h:31:0,
    from ./wtf/text/WTFString.h:28,
    from wtf/DateMath.h:54,
    from wtf/DateMath.cpp:73:
    ./wtf/unicode/Unicode.h: At global scope:
    ./wtf/unicode/Unicode.h:39:1: error: static assertion failed: "UCharIsTwoBytes"
    make[1]: *** [.obj/wtf/DateMath.o] Error 1
    make[1]: Leaving directory `/home/peterchiu/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-ev TF'
    make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

    Then, I modify the "UnicodeWchar.h" :

    #ifndef ANDROID

    #include <wctype.h>

    typedef unsigned short int UChar;

    //# include <wchar.h>

    // typedef wchar_t UChar;

    #else

    typedef unsigned short int UChar;

    #endif

    But, when I continue make, it show new error :

    wtf/gobject/GRefPtr.cpp: In function 'T* WTF::refGPtr(T*) [with T = _GVariant]':
    wtf/gobject/GRefPtr.cpp:100:26: error: 'g_variant_ref' was not declared in this scope
    wtf/gobject/GRefPtr.cpp: In function 'void WTF::derefGPtr(T*) [with T = _GVariant]':
    wtf/gobject/GRefPtr.cpp:106:24: error: 'g_variant_unref' was not declared in this scope
    make[1]: *** [.obj/wtf/gobject/GRefPtr.o] Error 1
    make[1]: Leaving directory `/home/peterchiu/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/WTF'
    make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

    How can I do ?
    If you know the answer, please tell me, thanks !

    S K 2 Replies Last reply
    0
    • Y Y.L Chiu

      Hi all:

      I use qt5.4 cross compile with Freescale imx6.

      But, all modules is success install in my embedded board(Freescale imx6).
      Only qtwebkit and qtwebengine !!

      When I into qtwebkit sub-folder, and commad "make"
      It show those error:

      In file included from ./wtf/unicode/Unicode.h:34:0,
      from ./wtf/text/ASCIIFastPath.h:31,
      from ./wtf/text/WTFString.h:28,
      from wtf/DateMath.h:54,
      from wtf/DateMath.cpp:73:
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isAlphanumeric(UChar)':
      ./wtf/unicode/wchar/UnicodeWchar.h:136:58: error: 'iswalnum' was not declared in this scope
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isDigit(UChar)':
      ./wtf/unicode/wchar/UnicodeWchar.h:137:51: error: 'iswdigit' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isLetter(UC
      ./wtf/unicode/wchar/UnicodeWchar.h:138:52: error: 'iswalpha' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isLower(UCh
      ./wtf/unicode/wchar/UnicodeWchar.h:139:51: error: 'iswlower' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isPrintable
      ./wtf/unicode/wchar/UnicodeWchar.h:140:59: error: 'iswprint' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isPunct(UCh
      ./wtf/unicode/wchar/UnicodeWchar.h:141:51: error: 'iswpunct' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isSpace(UCh
      ./wtf/unicode/wchar/UnicodeWchar.h:142:51: error: 'iswspace' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isUpper(UCh
      ./wtf/unicode/wchar/UnicodeWchar.h:143:51: error: 'iswupper' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::foldCase(U
      ./wtf/unicode/wchar/UnicodeWchar.h:148:51: error: 'towlower' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toLower(UC
      ./wtf/unicode/wchar/UnicodeWchar.h:149:50: error: 'towlower' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toUpper(UC
      ./wtf/unicode/wchar/UnicodeWchar.h:150:50: error: 'towupper' was not declared i
      ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toTitleCas
      ./wtf/unicode/wchar/UnicodeWchar.h:151:54: error: 'towupper' was not declared i
      In file included from ./wtf/text/ASCIIFastPath.h:31:0,
      from ./wtf/text/WTFString.h:28,
      from wtf/DateMath.h:54,
      from wtf/DateMath.cpp:73:
      ./wtf/unicode/Unicode.h: At global scope:
      ./wtf/unicode/Unicode.h:39:1: error: static assertion failed: "UCharIsTwoBytes"
      make[1]: *** [.obj/wtf/DateMath.o] Error 1
      make[1]: Leaving directory `/home/peterchiu/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-ev TF'
      make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

      Then, I modify the "UnicodeWchar.h" :

      #ifndef ANDROID

      #include <wctype.h>

      typedef unsigned short int UChar;

      //# include <wchar.h>

      // typedef wchar_t UChar;

      #else

      typedef unsigned short int UChar;

      #endif

      But, when I continue make, it show new error :

      wtf/gobject/GRefPtr.cpp: In function 'T* WTF::refGPtr(T*) [with T = _GVariant]':
      wtf/gobject/GRefPtr.cpp:100:26: error: 'g_variant_ref' was not declared in this scope
      wtf/gobject/GRefPtr.cpp: In function 'void WTF::derefGPtr(T*) [with T = _GVariant]':
      wtf/gobject/GRefPtr.cpp:106:24: error: 'g_variant_unref' was not declared in this scope
      make[1]: *** [.obj/wtf/gobject/GRefPtr.o] Error 1
      make[1]: Leaving directory `/home/peterchiu/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/WTF'
      make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

      How can I do ?
      If you know the answer, please tell me, thanks !

      S Offline
      S Offline
      Shidharth
      wrote on last edited by
      #2

      @Y.L-Chiu I am also having the same issue. Did you resolved the errors?.

      1 Reply Last reply
      0
      • Y Y.L Chiu

        Hi all:

        I use qt5.4 cross compile with Freescale imx6.

        But, all modules is success install in my embedded board(Freescale imx6).
        Only qtwebkit and qtwebengine !!

        When I into qtwebkit sub-folder, and commad "make"
        It show those error:

        In file included from ./wtf/unicode/Unicode.h:34:0,
        from ./wtf/text/ASCIIFastPath.h:31,
        from ./wtf/text/WTFString.h:28,
        from wtf/DateMath.h:54,
        from wtf/DateMath.cpp:73:
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isAlphanumeric(UChar)':
        ./wtf/unicode/wchar/UnicodeWchar.h:136:58: error: 'iswalnum' was not declared in this scope
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isDigit(UChar)':
        ./wtf/unicode/wchar/UnicodeWchar.h:137:51: error: 'iswdigit' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isLetter(UC
        ./wtf/unicode/wchar/UnicodeWchar.h:138:52: error: 'iswalpha' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isLower(UCh
        ./wtf/unicode/wchar/UnicodeWchar.h:139:51: error: 'iswlower' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isPrintable
        ./wtf/unicode/wchar/UnicodeWchar.h:140:59: error: 'iswprint' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isPunct(UCh
        ./wtf/unicode/wchar/UnicodeWchar.h:141:51: error: 'iswpunct' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isSpace(UCh
        ./wtf/unicode/wchar/UnicodeWchar.h:142:51: error: 'iswspace' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isUpper(UCh
        ./wtf/unicode/wchar/UnicodeWchar.h:143:51: error: 'iswupper' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::foldCase(U
        ./wtf/unicode/wchar/UnicodeWchar.h:148:51: error: 'towlower' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toLower(UC
        ./wtf/unicode/wchar/UnicodeWchar.h:149:50: error: 'towlower' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toUpper(UC
        ./wtf/unicode/wchar/UnicodeWchar.h:150:50: error: 'towupper' was not declared i
        ./wtf/unicode/wchar/UnicodeWchar.h: In function 'UChar WTF::Unicode::toTitleCas
        ./wtf/unicode/wchar/UnicodeWchar.h:151:54: error: 'towupper' was not declared i
        In file included from ./wtf/text/ASCIIFastPath.h:31:0,
        from ./wtf/text/WTFString.h:28,
        from wtf/DateMath.h:54,
        from wtf/DateMath.cpp:73:
        ./wtf/unicode/Unicode.h: At global scope:
        ./wtf/unicode/Unicode.h:39:1: error: static assertion failed: "UCharIsTwoBytes"
        make[1]: *** [.obj/wtf/DateMath.o] Error 1
        make[1]: Leaving directory `/home/peterchiu/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-ev TF'
        make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

        Then, I modify the "UnicodeWchar.h" :

        #ifndef ANDROID

        #include <wctype.h>

        typedef unsigned short int UChar;

        //# include <wchar.h>

        // typedef wchar_t UChar;

        #else

        typedef unsigned short int UChar;

        #endif

        But, when I continue make, it show new error :

        wtf/gobject/GRefPtr.cpp: In function 'T* WTF::refGPtr(T*) [with T = _GVariant]':
        wtf/gobject/GRefPtr.cpp:100:26: error: 'g_variant_ref' was not declared in this scope
        wtf/gobject/GRefPtr.cpp: In function 'void WTF::derefGPtr(T*) [with T = _GVariant]':
        wtf/gobject/GRefPtr.cpp:106:24: error: 'g_variant_unref' was not declared in this scope
        make[1]: *** [.obj/wtf/gobject/GRefPtr.o] Error 1
        make[1]: Leaving directory `/home/peterchiu/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/WTF'
        make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

        How can I do ?
        If you know the answer, please tell me, thanks !

        K Offline
        K Offline
        Konstantin Tokarev
        wrote on last edited by
        #3

        @Y.L-Chiu said in Qt5.4 qtwebkit build error with GRefPtr.cpp:

        wtf/gobject/GRefPtr.cpp:100:26: error: 'g_variant_ref' was not declared in this scope

        Looks like your glib installation is broken, or glib is just too old. However, you can build QtWebKit without glib if you don't need GStreamer player

        1 Reply Last reply
        1

        • Login

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