Search |
ARM support for JavaScript engine of WebKitWe have announced the ARM port of WebKit on webkit-dev mailing list in April. Additionally, a Bugzilla entry was opened for the technical discussion. After that we received several feedbacks which encouraged us to continue our work, but some feedbacks reported technical difficulties on getting and building our code. This post is going to summarize how to get and build the ARM port for your device. Good to knowFirst of all, the ARM port resides in http://gitorious.org/~loki/qtwebkit/loki-qtwebkit server (updated). It was derived from the trunk of QtWebKit. From time to time, we are going to rebase our work on the top of trunk. The ARM port is developed and tested under Qt-linux environment (see more at the official development site of QtWebKit). How to get the source codeYou should use Git to checkout the port. Initial step (updated):
Update the local repository:
How to buildThe main build script is (updated)
You should also check the official the QtWebKit building guide at QtWebKit's webpage. Do not forget to build Qt libraries if your device does not have them. Tip: If you want to build the JavaScriptCore engine only, remove every element of the SUBDIRS variable except JavaScriptCore/jsc.pro from WebKit.pro. Cross compilationIf your development (build) box is not an ARM, you should use Scratchbox for emulation. See the Scratchbox homepage for the installion of the emulation environment. You can also use Scratchbox2 if you do not have a root access to the development box. Alternatively, you can use a virtual development box, for example the Maemo SDK Virtual Image. Test the JavaScript engine on your deviceCopy the following files and directories to your ARM device (preserve the directory structure):
And create several empty directories:
Do not forget to copy the Qt libraries as well if your device does not have them. You can execute the SunSpider benchmark with the following command:
If the script complains about building you should comment out the 'buildJSC();' line. FeedbackIf you still have a build problem, please write a comment here or to WebKit's bugzilla. |
Monthly archive
|
tonikitoo (not verified) - 05/07/2009 - 16:32
great work.
have you tested w/ any other port, apart from qt ?
gabor.loki - 05/08/2009 - 08:03
Not yet. Although our main target is the Qt port, we see no barrier to extend ARM port to other build platforms. Because JSCore does not have any build platform specific bindings.
Post new comment