Results 1 to 8 of 8

Thread: Complier issues while trying to build webkit on QT4 creator

  1. #1
    Join Date
    Jan 2011
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Complier issues while trying to build webkit on QT4 creator

    Hi,

    I have downloaded webkit source code using svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit. I am using ubuntu 10.10.
    After this opened webkit.pro file in qt4 creator and tried to build the webkit project.
    While building i found that libQtWebKit.so.4.9.0 and libQtWebKit.so.4.9 is not getting generated and i found the below complier errors.

    obj/debug/moc_qwebinspector.o obj/debug/qrc_WebCore.o obj/debug/qrc_WebKit.o obj/debug/qrc_InspectorBackendStub.o -L../JavaScriptCore/debug -L/usr/X11R6/lib -L/usr/lib -ljscore -lXrender -lsqlite3 -lQtXmlPatterns -lQtGui -lQtNetwork -lQtCore -lpthread -lXext -lX11 -lm
    collect2: ld terminated with signal 9 [Killed]
    make[1]: *** [../lib/libQtWebKit.so.4.9.0] Error 1
    make[1]: Leaving directory `/home/divya/WebKit/WebKitBuild/Release/WebCore'
    make: *** [sub-WebCore-make_default] Error 2
    make: Leaving directory `/home/divya/WebKit/WebKitBuild/Release'
    The process "/usr/bin/make" exited with code %2.
    Error while building project WebKit (target: Desktop)
    When executing build step 'Make'

    Note - I am trying to debug it with debug option by making below changes in WebCore.pro
    # Remove the following 2 lines if you want debug information in WebCore
    #CONFIG -= separate_debug_info
    #CONFIG += no_debug_info

    I made sure that i have installed below packages -

    # g++
    # make
    # libglib2.0-dev
    # libSM-dev
    # libxrender-dev
    # libfontconfig1-dev
    # libxext-dev
    # libfreetype6-dev
    # libx11-dev
    # libxcursor-dev
    # libxfixes-dev
    # libxft-dev
    # libxi-dev
    # libxrandr-dev

    (Attaching the Logs)

    Please help me resolve these complier errors.
    Last edited by Divya; 30th January 2011 at 16:35. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Complier issues while trying to build webkit on QT4 creator

    Looks like your ld crashed on you with SIGKILL. This has nothing to do with WebKit or Qt but is strictly related to your binutils. You might be running out of memory or something like that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Complier issues while trying to build webkit on QT4 creator

    Note, also, that the version of Webkit shipped with Qt has (usually) been heavily modified before bundling. Building Webkit is a nightmare, and ranges from difficult to impossible, so the Qt folks try to come up with an approach that works to save their customers the headache. Even with that additional effort, Webkit often fails to build on some platforms or with some compilers.

    Although Webkit provides a lot of nice features, it is a monolithic, utterly un-modular block of code that introduces a host of dependencies into a project. It would be welcome if Qt could find a more streamlined, workable solution.

  4. #4
    Join Date
    Jan 2011
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Complier issues while trying to build webkit on QT4 creator

    @wysota,

    Thanks for your input.

    I have verified with the binutils , from which i got to know that only the utillities are related to the binutils and the same was working fine for building Webkit+qt without debug symbols.

    Regarding the memory i have enough amount memory ( checked #df -lh ) which was showing more than10GB.

    Please suggest me any solution you find.

    Regards
    Divya

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Complier issues while trying to build webkit on QT4 creator

    By memory I mean RAM and not disk space.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Complier issues while trying to build webkit on QT4 creator

    Building Qt Webkit with -debug is a big pain in the butt memory wise.
    I can only do that on one pc. My laptop fails to build Qt Webkit with debug symbols.
    You need a truck load of RAM memory.

    I wish Qt split it up more instead of putting all that code in one library.

  7. #7
    Join Date
    Jan 2011
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Complier issues while trying to build webkit on QT4 creator

    My Laptop has 3G RAM. Will it help ?

    My Idea is to debug Wekbit with help of QT as framework ?
    Can i get any of your suggestions which can help me debug webkit and get its code flow ?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Complier issues while trying to build webkit on QT4 creator

    3G is probably not enough to link WebKit in debug mode. Maybe there are some memory optimizations you can enable at build time.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. exe Build Issues
    By hojoff79 in forum Newbie
    Replies: 1
    Last Post: 19th January 2011, 05:16
  2. Build QT webkit For Arm Embedded ?
    By Thành Viên Mới in forum Qt Webkit
    Replies: 0
    Last Post: 13th January 2011, 06:22
  3. Mac OSX Build Issues
    By ETweedale in forum Qt Programming
    Replies: 2
    Last Post: 23rd July 2010, 15:41
  4. Replies: 1
    Last Post: 13th January 2010, 23:35
  5. QT Creator Linking issues
    By sgrant327 in forum Qt Programming
    Replies: 14
    Last Post: 16th December 2009, 15:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.