[webkit-help] Problems building on Ubuntu

Julien Chaffraix julien.chaffraix at gmail.com
Wed Jan 13 21:27:34 PST 2010


Hi,

On Wed, Jan 13, 2010 at 10:41 AM, Stanislas <stanworld at gmail.com> wrote:
> I try to build Webkit on Ubuntu
>
> but i got this error : gcc: language c++ n'est pas reconnu

I would say that your compiler does not recognize the "-x c++" option.

> /usr/bin/perl -I/home/developpement/projects/webkit-1.0.1/WebCore/bindings/scripts
> /home/developpement/projects/webkit-1.0.1/WebCore/dom/make_names.pl
> --tags /home/developpement/projects/webkit-1.0.1/WebCore/html/HTMLTagNames.in
> --attrs /home/developpement/projects/webkit-1.0.1/WebCore/html/HTMLAttributeNames.in
> --namespace HTML --namespacePrefix xhtml --cppNamespace WebCore
> --namespaceURI "http://www.w3.org/1999/xhtml" --wrapperFactory
> --attrsNullNamespace --output ./DerivedSources
> Unknown option: namespace
> Unknown option: namespaceprefix
> Unknown option: cppnamespace
> Unknown option: namespaceuri
> Unknown option: wrapperfactory
> Unknown option: attrsnullnamespace
> gcc: language c++ n'est pas reconnu
> gcc: /home/developpement/projects/webkit-1.0.1/WebCore/html/HTMLTagNames.in:
> fichier d'entr��e d'��dition de liens n'est pas utilis�� parce
> l'��dition de lien n'a pas ��t�� faite
> No elements
> make: *** [DerivedSources/HTMLNames.cpp] Erreur 255

WebCore/dom/make_names.pl is calling gcc to process some files. We are
forcing gcc to recognize them as C++ (using -x c++). I think dropping
the '-x' option should work as we just need the C-style
pre-processing. If not, you will need to look at the option you have
to force your gcc to do so or just use g++ directly.

In any case, just tweak this line in WebCore/dom/make_name.pl:

my $preprocessor = "/usr/bin/gcc -E -P -x c++";

Regards,
Julien


More information about the webkit-help mailing list