链接到 Leopard 的 libcrypto? [英] Linking to libcrypto for Leopard?

查看:16
本文介绍了链接到 Leopard 的 libcrypto?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Mac OS X 10.6 SDK,我的部署目标设置为 Mac OS 10.5.我正在链接到 libcrypto(AquaticPrime 需要这个)并发现我的应用程序无法在 Leopard 上启动.错误是

I am using Mac OS X 10.6 SDK and my deployment target is set to Mac OS 10.5. I'm linking to libcrypto (AquaticPrime requires this) and found out that my app doesn't launch on Leopard. The error is

dyld:库未加载:/usr/lib/libcrypto.0.9.8.dylib

我尝试了以下解决方法,但都没有奏效:

I've tried the following workarounds but none of them work:

  • 直接链接到 libcrypto.0.9.7.dylib(10.6 SDK 拒绝直接链接到 libcrypto.0.9.7.dylib.
  • 将 10.5 SDK 版本的 libcrypto.0.9.7.dylib 复制到 10.6 lib 目录并尝试与其链接(这次链接过程成功,但在 Leopard 中,应用程序仍会尝试查找不存在的 libcrypto.0.9.8.dylib 文件,因此不会启动).
  • 从 Mac OS X 10.5.8 安装复制 libcrypto.0.9.7.dylib 并链接到它(链接成功,但应用程序仍在寻找 libcrypto.0.9.8.dylib).
  • Linking directly to libcrypto.0.9.7.dylib (the 10.6 SDK refuses to link directly with libcrypto.0.9.7.dylib.
  • Copying the 10.5 SDK's version of libcrypto.0.9.7.dylib to the 10.6 lib directory and try t link with it (this time the link process succeeded but in Leopard the app still tries to lookup the non-existent libcrypto.0.9.8.dylib file and thus won't launch).
  • Copying libcrypto.0.9.7.dylib from a Mac OS X 10.5.8 installation and link with it (the link was successful but the app still looks for libcrypto.0.9.8.dylib).

有没有办法链接到这个库并且仍然使用 10.6 SDK?

Is there a way to link to this library and still use the 10.6 SDK?

谢谢.

推荐答案

您可以尝试在目标构建设置中将基础 SDK 设置为 10.5.

You could try setting the base SDK to 10.5 in your target build settings.

这篇关于链接到 Leopard 的 libcrypto?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆