View Poll Results: Was this Post useful??

Voters
2. You may not vote on this poll
  • Yes

    1 50.00%
  • No

    0 0%
  • Not at All

    1 50.00%
  • Very Helpful

    0 0%
Results 1 to 12 of 12

Thread: collect2: ld returned 1 exit status error

  1. #1
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Question collect2: ld returned 1 exit status error

    Hi All,
    I was trying to compile the phonon music player Application in Qt Creator. I get this error "collect2: ld returned 1 exit status".
    I dont know what this means. I am newbie to Qt. Can someone help me out??


    Thanks in Advance

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: collect2: ld returned 1 exit status error

    it generally means some dynamic library was not found... may be your qt installation is not compiled with phonon support..

    Edit.
    are you using qt sdk on windows?

  3. #3
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status error

    how do i enable phonon support??

  4. #4
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status error

    Yes i am using Qt on Windows

  5. #5
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: collect2: ld returned 1 exit status error

    tell your system details first..
    EDIT:
    on windows you need to download the qt sources and download the directx sdk and compile qt with msvc
    EDIT2
    for mingw there is some recent posts in the forums... search mingw+phonon

  6. #6
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status error

    Windows Xp Professional, Version 2002 , Service Pack 2

  7. #7
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: collect2: ld returned 1 exit status error

    see my edited posts above

  8. #8
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status error

    Ok ill download the DireectX SDK and compile Qt with mvsc as u suggested.. Ill get back to you if still the error persists

  9. #9
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: collect2: ld returned 1 exit status error

    hey .. wait a min brother..
    first make sure its phonon errror only... does the linker error say about it?
    are you using the open source edition of Qt? if yes then proceed to dl directx...

  10. #10
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status error

    Yes i am using Open Sorce Edition of Qt. Also Cant be compile it using Qt creator only. should we have to use msvc?? is it necessary

  11. #11
    Join Date
    Jul 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status error

    I have downloaded abd installed Direct 9.x. but still the error persisists?? i am not using msvc, instead using QT creator?

  12. #12
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: collect2: ld returned 1 exit status error

    Quote Originally Posted by gmsk19 View Post
    I have downloaded abd installed Direct 9.x. but still the error persisists?? i am not using msvc, instead using QT creator?
    for now directx phonon backend can only be compiled with msvc...
    one more thing... QtCreater is not a compiler its an IDE.. it compiles with mingw.
    nokia will add support for msvc compiler in next version.

    make sure you configure qt with the right options..(-phonon -phononSOMETHINGbackend i dont remember exactly) ...

    if you want to play around with mingw than search this forum and the forum wiki... it contains several posts on how to use mingw with phonon...

Similar Threads

  1. error: collect2: ld returned 1 exit status
    By srohit24 in forum Qt Programming
    Replies: 3
    Last Post: 1st December 2009, 06:32
  2. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  3. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13

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.