I have built and installed qt 4.4.3 on my machine and could see these variables in qglobal.h:<br><br>/usr/local/Trolltech/QtEmbedded-4.4.3-arm/include$ grep -r&nbsp; grep -r QT_PREPEND_NAMESPACE *<br><br>Qt/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::name<br>
Qt/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name<br>QtCore/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::name<br>QtCore/qglobal.h:# define QT_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name<br><br>But I couldn&#39;t see them defined in qglobal.h which comes with the libqt4-dev package. Might be something newly added in Qt.<br>
<br><br>-Arun<br><br><br><br><br><br><div class="gmail_quote">2008/12/29 rain jin <span dir="ltr">&lt;<a href="mailto:rain.jin77@gmail.com">rain.jin77@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi, </div>
<div>&nbsp;</div>
&nbsp;&nbsp;&nbsp; I try to compile webkit QT on ubuntu 8.04 . But&nbsp;there are some compile errors.<br><br>&nbsp;&nbsp;&nbsp; ../../../JavaScriptCore/wtf/Threading.h:126: error: expected initializer before &#39;*&#39; token<br><div>&nbsp;&nbsp; ../../../JavaScriptCore/wtf/Threading.h:127: error: expected initializer before &#39;*&#39; token<br>

&nbsp;&nbsp;
../../../JavaScriptCore/wtf/Threading.h:156: warning: ISO C++ forbids declaration of &#39;PlatformMutex&#39; with no type<br>&nbsp;&nbsp; ../../../JavaScriptCore/wtf/Threading.h:156: error: expected &#39;;&#39; before &#39;&amp;&#39; token<br>

&nbsp;&nbsp; ../../../JavaScriptCore/wtf/Threading.h:157: error: expected `;&#39; before &#39;private&#39;<br>&nbsp;&nbsp;
../../../JavaScriptCore/wtf/Threading.h:158: error: &#39;PlatformMutex&#39; does not name a type<br>&nbsp;&nbsp; ../../../JavaScriptCore/wtf/Threading.h:175: error: &#39;PlatformCondition&#39; does not name a type<br><br>&nbsp;&nbsp;&nbsp; I tried to change&nbsp; Threading.h file and at line 126,127<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef QT_PREPEND_NAMESPACE(QMutex)* PlatformMutex;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef QT_PREPEND_NAMESPACE(QWaitCondition)* PlatformCondition;<br>&nbsp;&nbsp; to <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef QMutex* PlatformMutex;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef QWaitCondition* PlatformCondition;<br>


&nbsp;&nbsp; <br>&nbsp;&nbsp; and the new errors are:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:93: warning: taking address of temporary<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:104: warning: taking address of temporary<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:109: error: &#39;const class WebCore::Font&#39; has no member named &#39;scFont&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:109: warning: taking address of temporary<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:123: error: &#39;const class WebCore::Font&#39; has no member named &#39;scFont&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:132: warning: taking address of temporary<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:140: error: &#39;const class WebCore::Font&#39; has no member named &#39;scFont&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:143: warning: taking address of temporary<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:150: error: &#39;const class WebCore::Font&#39; has no member named &#39;scFont&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:155: error: &#39;const class WebCore::Font&#39; has no member named &#39;scFont&#39;<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:155: warning: taking address of temporary<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:161: error: &#39;const class WebCore::Font&#39; has no member named &#39;scFont&#39;<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:182: warning: taking address of temporary<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp: In member function &#39;int WebCore::Font::lineGap() const&#39;:<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../../WebCore/platform/graphics/qt/FontQt43.cpp:351: error: &#39;m_font&#39; was not declared in this scope<br><br>&nbsp;&nbsp;&nbsp; My questions are:<br>&nbsp;&nbsp;&nbsp; 1. I can&#39;t find the definition of &quot;QT_PREPEND_NAMESPACE&quot; in webkit and QT&#39;s directory<br>


&nbsp;&nbsp;&nbsp; 2. I can&#39;t find &quot;scFont&quot; and &quot;m_font&quot;<br>&nbsp;&nbsp;&nbsp; where are these symbols?<br><br>&nbsp;&nbsp;&nbsp; I had installed libqt4-dev package.&nbsp; QT version is 4.3.4<br><br>&nbsp;&nbsp; Thanks!<br><br>&nbsp;&nbsp; Rain Jin<br></div>
<br>_______________________________________________<br>
webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
<a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
<br></blockquote></div><br>