Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Fri Apr 18, 2014 10:14 am

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Qt 4.8.2 / Webkit patch
Unread postPosted: Fri Jul 27, 2012 4:03 am 
Offline
User avatar

Joined: Wed Mar 26, 2008 11:04 am
Posts: 307
Location: Paris
I've been working on this when I had a lot more free time available, but it seems that I don't have time anymore to push this forward, and it will probably be getting worse in the upcoming months. So it's time to give this work to the community, in case anyone wants to continue where I left off.

This patch is the result of a work in progress in my attempt to port Webkit/JSC to Irix (mipspro), in various states :
- The Qt part should be clean enough to package a neko Qt 4.8.2
- The Webkit/Webcore part may need some rework/cleaning, but up to now I never had issues with Webcore itself
- The Webkit/JavaScriptCore part is where most of problems remains, and is in a heavy "work in progress state"

I used the following configure line :
Code:
./configure --prefix=/usr/nekoware/qt4 -verbose -platform irix-cc -debug -webkit -graphicssystem opengl -nomake examples


A few "out of my head" comments :
- The OpenGL graphics system should be a great feature on Irix. But it does not seem to enable itself at runtime, not sure exactly why, I didn't investigate much
- The libQtWekbit.so can be used with the qt demo browser. Arora also builds just fine, and should be a nice modern browser for Irix
- Linking the whole libQtWebkit can be difficult (see here for details). In my case, the quickfix was to strip the WebCore objects before linking (this is the biggest part of the library, and as I never had a runtime problem with it, stripping the objects shouldn't cause any problems).
- JavaScriptCore can be built as a full interpreter, but there is also JIT code for mips processors. Unfortunately, this code targets little endian and the O32 ABI, and uses gcc inline assembler. To enable/disable mips JIT, see the ENABLE_JIT define in JavaScriptCore/wtf/Platform.h and (un)comment the defined(_ABIO32) preprocessor condition.
- There is various "XXXX" comments in JSC code, these are hacks for my debug in progress and should be removed (see patch)
- It's easier to debug and faster to build the JSC library without the whole WebKit/WebCore stuff, so I used a script to build the jsc command line executable, that is not build by default.

That's all I can think of for now, questions or comments are welcome in this thread or by pm.


Attachments:
File comment: build the jsc executable
build_jsc_debug.sh.txt [1.01 KiB]
Downloaded 30 times
File comment: fix the DEFINE_GLOBAL macro in generated sources
fix_derived_sources.sh.txt [271 Bytes]
Downloaded 28 times
File comment: the patch
qt-4.8.2-webkit.patch [258.38 KiB]
Downloaded 32 times

_________________
:Onyx2: :Fuel: :O2: :O3x0: :O3x0:
Top
 Profile  
 
Unread postPosted: Tue Aug 07, 2012 2:31 pm 
Offline

Joined: Tue Aug 03, 2010 8:08 am
Posts: 48
For anyone starting to poke into this, what is the next step?

For example, what was the very next thing on your list to tackle before you got swamped?

_________________
:1600SW: :O2: :O2+: :O2: :1600SW:


Top
 Profile  
 
Unread postPosted: Tue Aug 07, 2012 11:14 pm 
Offline
User avatar

Joined: Wed Mar 26, 2008 11:04 am
Posts: 307
Location: Paris
telackey wrote:
For anyone starting to poke into this, what is the next step?

For example, what was the very next thing on your list to tackle before you got swamped?


The "only" remaining work would be to fix JavaScriptCore, that crashes in some circumstances.
A good way to have a broad test coverage is to run the sputnik conformance test suite with jsc.

_________________
:Onyx2: :Fuel: :O2: :O3x0: :O3x0:


Top
 Profile  
 
Unread postPosted: Wed Aug 08, 2012 7:54 am 
Offline

Joined: Tue Aug 03, 2010 8:08 am
Posts: 48
As large as that "only" is, it is still pretty encouraging.

_________________
:1600SW: :O2: :O2+: :O2: :1600SW:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group