Results 1 to 4 of 4

Thread: qt 4.8 from git doesn't compile

  1. #1

    Default qt 4.8 from git doesn't compile

    Hi i am trying to compile Qt 4.8 from gitorious repo but I get this during compilation:

    Qt Code:
    1. g++: error: unrecognized command line option ‘-fuse-ld=gold’
    To copy to clipboard, switch view to plain text mode 

    it actually happens during this compilation/linking:

    http://pastebin.com/U6bGdZgx

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: qt 4.8 from git doesn't compile

    Gentoo applies this patch:
    Qt Code:
    1. $ cat /usr/portage/x11-libs/qt-webkit/files/qt-webkit-4.8.1-no-use-ld-gold.patch
    2. diff -urN qt-everywhere-opensource-src-4.8.1.orig/src/3rdparty/webkit/Source/common.pri qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/common.pri
    3. --- qt-everywhere-opensource-src-4.8.1.orig/src/3rdparty/webkit/Source/common.pri 2012-04-28 12:39:16.884473572 +0200
    4. +++ qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/common.pri 2012-04-28 12:41:14.245006363 +0200
    5. @@ -3,13 +3,6 @@
    6. contains(JAVASCRIPTCORE_JIT,yes): DEFINES+=ENABLE_JIT=1
    7. contains(JAVASCRIPTCORE_JIT,no): DEFINES+=ENABLE_JIT=0
    8.  
    9. -linux-g++ {
    10. -isEmpty($$(SBOX_DPKG_INST_ARCH)):exists(/usr/bin/ld.gold) {
    11. - message(Using gold linker)
    12. - QMAKE_LFLAGS+=-fuse-ld=gold
    13. -}
    14. -}
    15. -
    16. # We use this flag on production branches
    17. # See https://bugs.webkit.org/show_bug.cgi?id=60824
    18. CONFIG += production
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qt 4.8 from git doesn't compile

    Yeap ... me too.
    I was building it on Debian Wheezy and got this:
    Qt Code:
    1. ...
    2. g++: error: unrecognized command line option ‘-fuse-ld=gold’
    3. g++: error: unrecognized command line option ‘-fuse-ld=gold’
    4. g++: error: unrecognized command line option ‘-fuse-ld=gold’
    5. make[2]: *** [../../../../../../lib/libQtWebKit.so.4.9.3] Error 1
    6. make[2]: Leaving directory `/home/gt/Documentos/qt-everywhere-opensource-src-4.8.3/src/3rdparty/webkit/Source/WebKit/qt'
    7. make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
    8. make[1]: Leaving directory `/home/gt/Documentos/qt-everywhere-opensource-src-4.8.3/src/3rdparty/webkit/Source'
    9. make: *** [sub-webkit-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    What am i doing wrong?

  4. #4

    Default Re: qt 4.8 from git doesn't compile

    Quote Originally Posted by ChrisW67 View Post
    Gentoo applies this patch:
    Qt Code:
    1. $ cat /usr/portage/x11-libs/qt-webkit/files/qt-webkit-4.8.1-no-use-ld-gold.patch
    2. diff -urN qt-everywhere-opensource-src-4.8.1.orig/src/3rdparty/webkit/Source/common.pri qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/common.pri
    3. --- qt-everywhere-opensource-src-4.8.1.orig/src/3rdparty/webkit/Source/common.pri 2012-04-28 12:39:16.884473572 +0200
    4. +++ qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/common.pri 2012-04-28 12:41:14.245006363 +0200
    5. @@ -3,13 +3,6 @@
    6. contains(JAVASCRIPTCORE_JIT,yes): DEFINES+=ENABLE_JIT=1
    7. contains(JAVASCRIPTCORE_JIT,no): DEFINES+=ENABLE_JIT=0
    8.  
    9. -linux-g++ {
    10. -isEmpty($$(SBOX_DPKG_INST_ARCH)):exists(/usr/bin/ld.gold) {
    11. - message(Using gold linker)
    12. - QMAKE_LFLAGS+=-fuse-ld=gold
    13. -}
    14. -}
    15. -
    16. # We use this flag on production branches
    17. # See https://bugs.webkit.org/show_bug.cgi?id=60824
    18. CONFIG += production
    To copy to clipboard, switch view to plain text mode 
    This worked, thanks Chris.

Similar Threads

  1. Project suddenly doesn't compile
    By vieraci in forum Qt Programming
    Replies: 16
    Last Post: 7th June 2016, 07:12
  2. Replies: 0
    Last Post: 1st August 2010, 15:40
  3. Qt 4.5.2 doesn't compile - namespace: QtCppIntegration
    By kaizimir in forum Installation and Deployment
    Replies: 1
    Last Post: 15th July 2009, 22:23
  4. Replies: 27
    Last Post: 25th July 2007, 19:23
  5. TIP: If Qt4.1 debug compile doesn't work...
    By pthomas in forum Newbie
    Replies: 3
    Last Post: 13th January 2006, 14:36

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
  •  
Qt is a trademark of The Qt Company.