Test Webkit on Ubuntu Intrepid
Par Kagou le samedi, décembre 27 2008, 15:00 - Ubuntu - Lien permanent
You want to be able to pass css acid3 test on your machine ? So here's how to compile webkit on your distribution, Ubuntu Intrepid, for launching the mini-browser on the test site for masochist browsers.
Get the last webkit
- Go to http://webkit.org/
- Download the last nightly archive for Linux (r39474 for this post)
- Unzip the archive
- Open a Terminal and go in the new folder
Installation of packages needed
For a webkit build you need to install
For Intrepid :
sudo apt-get install autoconf automake libtool bison flex gperf libicu-dev libxslt-dev libcurl4-openssl-dev libsqlite3-dev libjpeg62-dev libpng12-dev libglibmm-2.4-dev libgtk2.0-dev build-essential libxt-dev
Webkit compilation
Compilation preparation :
./autogen.sh
And :
./configure --enable-svg-experimental
Launch compilation with :
make
Test Acid3
Launch the mini-browser with :
./Programs/GtkLauncher
Go to http://acid3.acidtests.org/ 
Result
Conclusion
You can shout : "I passed the test" 
Liens
- A good French blog de Frederic Bezies
- Webkit Trac




Commentaires
I'm just getting 98 Percent. *sigh*
@MAx : yes, all webkit engines seems very ... sensible yet ?! :D
Thank you very much. I was trying to get WebkitGTK to compile, just this afternoon, and gave up because of the dependencies. That one apt-get instruction made the difference. Compiled and working. Again, thank you.
@munwin : your welcome
71 here on FF3b5.
But I don't care, the internet works
Hi,
Thanks for the nice step by step tutorial. However, when I tried compiling, I got this error...
------------------
In file included from WebCore/plugins/gtk/PluginViewGtk.cpp:63:
WebCore/plugins/gtk/gtk2xtbin.h:44:27: error: X11/Intrinsic.h: No such file or directory
In file included from WebCore/plugins/gtk/PluginViewGtk.cpp:63:
WebCore/plugins/gtk/gtk2xtbin.h:78: error: ‘Widget’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:79: error: ‘Widget’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:104: error: ‘String’ has not been declared
WebCore/plugins/gtk/gtk2xtbin.h:113: error: ‘XtTranslations’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:114: error: ‘XtBoundActions’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:120: error: ‘Widget’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:121: error: ‘WidgetClass’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:122: error: ‘Widget’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:124: error: ‘Boolean’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:125: error: ‘XtCallbackList’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:126: error: ‘XtPointer’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:127: error: ‘Position’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:128: error: ‘Dimension’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:129: error: ‘Dimension’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:130: error: ‘Boolean’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:131: error: ‘Boolean’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:132: error: ‘Boolean’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:133: error: ‘XtEventTable’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:135: error: ‘XtTranslations’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:136: error: ‘Pixel’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:138: error: ‘WidgetList’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:139: error: ‘Cardinal’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:140: error: ‘String’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:144: error: ‘Cardinal’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:145: error: ‘Pixel’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:147: error: ‘Boolean’ does not name a type
WebCore/plugins/gtk/gtk2xtbin.h:148: error: ‘Boolean’ does not name a type
WebCore/plugins/gtk/PluginViewGtk.cpp: In member function ‘NPError WebCore::PluginView::getValue(NPNVariable, void*)’:
WebCore/plugins/gtk/PluginViewGtk.cpp:347: error: ‘XtDisplayToApplicationContext’ was not declared in this scope
./WebCore/plugins/PluginDebug.h: At global scope:
./WebCore/plugins/PluginDebug.h:32: warning: ‘errorStrings’ defined but not used
make[1]: *** [WebCore/plugins/gtk/libWebCore_la-PluginViewGtk.lo] Error 1
make[1]: Leaving directory `/media/sda8/homes/raghav/experiments/webkit/WebKit-r32862'
make: *** [all] Error 2
-------------------
any ideas ?
@raghav :
Your message : WebCore/plugins/gtk/gtk2xtbin.h:44:27: error: X11/Intrinsic.h: No such file or directory
Intrinsinc.h is provided by libxt-dev, and now latest webkit require it, so install it
Compiled successfully after installing another package : libxt-dev
I got 98 with the acid3 tests.
However, the browser crashes each time I open a website. Tried 3-4 but its always the same. But, I guess thats beyond the scope of this discussion...
thanks anyway.
regards
raghav..
Oh Yes!
100%
Thanks for the guide:)
I'm using QT4.3.2 with the latest nightly 14 Aug 2008 and am getting an error about it not finding QNetworkResponse. Any ideas what might be missing? QNetwork files are deffinitely there... plenty of results when searching, but no sign of QNetworkResponse at all. Perhaps the minimum requirements for QT when up?
In Hardy, apt-get complained about:
Le paquet libxslt-dev est un paquet virtuel fourni par : libxslt1-dev 1.1.22-1ubuntu1.2
Best regards and thank you for the tip.
Max
An **excellent** step-by-step guide to installing WebKit on Linux! Thank you very much!
Hey, you're executing the same command twice. autogen.sh runs configure with specified arguments and then you run configure.
Instead of
./autogen.sh
./configure --enable-svg-experimental
run
./autogen.sh --enable-svg-experimental
That's my tip for you
.
Or just install epiphany. it grabs 100 with the webkit backend. Which is now automatically installed. on intrepid.
@Livio : thanks for the tip !
FWIW, I had to install these additional packages in order to build on Ubuntu Jaunty:
and I had to run autogen.sh and configure with the "--disable-video" argument, because video support apparently requires some gstreamer packages for which I couldn't find exact matches (gstreamer-base-0.10 & gstreamer-plugins-base-0.10)
(I'm posting this here because this blogpost ranks high in a google search for the terms "webkit", "nightly", and "ubuntu")
I had one more dependency to add to Daniel's list, libgail-dev, and I didn't seem to run into any gstreamer issues (though I have a bunch of them installed already), but my experience was similar with Jaunty. I posted directions for building WebKit for Jaunty on my site. Thanks for the help!