Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to compile Qt Library 4.8.5 on Ubuntu 12.10
Qt 6.11 is out! See what's new in the release blog

Failed to compile Qt Library 4.8.5 on Ubuntu 12.10

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    phuongvu_0203
    wrote on last edited by
    #1

    Hi everyone.
    I try to compile Qt library 4.8.5 on Ubuntu 12.10. I'm using g++ version

    @g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2@

    And I get this error at "make" step (./configure works well):

    @g++: error: unrecognized command line option ‘-fuse-ld=gold’@

    Could you give me some ideas?
    Thank you!

    1 Reply Last reply
    0
    • U Offline
      U Offline
      unixmania
      wrote on last edited by
      #2

      is gcc 4.7.2 support -fuse-ld=gold? is your binutils support -fuse-ld=gold?
      @
      man gcc | grep fuse-ld=gold
      @
      Also you can see:
      http://packages.ubuntu.com/lucid/binutils-gold
      http://gcc.gnu.org/ml/gcc-patches/2012-11/msg02393.html
      http://code.google.com/p/phantomjs/issues/detail?id=635
      https://bugreports.qt-project.org/browse/QTBUG-28598‎

      1 Reply Last reply
      0
      • P Offline
        P Offline
        phuongvu_0203
        wrote on last edited by
        #3

        Hi unixmania
        I have read your links as you suggested. I will try to remove

        @QMAKE_LFLAGS+=-fuse-ld=gold@
        and re-build it.
        It is building, maybe take a time. I will feedback the result when it done or any problems caused. Hope it works.
        Thank you

        1 Reply Last reply
        0
        • P Offline
          P Offline
          phuongvu_0203
          wrote on last edited by
          #4

          Thank you all, I have install Qt library successfully based on above instruction. Please mark this thread solved :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved