• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: libcrypto linking problem in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libcrypto linking problem in Leopard


  • Subject: Re: libcrypto linking problem in Leopard
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 03 Jan 2014 09:37:51 +0100

Le 3 janv. 2014 à 08:15, Appa Rao Mulpuri <email@hidden> a écrit :

> Hi List,
>
> I am using Mac OS X 10.8 SDK for the development and deployment target set to Mac OS 10.5. I am using libcrypto dylib in my code base, application is working fine in all the OS, except in Leopard. Application is failing to launch in Leopard and giving the Library not loaded error.
>
> Library not found: /usr/lib/libcrypto.0.9.8.dylib
> Reason: no suitable image found.
>
> I tried to build the application on mavericks with libcrypto.0.9.7.dylib by updating the libcrypto.dylib alias in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib, but no luck. Its giving me compile time errors saying symbols not found.
>
> I primarily wants to move to Mavericks for my regular development and take advantage of LLVM compiler for its greater speed (compared with GCC).
>
> http://stackoverflow.com/questions/2616738/linking-to-libcrypto-for-leopard gone though this url. Solution is available if you are using the 10.6 SDK for development. To make it work with 10.6 SDK + Xcode 5, copied 10.6 and 10.7 sdks into /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/, but unfortunately Xcode 5 is not displaying them in the Build settings window.
>
> Is there any way to get rid of the libCrypto linking issue?
>
> Regards,



The simplest advice is don't use libcrypto.

If you just need simple functionality, you may have a look at the CommonCrypto API which is partially available on 10.5 ( I think Digest and Cryptors where available at this time).

If you need something more complex, you should use the Security framework, unfortunately the whole 10.5 API (CDSA) has been deprecated in favor of a cleaner but incompatible API.

So you will have to write the code twice if you want to support 10.5 and be futur proof.


-- Jean-Daniel





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: libcrypto linking problem in Leopard
      • From: Charles Srstka <email@hidden>
  • Prev by Date: Re: libcrypto linking problem in Leopard
  • Next by Date: Status Bar problem
  • Previous by thread: Re: libcrypto linking problem in Leopard
  • Next by thread: Re: libcrypto linking problem in Leopard
  • Index(es):
    • Date
    • Thread