[webkit-qt] qtwebkit build issue

luying pan luying.pan at gmail.com
Fri Jan 28 12:57:40 PST 2011


Thanks for the response. That only works the objects that are generated from
the same makefile, but I think my general problem is that my compiler is too
old. Do you know any ways to use gcc44 instead of gcc? I tried "export
CC=gcc44" before running ./build-webkit -qt command, but that didn't help.

Luying

On Mon, Jan 24, 2011 at 9:04 PM, <benjamin.poulain at nokia.com> wrote:

> Quick fix: disable the "-Werror" :)
> Real fix: find why you GCC behave like that and send a patch for WebKit.
>
> cheers,
> Benjamin
>
> ________________________________________
> From: webkit-qt-bounces at lists.webkit.org [
> webkit-qt-bounces at lists.webkit.org] on behalf of ext luying pan [
> luying.pan at gmail.com]
> Sent: Monday, January 24, 2011 11:01 PM
> To: webkit-qt at lists.webkit.org
> Subject: [webkit-qt] qtwebkit build issue
>
> Hi,
>  I'm trying to build qt the the latest webkit.org<http://webkit.org>
> nightly source code on Centos OS following the instruction on this page
> https://svn.webkit.org/wiki/BuildingQtOnLinux. I have qt4.7 built and
> installed successfully. However when I try to build from webkit source. I
> get the following errors:
>
> g++ -c -pipe -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align
> -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter
> -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn
> -Winit-self -Werror -fno-stack-protector -O3 -fvisibility=hidden
> -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DBUILDING_QT__=1 -DNDEBUG
> -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB
> -DQT_SHARED -I/usr/local/Trolltech/Qt-4.6.3/mkspecs/linux-g++
> -I../../../../Source/JavaScriptCore
> -I/usr/local/Trolltech/Qt-4.6.3/include/QtCore
> -I/usr/local/Trolltech/Qt-4.6.3/include -I../../../../Source/JavaScriptCore
> -I../../../../Source -I/home/bagside/WebKit-r75891
> -I../../../../Source/JavaScriptCore/assembler
> -I../../../../Source/JavaScriptCore/bytecode
> -I../../../../Source/JavaScriptCore/bytecompiler
> -I../../../../Source/JavaScriptCore/debugger
> -I../../../../Source/JavaScriptCore/interpreter
> -I../../../../Source/JavaScriptCore/jit
> -I../../../../Source/JavaScriptCore/parser
> -I../../../../Source/JavaScriptCore/pcre
> -I../../../../Source/JavaScriptCore/profiler
> -I../../../../Source/JavaScriptCore/runtime
> -I../../../../Source/JavaScriptCore/wtf
> -I../../../../Source/JavaScriptCore/wtf/gobject
> -I/home/bagside/WebKit-r75891/Source/JavaScriptCore/wtf/symbian
> -I../../../../Source/JavaScriptCore/wtf/unicode
> -I../../../../Source/JavaScriptCore/yarr
> -I../../../../Source/JavaScriptCore/API
> -I../../../../Source/JavaScriptCore/ForwardingHeaders -Igenerated
> -I../../include/QtWebKit -I../../../../Source/JavaScriptCore/pcre
> -Igenerated -I. -I../../../../Source/JavaScriptCore -I. -o
> obj/release/DateMath.o ../../../../Source/JavaScriptCore/wtf/DateMath.cpp
> cc1plus: warnings being treated as errors
> ../../../../Source/JavaScriptCore/wtf/PassOwnArrayPtr.h: In instantiation
> of ‘WTF::PassOwnArrayPtr<char>’:
> ../../../../Source/JavaScriptCore/wtf/DateMath.h:159:   instantiated from
> here
> ../../../../Source/JavaScriptCore/wtf/PassOwnArrayPtr.h:81: warning:
> lowering visibility of ‘WTF::PassOwnArrayPtr<U> WTF::adoptArrayPtr(U*) [with
> U = U, T = char]’ to match its type
> gmake: *** [obj/release/DateMath.o] Error 1
>
> I need to build from webkit source because I need a bug fix from the latest
> nightly build. Please help.
>
> Luying
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110128/c9121663/attachment.html>


More information about the webkit-qt mailing list