Narwhal-JSC on Linux

29 views
Skip to first unread message

Antonio Salazar Cardozo

unread,
Jun 5, 2010, 11:39:54 AM6/5/10
to Narwhal and Jack
Hey everyone,
There is a note at the bottom of the narwhal-jsc engine saying that
getting it compiling on Linux can be fixed by an improved Makefile.
What in particular is missing? I'm guessing basically the link lines
and such need to be switched from OS X to Linux library/framework
names?

Also, what all does Narwhal-JSC depend on? Is it just JavascriptCore?
Finally, my main question is, how hard would it be to get narwhal-
jsc's webkit-debug mode running correctly on Linux? Obviously the
currently debug starter is written in Objective-C and uses an
NSApplication, so what might be the best approach to achieve this?

Also, is webkit-debug truly `headless'? By the fact that the inspector
can be shown, I'm suspecting possibly not, but I'm not sure...

Sorry for the question flood!
Thanks,
Antonio

Tom Robinson

unread,
Jun 5, 2010, 4:59:52 PM6/5/10
to narw...@googlegroups.com
There's a "linux" branch that has a working Makefile. It hasn't been kept in sync with master though. We need to merge the two Makefiles, or convert it to a Jakefile (but then you have a chicken/egg problem... you need Narwhal to compile Narwhal. narwhal-rhino sort of solves that).

There are several modes for narwhal-jsc: narwhal-jscore, which only depends on JSC itself (this is what works on Linux currently), and narwhal-webkit and narwhal-webkit-debug, which currently uses a JavaScriptCore context from the Objective-C WebView, so it has all the WebCore functionality, debugger, etc.

I haven't explored what the best way to get a full WebKit instance running on Linux is. I hear QT has a good WebKit binding though. Does anyone have any experience with that, or programming WebKit on Linux (or Windows) in general?

-tom

> --
> You received this message because you are subscribed to the Google Groups "Narwhal and Jack" group.
> To post to this group, send email to narw...@googlegroups.com.
> To unsubscribe from this group, send email to narwhaljs+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/narwhaljs?hl=en.
>

Antonio Salazar Cardozo

unread,
Jun 7, 2010, 11:07:58 AM6/7/10
to Narwhal and Jack
I actually have played with QtWebKit a bit. The only issue is that I
don't believe the Qt WebKit bindings actually expose the JSC context
and window objects like OS X does -- you can only evaluate JS -- so
I'm not sure if the narwhal context can then be initialized properly
in that case?

Although I'm fairly certain it's possible to access it through the d
pointer object, but that's supposed to be private and subject to
unexpected changes.
Antonio
Reply all
Reply to author
Forward
0 new messages