[webkit-dev] webkit qt compile error

Arun Patole webkit.arunp at gmail.com
Mon Dec 29 20:42:24 PST 2008


I have built and installed qt 4.4.3 on my machine and could see these
variables in qglobal.h:

/usr/local/Trolltech/QtEmbedded-4.4.3-arm/include$ grep -r  grep -r
QT_PREPEND_NAMESPACE *

Qt/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::name
Qt/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name
QtCore/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::name
QtCore/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name

But I couldn't see them defined in qglobal.h which comes with the libqt4-dev
package. Might be something newly added in Qt.


-Arun





2008/12/29 rain jin <rain.jin77 at gmail.com>

> 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
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081230/6218e06f/attachment.html>


More information about the webkit-dev mailing list