Results 1 to 10 of 10

Thread: collect2: ld returned 1 exit status

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: collect2: ld returned 1 exit status

    sudo apt-get install build-essential
    is always a good start...

  2. #2
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status

    What if the error is cannot find -lssl and ssl package is installed? and on /usr/lib there is a libssl.a ; libssl.so ; libssl.so.0.9.8 and libssl3.so

    The .so files only libssl3.so doesn't have the shortcut arrow on the icon.

    same thing happened to -ljpeg... and I have libjpeg installed too.

    What could be wrong?

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: collect2: ld returned 1 exit status

    Development libraries / packages are often marked as libwhatever-dev, so maybe try to install libjpeg-dev, or something like that.

  4. #4
    Join Date
    Dec 2010
    Posts
    71
    Thanks
    26
    Platforms
    Windows

    Default Re: collect2: ld returned 1 exit status

    Quote Originally Posted by stampede View Post
    Development libraries / packages are often marked as libwhatever-dev, so maybe try to install libjpeg-dev, or something like that.
    It is already installed... every libjpeg or libssl related package is installed... except for libjpeg62-dev as libjpeg8-dev is installed... but I also tried with 62 and still same error...

  5. #5
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: collect2: ld returned 1 exit status

    Can you post the compilation command ? Make sure that you specify correct path for the linker with -L"path to lib" switch

Similar Threads

  1. Collect2:Id Returned 1 exit status
    By c_srikanth1984 in forum Qt Programming
    Replies: 9
    Last Post: 14th February 2010, 04:58
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. 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
  •  
Qt is a trademark of The Qt Company.