Hi Sriram,

thank you for sharing this. I've added my cross-compile options
(--host, --prefix, etc.) and could generate a correct Makefile.
However 'make' fails when looking for Xlib.h (see below) and I don't
have/want X11 on my embedded platform. My understanding is that X11
should not be necessary in order to build WebKitDFB.

Do you remember which branch did you use?

Tomorrow I'll try again, maybe using the 'webkitdfb_2010-11-18_cairo'
branch as well, just in case.

Best,
Piero

[Appendix]

This is my configure command, where $TOOLCHAIN is buildroot's staging dir:

./configure \
--host=i686-cm-linux --build=i686-pc-linux-gnu --prefix=$TOOLCHAIN/usr/webkit \
--with-target=directfb \
--without-gtkplus \
--enable-optimizations --disable-channel-messaging \
--disable-gtk-doc-html \
--enable-javascript-debugger --enable-offline-web-applications \
--enable-dom-storage --enable-database \
--disable-eventsource --disable-icon-database \
--enable-datalist --disable-video --enable-svg --enable-xpath \
--enable-xslt --enable-workers --disable-web-sockets \
--enable-jit --with-cairo-directfb --with-networking-backend=curl \
ac_cv_path_icu_config=$TOOLCHAIN/usr/bin/icu-config \
ac_cv_path_CURL_CONFIG=$TOOLCHAIN/usr/bin/curl-config \
ac_cv_path_FLEX=$TOOLCHAIN/usr/bin/flex \
ac_cv_path_GPERF=$TOOLCHAIN/usr/bin/gperf \
GLIB_COMPILE_SCHEMAS=$TOOLCHAIN/usr/bin/glib-compile-schemas \
GLIB_MKENUMS=$TOOLCHAIN/usr/bin/glib-mkenums \
GLIB_GENMARSHAL=$TOOLCHAIN/usr/bin/glib-genmarshal \
CC=$TOOLCHAIN/bin/i686-cm-linux-gcc \
CPP=$TOOLCHAIN/bin/i686-cm-linux-cpp \
CXX=$TOOLCHAIN/bin/i686-cm-linux-g++ \
CPPFLAGS="-I$TOOLCHAIN/usr/include -I$TOOLCHAIN/include
-I$TOOLCHAIN/usr/local/include" \
LDFLAGS="-L$TOOLCHAIN/lib -L$TOOLCHAIN/usr/lib -L$TOOLCHAIN/usr/local/lib"

Here's the error:

...
CXX    WebCore/bindings/js/libwebkitgtk___la-ScriptController.lo
In file included from ./WebCore/bridge/npruntime_internal.h:28:0,
                 from ./WebCore/bridge/NP_jsobject.h:31,
                 from WebCore/bindings/js/ScriptController.cpp:34:
./WebCore/bridge/npapi.h:93:22: fatal error: X11/Xlib.h: No such file
or directory
compilation terminated.
make[1]: *** [WebCore/bindings/js/libwebkitgtk___la-ScriptController.lo] Error 1

On Thu, Apr 12, 2012 at 1:36 PM, Sriram Neelakandan
<[email protected]> wrote:
> Hi Piero,
>
> ./configure --prefix=/home/sriramn/work_x86/installs/dfbwebkit/
> --with-target=directfb --without-gtkplus --enable-optimizations
> --disable-channel-messaging --enable-javascript-debugger
> --enable-offline-web-applications --enable-dom-storage --enable-database
> --disable-eventsource --disable-icon-database --enable-datalist
> --disable-video --enable-svg --enable-xpath --enable-xslt --enable-workers
> --disable-web-sockets --enable-jit --with-cairo-directfb
> --with-networking-backend=curl
>
> This is my configure and it compiled thru without any issues (as long as u
> have all the deps compiled and installed)
>
>
> On Thu, Apr 12, 2012 at 5:50 PM, rippel tippel <[email protected]>
> wrote:
>>
>> After some hacking in Makefiles, I managed to ./configure WebKit
>> (hoorray!). In particular, I'm using branch webkitdfb_2010-11-18.
>>
>> Unfortunately 'make' fails with this error:
>>
>> ...
>> CXX    WebCore/bindings/js/libwebkitgtk___la-JSDOMWindowBase.lo
>> CXX    WebCore/bindings/js/libwebkitgtk___la-JSDOMWindowCustom.lo
>> In file included from ./DerivedSources/WebCore/JSSharedWorker.h:27:0,
>>                 from WebCore/bindings/js/JSDOMWindowCustom.cpp:51:
>> ./WebCore/workers/SharedWorker.h:41:48: error: invalid use of
>> incomplete type 'struct WebCore::AbstractWorker'
>> ./WebCore/dom/EventTarget.h:43:11: error: forward declaration of
>> 'struct WebCore::AbstractWorker'
>> In file included from WebCore/bindings/js/JSDOMWindowCustom.cpp:51:0:
>> ./DerivedSources/WebCore/JSSharedWorker.h:34:48: error: expected
>> class-name before '{' token
>> ./DerivedSources/WebCore/JSSharedWorker.h:35:13: error:
>> 'JSAbstractWorker' does not name a type
>> ./DerivedSources/WebCore/JSSharedWorker.h:57:108: error: 'Base' has
>> not been declared
>> ./DerivedSources/WebCore/JSSharedWorker.h: In static member function
>> 'static WTF::PassRefPtr<JSC::Structure>
>> WebCore::JSSharedWorker::createStructure(JSC::JSValue)':
>> ./DerivedSources/WebCore/JSSharedWorker.h:46:98: error:
>> 'AnonymousSlotCount' was not declared in this scope
>> ./DerivedSources/WebCore/JSSharedWorker.h: In member function
>> 'WebCore::SharedWorker* WebCore::JSSharedWorker::impl() const':
>> ./DerivedSources/WebCore/JSSharedWorker.h:54:43: error: 'Base' has not
>> been declared
>> make[1]: *** [WebCore/bindings/js/libwebkitgtk___la-JSDOMWindowCustom.lo]
>> Error 1
>> make[1]: Leaving directory `/[...]/WebKit-git'
>> make: *** [all] Error 2
>>
>> I've recompiled using the '--disable-shared-workers' configure flag
>> and it failed with this error:
>>
>> ...
>> CC
>> WebCore/platform/network/soup/cache/libwebkitgtk___la-soup-request-file.lo
>> WebCore/platform/network/soup/cache/soup-request-file.c: In function
>> 'webkit_soup_request_file_check_uri':
>> WebCore/platform/network/soup/cache/soup-request-file.c:78:21: error:
>> 'SOUP_URI_SCHEME_FILE' undeclared (first use in this function)
>> WebCore/platform/network/soup/cache/soup-request-file.c:78:21: note:
>> each undeclared identifier is reported only once for each function it
>> appears in
>> WebCore/platform/network/soup/cache/soup-request-file.c: In function
>> 'webkit_soup_request_file_ensure_file':
>> WebCore/platform/network/soup/cache/soup-request-file.c:162:21: error:
>> 'SOUP_URI_SCHEME_FILE' undeclared (first use in this function)
>> WebCore/platform/network/soup/cache/soup-request-file.c:182:28: error:
>> 'SOUP_URI_SCHEME_FTP' undeclared (first use in this function)
>> make[1]: ***
>> [WebCore/platform/network/soup/cache/libwebkitgtk___la-soup-request-file.lo]
>> Error 1
>> make[1]: Leaving directory `/[...]/WebKit-git'
>> make: *** [all] Error 2
>>
>> Now I'm wondering if those errors are due to my toolchain (I'm
>> cross-compiling for Atom) or they are issues in the source code/side
>> libraries.
>>
>> This is what I'm using:
>>
>> cairo 1.10.0
>> curl 7.25.0
>> directfb/direct/fusion 1.4.3
>> enchant 1.6.0
>> fontconfig 2.8.0
>> freetype 2.3.5
>> gettext 0.18.1.1
>> glib 2.26.1
>> gperf 3.0.4
>> icu 3.8
>> libpng 1.2.49
>> libsoup 2.28.2
>> libxml2 2.7.8
>> libxslt 1.1.26
>> Lite 0.8.10
>> pango 1.27.1
>> pixman 0.19.2
>> SQLite3 autoconf-3071100
>>
>> I couldn't find a list of the required versions for each library, so I
>> would be grateful if anyone could provide a link to that, if exists.
>>
>> Also, the code looks allright, my C++ is a bit rusty so I may have
>> missed something... any idea?
>>
>> Cheers,
>> Piero
>>
>> On Wed, Apr 11, 2012 at 7:05 PM, Timothy Chon <[email protected]> wrote:
>> > +3, I've been interested in getting this to compile correctly (on linux)
>> > too.
>> >
>> > --tim
>> >
>> >
>> > On Wed, Apr 11, 2012 at 10:56, Dave Henderson
>> > <[email protected]>
>> > wrote:
>> >>
>> >> Plus 2.  I'm very interested in using webkit on DFB for certain
>> >> projects.
>> >>
>> >> Dave
>> >>
>> >>
>> >> On 04/11/2012 01:13 PM, Sriram Neelakandan wrote:
>> >>
>> >> Plus 1. very much interested to support and contribute to this project.
>> >> AFAIK, i heard that there is a more recent port that is yet to be
>> >> pushed
>> >> out.
>> >> But looks like the core-maintainers are busy with some other stuff ..
>> >>
>> >> I managed to compile the 2010-11-18 stuff on PC.. it did work well.
>> >> And I don't think you need GTK for it. It just requires LiTE/ Cairo /
>> >> DFB
>> >>
>> >> regards
>> >> Sriram
>> >>
>> >> On Wed, Apr 11, 2012 at 9:57 PM, rippel tippel <[email protected]>
>> >> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I'm wondering whether the WebKit DFB project is still
>> >>> running/supported.
>> >>>
>> >>> I've cloned the git repo and moved to branch webkitdfb_2010-11-18, but
>> >>> have some issues in cross-compiling it, as my platform doesn't have
>> >>> GTK+ (error is about 'gail' not found, actually).
>> >>>
>> >>> Could anyone provide any advice?
>> >>>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> directfb-users mailing list
>> >> [email protected]
>> >> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>> >>
>> >>
>> >> _______________________________________________
>> >> directfb-users mailing list
>> >> [email protected]
>> >> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>> >>
>> >
>> >
>> > _______________________________________________
>> > directfb-users mailing list
>> > [email protected]
>> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>> >
>> _______________________________________________
>> directfb-users mailing list
>> [email protected]
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>
>
>
> --
> Sriram Neelakandan
> Author - Embedded Linux System Design And Development
> (http://tinyurl.com/2doosu)
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to