Results 1 to 3 of 3

Thread: collect2: cannot find 'id'

  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default collect2: cannot find 'id'

    Hi guys, I've had this problem creep up once in a while mysteriously and just as mysteriously, it seems to go away (usually as a result of me starting a brand new project and copy pasting the code into the new project). Since my code is getting more complex with time, this proceedure is becoming less and less viable so I was hoping to sort this problem once and for all.

    so the error under 'Build Issues' is collect2: cannot find 'id'

    compile output has:

    collect2: cannot find 'ld'
    mingw32-make[1]: *** [debug\Windows.exe] Error 1
    mingw32-make: *** [debug] Error 2
    The process "D:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project Windows (target: Desktop)
    When executing build step 'Make'

    Interestingly enough, as far as I could tell, one of my programs was compiling totally fine until I opened a different project and tried to compile it and all of a sudden... disaster.... can't compile that project or the one that was working perfectly fine 5 minutes ago. To me it all seems like magic and voodoo is at work, but I hope good old fashioned science/logic can explain what the real problem is.

    The project files all seem to fine... have all the headers, sources, forms, target, template, and qt with appropriate things in each one.

  2. #2
    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: collect2: cannot find 'id'

    It's not id but ld. It is the GNU linker.

    It seems you have a problem with your (standard) paths.
    Try to follow the installation documentation of your tools.

  3. #3
    Join Date
    Jun 2008
    Location
    Denmark
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: cannot find 'id'

    Did you try to re-install Qt Creator? That should set up all tool paths correctly. If I remember correctly there is a check box at some point, whether you want to keep the old configuration of Qt Creator, which you don't.

Similar Threads

  1. collect2: ld returned 1 exit status
    By qtnewbie123 in forum Installation and Deployment
    Replies: 9
    Last Post: 12th July 2011, 18:51
  2. collect2: ld returned 1 exit status
    By Cucus in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd March 2011, 15:45
  3. Collect2:Id Returned 1 exit status
    By c_srikanth1984 in forum Qt Programming
    Replies: 9
    Last Post: 14th February 2010, 04:58
  4. collect2: ld returned 1 exit status
    By assismvla in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2009, 01:51
  5. collect2: ld terminated with signal 9 [Killed]
    By mailtome in forum Installation and Deployment
    Replies: 2
    Last Post: 12th July 2008, 22:57

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.