[webkit-help] Problems building on Ubuntu

Stanislas stanworld at gmail.com
Thu Jan 14 05:26:59 PST 2010


it seem the good point,
i was with a alias of gcc -> gcc-3.4
while gcc-4.3 was installed
i changed the alias to target on gcc-4.3
this allow to go a little more far, but i got the same error after,
with another file...

 after i altered the line of WebCore/dom/make_name.pl:

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

and in WebCore/bindings/scripts/IDLParser.pm
i changed too a similar line.

now the building go much more far. but i got new troubles in linking
with libsoup...
 this is another problems that i am going to explore

thanks a lot


2010/1/14 Julien Chaffraix <julien.chaffraix at gmail.com>:
> 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