Results 1 to 10 of 10

Thread: Collect2:Id Returned 1 exit status

  1. #1
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Collect2:Id Returned 1 exit status

    I am getting this error "Collect2:Id Returned 1 exit status" when i build an application, i even tried to build example progrm but got the same error-"Collect2:Id Returned 1 exit status". I am using Qt SDK
    Plz help me.
    srikanth

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Collect2:Id Returned 1 exit status

    could you post the errors before this?

  3. #3
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Re: Collect2:Id Returned 1 exit status

    This is the only error it is showing.
    Even for the example project the only single line error.

  4. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Collect2:Id Returned 1 exit status

    ok..without the whole error log, its just like shooting in the dark..my guess would be applications you are trying to build are already running..kill them and build again..this has happened to many users earlier and might be in your case too..

  5. #5
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Re: Collect2:Id Returned 1 exit status

    Actually I am using Qt SDK 4.5, where i do my programming in Qt Creator, In Build Issues I am Getting

    "Collect2:Id Returned 1 exit status"

    and in Compile Output

    /opt/qtsdk-2009.01/qt/lib/libQtGui.so:Undefined reference to 'FcFreeTypeQuearyFace'
    make[1]: leaving directory'/root/part1'
    Collect2:Id Returned 1 exit status
    This is what i got in compile output.
    Last edited by c_srikanth1984; 3rd April 2009 at 07:02. Reason: Spelling Mistake

  6. #6
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Collect2:Id Returned 1 exit status

    do you have freetype and fontconfig libs installed?
    Try (ubuntu, kubuntu):
    Qt Code:
    1. sudo apt-get install libfreetype6
    2. sudo apt-get install libfreetype6-dev
    3. sudo apt-get install fontconfig
    4. sudo apt-get install libfontconfig1
    5. sudo apt-get install libfontconfig1-dev
    To copy to clipboard, switch view to plain text mode 
    Last edited by faldzip; 3rd April 2009 at 08:50.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  7. #7
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Re: Collect2:Id Returned 1 exit status

    I am very new to Qt I dont know How check these libs r there or not.
    I am Using
    Operating System: Linux Enterprise Server 5.1
    Qt Version: Qt SDK 4.5
    ODE : Qt Creator

    I downloaded the Open Source Qt SD from Qt Software site.
    Where i got a bin file.
    I have installed it in /opt folder
    plz help me, have i followed the correct installation procedure
    Last edited by c_srikanth1984; 6th April 2009 at 05:17.

  8. #8
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Collect2:Id Returned 1 exit status

    just go to the linux terminal and implement the commands mentioned by faldzip

  9. #9
    Join Date
    Feb 2010
    Location
    Muscat
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Collect2:Id Returned 1 exit status

    I too am very new to Qt. I'm getting the same error but am on a mac. Would anyone know how to find the freetype and fontconfig libs for Mac? Thank you

  10. #10
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Collect2:Id Returned 1 exit status

    Have you tried to clean/rebuild your application?Did the error show when you compiled it for the first time? Maybe if you backtrack your steps you can find out what is causing the error.

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  2. ld returned 1 exit status.....An unsual error
    By shamik in forum Qt Programming
    Replies: 4
    Last Post: 23rd November 2006, 10:14

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.