Results 1 to 3 of 3

Thread: Linking 3rd party libs on Mac OS X

  1. #1
    Join Date
    May 2009
    Posts
    63
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Linking 3rd party libs on Mac OS X

    Hi,

    I'm new to developing on Mac OS.
    I'm wanting to use a few OpenSLL functions in my app.

    I've put the following in the .pro file

    Qt Code:
    1. LIBS += -L/usr/lib
    2. LIBS += -llibssl
    To copy to clipboard, switch view to plain text mode 

    However, when linking I get this error:

    ld: library not found for -llibssl
    I appears that I have no idea how to link to libssl.dylib
    Any idea what I'm doing wrong?

    Thanks!

  2. #2
    Join Date
    Jun 2010
    Location
    India
    Posts
    50
    Thanks
    1
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Linking 3rd party libs on Mac OS X

    hi,

    -lssl should work ? ( Not -llibssl)

  3. The following user says thank you to agathiyaa for this useful post:

    jonks (21st June 2010)

  4. #3
    Join Date
    May 2009
    Posts
    63
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Linking 3rd party libs on Mac OS X

    Yes you're right.

    Now I'm getting different errors, such as

    Undefined symbols _EVP_cleanup
    I've already #included <openssl/evp.h> into the cpp files that call these functions.
    (the app also compiles and links on Windows)

    Any ideas?
    Last edited by jonks; 21st June 2010 at 06:10.

Similar Threads

  1. Static Link 3rd party libs
    By ^NyAw^ in forum General Programming
    Replies: 1
    Last Post: 13th July 2010, 19:10
  2. Statically linking QT libs on symbian
    By bullwinkle in forum Newbie
    Replies: 1
    Last Post: 6th February 2010, 10:25
  3. Linking Third party Libraries
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2009, 06:18
  4. using third party libs
    By jay in forum Qt Programming
    Replies: 13
    Last Post: 14th April 2009, 15:52
  5. Linking against different Libs
    By AlphaWolf in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2009, 15:25

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.