Hi: I want to cross compile WEBKITGTK 1.10.2 for MIPS with directfb. Here is my configuration:
./configure --host=mips-linux-gnu --prefix=/home/btran8/install_brian CC="mips-linux-gnu-gcc -EL -I/home/btran8/test_TAC_patch/cs_rootfs_1.2.31/cross_rootfs/include " CFLAGS="-EL -O2 -Wa,-mips32r2 -march=24kf -mtune=24kf" LDFLAGS="-L/home/btran8/install_brian/lib -L/home/btran8/test_TAC_patch/cs_rootfs_1.2.31/build_mipsel/root/lib " CXX="mips-linux-gnu-g++ -EL -I/home/btran8/test_TAC_patch/cs_rootfs_1.2.31/cross_rootfs/include -I./Source/WebCore/icu " CXXFLAGS="-EL -O2 -Wa,-mips32r2 -march=24kf -mtune=24kf" --with-target=directfb --with-gtk=2.0 GAIL_CFLAGS="-I/home/btran8/install_brian/include/gail-1.0" GAIL_LIBS="-L/home/btran8/install_brian/lib" CAIRO_CFLAGS="-I/home/btran8/install_brian/include/cairo" CAIRO_LIBS="-L/home/btran8/install_brian/lib" GTK_CFLAGS="-I/home/btran8/install_brian/include/gtk-2.0" GTK_LIBS="-L/home/btran8/install_brian/lib" LIBSOUP_CFLAGS="-I/home/btran8/install_brian/include/libsoup-2.4" LIBSOUP_LIBS="-L/home/btran8/install_brian/lib" SQLITE3_CFLAGS="-I/home/btran8/install_brian/include" SQLITE3_LIBS="-L/home/btran8/install_brian/lib" LIBXSLT_CFLAGS="-I/home/btran8/install_brian/include/libxslt" LIBXSLT_LIBS="-L/home/btran8/install_brian/lib" --disable-geolocation GSTREAMER_CFLAGS="-I/home/btran8/install_brian/include/gstreamer-0.10" GSTREAMER_LIBS="-L/home/btran8/install_brian/lib" --with-gtk=2.0 --disable-webkit2 PKG_CONFIG_PATH=/home/btran8/install_brian/lib/pkgconfig --disable-silent-rules --disable-jit UNICODE_CFLAGS="-I/home/btran8/install_brian/include/unicode" UNICODE_LIBS="-L/home/btran8/install_brian/lib" --with-unicode-backend=icu CPPFLAGS=" -I/home/btran8/install_brian/include -I/home/btran8/install_brian/include/atk-1.0 -I/home/btran8/install_brian/include/pango-1.0 -I/home/btran8/install_brian/include/gdk-pixbuf-2.0 -I/home/btran8/install_brian/include/cairo " --enable-plugin-process=no I got compilation errors: -------------------------------------- cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation In file included from /usr/include/endian.h:61, from /home/btran8/test_ginga_mips_V2/mips-4.3/bin/../mips-linux-gnu/libc/usr/include/bits/waitstatus.h:65, from /usr/include/stdlib.h:43, from ./Source/WTF/wtf/FastMalloc.h:26, from ./Source/WebCore/config.h:79, from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:26: /home/btran8/test_ginga_mips_V2/mips-4.3/bin/../mips-linux-gnu/libc/usr/include/bits/byteswap.h:21:3: error: #error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead." In file included from ./Source/WTF/wtf/DataLog.h:30, from ./Source/WTF/wtf/HashTable.h:27, from ./Source/WTF/wtf/HashMap.h:24, from ./Source/WebCore/platform/KURL.h:31, from ./Source/WebCore/dom/IconURL.h:34, from ./Source/WebCore/loader/FrameLoaderClient.h:34, from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h:33, from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:27: /usr/include/stdio.h:366: error: expected initializer before '__THROWNL' /usr/include/stdio.h:381: error: expected initializer before '__THROWNL' --------------------------------- I looked at my GNUMakefile and saw that UNICODE_CFLAGS and UNICODE_LIBS have different values from what I specified in my configure above. I do not know why. UNICODE_CFLAGS = -D_REENTRANT -I/usr/include UNICODE_LIBS = -licui18n -licuuc -licudata I changed GNUMakefile to fix the values for UNICODE_CFLAGS and UNICODE_LIBS to match my configure and tried to make again. Now I got new errors , it looks like it's trying to get X11 include files: ./Source/WebCore/bridge/npruntime_internal.h:33:31: error: X11/Xresource.h: No such file or directory I do not want X11 because I'm using DirectFB. How do I disable X11 from my build ? I do not see any configure options to disable X11 . I already specified --with-target=directfb (instead of X11). Thanks ----------------------------- Source/WebKit/gtk/WebCoreSupport/.deps/libwebkitgtk_1_0_la-FrameLoaderClientGtk.Tpo -c Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp -fPIC -DPIC -o Source/WebKit/gtk/WebCoreSupport/.libs/libwebkitgtk_1_0_la-FrameLoaderClientGtk.o In file included from ./Source/WebCore/plugins/PluginStream.h:38, from ./Source/WebCore/plugins/PluginView.h:46, from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h:35, from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:27: ./Source/WebCore/bridge/npruntime_internal.h:33:31: error: X11/Xresource.h: No such file or directory In file included from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h:35, from Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:27: ./Source/WebCore/plugins/PluginView.h:416: error: 'Pixmap' does not name a type ./Source/WebCore/plugins/PluginView.h:417: error: ISO C++ forbids declaration of 'Visual' with no type ./Source/WebCore/plugins/PluginView.h:417: error: expected ';' before '*' token ./Source/WebCore/plugins/PluginView.h:418: error: 'Colormap' does not name a type ./Source/WebCore/plugins/PluginView.h:419: error: ISO C++ forbids declaration of 'Display' with no type ./Source/WebCore/plugins/PluginView.h:419: error: expected ';' before '*' token ./Source/WebCore/plugins/PluginView.h:421: error: 'XEvent' has not been declared *
_______________________________________________ webkit-help mailing list webkit-help@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-help