[webkit-dev] help: webkit build error on linux

lan liu michelle.liunpu at gmail.com
Fri Sep 28 18:26:20 PDT 2007


hello Mike and all,
i checked my system and found both bison and flex has been installed, the
version of bison is GNU bison 2.3, while the flex is 2.5.33,
is it the correct one for building webkit? all i misss some other things?

my step to build webkit is like this (refer to trunk/Bakefiles/Readme.txt)
cd WebKitTools/Scripts
sudo ./install-unix-extras
cd ../../JavaScriptCore
make
cd ..
cd WebCore/Projects/gdk/
make

then at the last step, i got follwoing error.

thank you and regards.
michelle

2007/9/29, Mike Hommey <mh+webkit at glandium.org>:
>
> On Fri, Sep 28, 2007 at 08:55:39PM +0800, lan liu wrote:
> > Hello webkit-dev,
> >
> > i check out the source code of version 25773 from
> > http://svn.webkit.org/repository/webkit/trunk, try to build it, then i
> got
> > following error:
> >
> > g++ -c -o obj-gnu/webcore_gdk_CSSGrammar.o -I../../../JavaScriptCore
> -I../..
> > -I../../bindings/js -I../../bridge -I../../css
> > -I../../DerivedSources/WebCore -I../../dom -I../../editing
> > -I../../ForwardingHeaders/kjs -I../../history -I../../html
> -I../../include
> > -I../../loader -I../../loader/gdk -I../../loader/icon -I../../page
> > -I../../platform -I../../platform/graphics -I../../platform/graphics/gdk
> > -I../../platform/image-decoders -I../../platform/image-decoders/bmp
> > -I../../platform/image-decoders/gif -I../../platform/image-decoders/ico
> > -I../../platform/image-decoders/jpeg -I../../platform/image-decoders/png
> > -I../../platform/image-decoders/xbm -I../../platform/image-decoders/zlib
> > -I../../platform/network -I../../platform/network/gdk -I../../rendering
> > -I../../xml -DENABLE_XSLT=1 -DLINUX -DUSE_CONSERVATIVE_GC=0
> > -DHAVE_FUNC_ISNAN -D_THREAD_SAFE -pthread -g -I../../platform/gdk
> > -I../../platform/network/gdk -DBUILDING_GDK__ -DBUILDING_CAIRO__
> > -Iplatform/gdk -Iplatform/graphics/cairo -DENABLE_XPATH
> > -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2
> > -I/usr/include/freetype2    -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0
> /include
> > -I/usr/include/atk-1.0 -I/usr/include/cairo
> > -I/usr/include/pango-1.0-I/usr/include/glib-
> > 2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/cairo    -fPIC -DPIC
> > -fno-rtti -fno-exceptions   -MTobj-gnu/webcore_gdk_CSSGrammar.o -MF`echo
> > obj-gnu/webcore_gdk_CSSGrammar.o | sed -e 's,\.o$,.d,'` -MD
> > ../../DerivedSources/WebCore/CSSGrammar.cpp
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function
> 'int
> > WebCore::getPropertyID(const char*, int)':
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86:
> > error£º'findProp': identifier not found
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:90:
> error£ºinvalid
> > use of undefined type 'const struct WebCore::props'
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:86:
> error£ºforward
> > declaration of 'const struct WebCore::props'
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y: In function
> 'int
> > getValueID(const char*, int)':
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111:
> > error£º'findValue' identifier not found
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:115:
> > error£ºinvalid use of undefined type 'const struct css_value'
> > /home/michelle/Study/Webkit/trunk/WebCore/css/CSSGrammar.y:111:
> > error£ºforward declaration of 'const struct css_value'
> > make: *** [obj-gnu/webcore_gdk_CSSGrammar.o] error1
>
> It looks like you don't have bison installed. You should also install
> flex if not already installed.
>
> Mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/webkit-dev/attachments/20070929/48da4688/attachment.html


More information about the webkit-dev mailing list