[webkit-qt] WebKit, Qt and V8

Subs Vin subsvin at gmail.com
Wed May 18 03:05:46 PDT 2011


Hi,
I am evaluating the use of QtWebKit for one of our projects.

Since I read on the webkit-qt forum that QtWebkit could also be built 
using the V8 engine, I wanted to give it a try.

So, I downloaded the latest revision (Rev - 86741) from svn (svn 
checkout http://svn.webkit.org/repository/webkit/trunk) and tried 
building it with V8 on Ubuntu 10.10 - 32 bit.

(I had already built the latest version of V8 and copied the include 
files into $QTDIR/src/3rdparty/v8/include and the libv8.so to $QTDIR/lib)

I setup the environmental variables as follows -

$ export QTDIR=/usr/local/Trolltech/Qt-4.7.3
$ export PATH=$QTDIR/bin:$PATH

$ ./Tools/Scripts/build-webkit --qt --v8

The build failed with the following errors -

Project MESSAGE: Using gold linker
Project MESSAGE: Using V8 with QtScript
Project MESSAGE: Using gold linker
Project MESSAGE: Using gold linker
Project MESSAGE: Using gold linker
Project MESSAGE: Using V8 with QtScript
Project MESSAGE: Using gold linker
Project MESSAGE: Using gold linker
WARNING: DESTDIR: Cannot access directory 
'/usr/local/Trolltech/Qt-4.7.3/plugins/webkit'
../../../Source/WebCore/bindings/v8/NPV8Object.cpp: In function 
‘WebCore::WrapperTypeInfo* WebCore::npObjectTypeInfo()’:
../../../Source/WebCore/bindings/v8/NPV8Object.cpp:61: warning: missing 
initializer for member ‘WebCore::WrapperTypeInfo::parentClass’
../../../Source/WebCore/bindings/v8/ScriptControllerQt.cpp: In member 
function ‘QScriptEngine* WebCore::ScriptController::qtScriptEngine()’:
../../../Source/WebCore/bindings/v8/ScriptControllerQt.cpp:43: error: no 
match for ‘operator=’ in 
‘((WebCore::ScriptController*)this)->WebCore::ScriptController::m_qtScriptEngine 
= (operator new(8u), (<statement>, ((QScriptEngine*)<anonymous>)))’
../../../Source/JavaScriptCore/wtf/OwnPtr.h:131: note: candidates are: 
WTF::OwnPtr<T>& WTF::OwnPtr<T>::operator=(const WTF::PassOwnPtr<T>&) 
[with T = QScriptEngine]
../../../Source/JavaScriptCore/wtf/OwnPtr.h:72: note: WTF::OwnPtr<T>& 
WTF::OwnPtr<T>::operator=(std::nullptr_t) [with T = QScriptEngine]
../../../Source/JavaScriptCore/wtf/OwnPtr.h:83: note: WTF::OwnPtr<T>& 
WTF::OwnPtr<T>::operator=(const WTF::OwnPtr<T>&) [with T = QScriptEngine]
make[1]: *** [obj/release/ScriptControllerQt.o] Error 1
make: *** [sub-WebCore-make_default-ordered] Error 2

Also, the buildbot for x86-32 Linux Qt V8 
(http://www.sed.hu/webkit/qtbuildbot/builders/x86-32%20Linux%20Qt%20V8) 
has been offline since Mar 8, 2011.

I have few questions - Please could somebody answer them for me
a) How do I build QtWebkit with V8? Is there any alternative other than 
the build-webkit --qt --v8 script?
b) I see that the QtWebkit 2.2 release is coming up during June 2011, is 
V8 supported on that?
c) Is the Qt bridge working with V8 engine?

Thanks,
Vin




More information about the webkit-qt mailing list