[webkit-dev] Qt Webkit compile error with QChar
Simon Hausmann
hausmann at kde.org
Thu Apr 3 12:13:40 PDT 2008
On Wednesday 02 April 2008 13:16:15 rachid pstomer wrote:
> Hi, I'm trying to build QT-4.4.0 Webkit under visual studio 2005. The build
> failed and i had these errors:
>
>
> cl -c -FIWebKit_pch.h -YuWebKit_pch.h -Fptmp\obj\debug_shared\QtWebKitd_
> pch.pch -nologo -Zm200 -Zi -MDd -GR -GX -DQT_SHARED -DQT_THREAD_SUPPORT
> -DUNICOD E -DQT_LARGEFILE_SUPPORT -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC
> -DNDEBUG -DQT_MAK EDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
> -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT
> -D_USE_MATH_DEFINES -DBUILD_WEBKIT -DENABLE_ICOND ATABASE=0
> -DENABLE_XPATH=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_
> USE_JAVASCRIPTCORE_BINDINGS=1 -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB
> -DQT_CORE_L IB -I"..\..\..\..\include\QtCore"
> -I"..\..\..\..\include\QtCore" -I"..\..\..\..\ include\QtNetwork"
> -I"..\..\..\..\include\QtNetwork" -I"..\..\..\..\include\QtGu i"
> -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include" -I"..\WebKit\qt\Api"
> -I "..\JavaScriptCore" -I"..\JavaScriptCore\kjs"
> -I"..\JavaScriptCore\bindings" -I" ..\JavaScriptCore\bindings\c"
> -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\For wardingHeaders" -I"."
> -I"ForwardingHeaders" -I"platform" -I"platform\network" -I
> "platform\graphics" -I"loader" -I"page" -I"css" -I"dom" -I"bridge"
> -I"editing" - I"rendering" -I"history" -I"xml" -I"html"
> -I"..\..\..\..\include\QtWebKit" -I"tm p" -I"generated" -I"tmp"
> -I"..\JavaScriptCore" -I"..\JavaScriptCore\kjs" -I"..\J
> avaScriptCore\bindings" -I"..\JavaScriptCore\bindings\c"
> -I"..\JavaScriptCore\wt f" -I"..\JavaScriptCore\bindings\qt"
> -I"..\JavaScriptCore\os-win32" -I"..\JavaSc riptCore\pcre"
> -I"c:\Qt\4.4.0\src\3rdparty\webkit\WebKitBuild\Debug\JavaScriptCo
> re\kjs\tmp" -I"platform\qt" -I"platform\network\qt"
> -I"platform\graphics\qt" -I" platform\graphics\svg\qt" -I"loader\qt"
> -I"page\qt" -I"..\WebKit\qt\WebCoreSuppo rt" -I"..\WebKit\qt\Api" -I"."
> -I"ForwardingHeaders" -I"..\..\webkit" -I"..\Java ScriptCore\kjs"
> -I"..\JavaScriptCore\bindings" -I"platform" -I"platform\network"
> -I"platform\graphics" -I"platform\graphics\svg"
> -I"platform\graphics\svg\filter s" -I"loader" -I"loader\icon" -I"css"
> -I"dom" -I"page" -I"bridge" -I"editing" -I "rendering" -I"history" -I"xml"
> -I"html" -I"bindings\js" -I"ksvg2" -I"ksvg2\css" -I"ksvg2\svg"
> -I"ksvg2\misc" -I"ksvg2\events" -I"platform\image-decoders" -I"c:
> \Qt\4.4.0\include\ActiveQt" -I"tmp\moc\debug_shared" -I"."
> -I"..\..\..\..\mkspec s\win32-msvc" -Fotmp\obj\debug_shared\function.obj
> ..\JavaScriptCore\kjs\functio n.cpp
> cl : Command line warning D9035 : option 'GX' has been deprecated and will
> be re moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> function.cpp
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\kjs\nodes.h(231) : warning
> C4355: 'this' : used in base member initializer list
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\kjs\nodes.h(288) : warning
> C4355: 'this' : used in base member initializer list
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\kjs\nodes.h(347) : warning
> C4355: 'this' : used in base member initializer list
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\kjs\nodes.h(809) : warning
> C4355: 'this' : used in base member initializer list
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\kjs\nodes.h(1004) : warning
> C4355
>
> : 'this' : used in base member initializer list
>
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\kjs\nodes.h(1116) : warning
> C4355
>
> : 'this' : used in base member initializer list
>
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h
>(307)
>
> : error C2668: 'QChar::toCaseFolded' : ambiguous call to overloaded
> : function
>
> c:\qt\4.4.0\include\qtcore\../../src/corelib/tools/qchar.h(325):
> could b e 'ushort QChar::toCaseFolded(ushort)'
> c:\qt\4.4.0\include\qtcore\../../src/corelib/tools/qchar.h(324): or
> 'uin t QChar::toCaseFolded(uint)'
> while trying to match the argument list '(UChar)'
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h
>(379)
>
> : error C2668: 'QChar::toCaseFolded' : ambiguous call to overloaded
> : function
>
> c:\qt\4.4.0\include\qtcore\../../src/corelib/tools/qchar.h(325):
> could b e 'ushort QChar::toCaseFolded(ushort)'
> c:\qt\4.4.0\include\qtcore\../../src/corelib/tools/qchar.h(324): or
> 'uin t QChar::toCaseFolded(uint)'
> while trying to match the argument list '(const UChar)'
> c:\qt\4.4.0\src\3rdparty\webkit\javascriptcore\wtf\unicode\qt4/UnicodeQt4.h
>(380)
>
> : error C2668: 'QChar::toCaseFolded' : ambiguous call to overloaded
> : function
>
> c:\qt\4.4.0\include\qtcore\../../src/corelib/tools/qchar.h(325):
> could b e 'ushort QChar::toCaseFolded(ushort)'
> c:\qt\4.4.0\include\qtcore\../../src/corelib/tools/qchar.h(324): or
> 'uin t QChar::toCaseFolded(uint)'
> while trying to match the argument list '(const UChar)'
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\BIN\c l.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\BIN\n make.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
>
> Any idea to resolve this problem??
This happens when compiling without -Zc:wchar_t- (or with -Zc:wchar_t). Qt's
makespec has -Zc:wchat_t- by default though. Did you happen to edit your
qmake.conf?
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.webkit.org/pipermail/webkit-dev/attachments/20080403/457437a6/attachment.bin
More information about the webkit-dev
mailing list