[webkit-dev] webkit qt compile error

rain jin rain.jin77 at gmail.com
Sun Dec 28 18:51:26 PST 2008


Hi,

    I try to compile webkit QT on ubuntu 8.04 . But there are some compile
errors.

    ../../../JavaScriptCore/wtf/Threading.h:126: error: expected initializer
before '*' token
   ../../../JavaScriptCore/wtf/Threading.h:127: error: expected initializer
before '*' token
   ../../../JavaScriptCore/wtf/Threading.h:156: warning: ISO C++ forbids
declaration of 'PlatformMutex' with no type
   ../../../JavaScriptCore/wtf/Threading.h:156: error: expected ';' before
'&' token
   ../../../JavaScriptCore/wtf/Threading.h:157: error: expected `;' before
'private'
   ../../../JavaScriptCore/wtf/Threading.h:158: error: 'PlatformMutex' does
not name a type
   ../../../JavaScriptCore/wtf/Threading.h:175: error: 'PlatformCondition'
does not name a type

    I tried to change  Threading.h file and at line 126,127
        typedef QT_PREPEND_NAMESPACE(QMutex)* PlatformMutex;
        typedef QT_PREPEND_NAMESPACE(QWaitCondition)* PlatformCondition;
   to
        typedef QMutex* PlatformMutex;
        typedef QWaitCondition* PlatformCondition;

   and the new errors are:
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:93: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:104: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:109: error: 'const
class WebCore::Font' has no member named 'scFont'
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:109: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:123: error: 'const
class WebCore::Font' has no member named 'scFont'
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:132: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:140: error: 'const
class WebCore::Font' has no member named 'scFont'
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:143: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:150: error: 'const
class WebCore::Font' has no member named 'scFont'
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:155: error: 'const
class WebCore::Font' has no member named 'scFont'
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:155: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:161: error: 'const
class WebCore::Font' has no member named 'scFont'
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:182: warning:
taking address of temporary
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp: In member
function 'int WebCore::Font::lineGap() const':
       ../../../WebCore/platform/graphics/qt/FontQt43.cpp:351: error:
'm_font' was not declared in this scope

    My questions are:
    1. I can't find the definition of "QT_PREPEND_NAMESPACE" in webkit and
QT's directory
    2. I can't find "scFont" and "m_font"
    where are these symbols?

    I had installed libqt4-dev package.  QT version is 4.3.4

   Thanks!

   Rain Jin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081229/45b4c356/attachment.html>


More information about the webkit-dev mailing list