如何使用3rd party框架取决于dylib for Delphi Firemonkey中的IOS

编程入门 行业动态 更新时间:2024-10-24 02:02:18
本文介绍了如何使用3rd party框架取决于dylib for Delphi Firemonkey中的IOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用的是librd.a形式的第三方SDK,它需要

I'm using 3rd-party SDK, presented as libXXX.a, that needs

  • libstdc ++.dylib
  • libz.dylib

2017年5月15日回答.终于我找到了写下解决方案的时间.如果您的第三方SDK依赖于某些动态库,请执行以下操作:

15/05/2017 ANSWER. Finally I have found a time to write down my solution. If your 3rd party SDK depends from some dynamic libraries, do this:

  • 例如,动态库称为"libSuperLibrary.dylib".
  • 例如,第三方SDK被称为"SuperFramework.framework".
  • 转到项目-选项-Delphi编译器-框架搜索路径"
  • 按"C:\ path \ to \ my \ frameworks \"之类的路径填充字段
  • 转到项目-选项-链接-传递给LD的选项已链接"
  • 通过字符串"-ObjC -framework SuperFramework -lSuperLibrary"填充字段
  • 编译
  • 推荐答案

    IOS不允许动态库.使用XCode进行构建时,它会自动链接所需的静态库,但仅在最终应用程序中才会链接,如果您构建静态库则不会.相反,您可以告诉Delphi处理依赖关系.

    IOS does not allow dynamic libraries. When building with XCode it automatically links the needed static libraries, but only in the final app, not if you build a static library. Instead you can tell Delphi to handle the dependencies.

    在libXXX.a的pascal头文件中(您将函数导入到Delphi中),添加如下所示的 dependency :

    In the pascal header file for libXXX.a (where you import the functions to Delphi) add dependency like this:

    function MyFunction; cdecl; external libXXX.a name 'myfunction' dependency 'stdc++'

    我已经将自己与"c ++"(对应于"libc ++.dylib")和"stdc ++"(对应于"libstdc ++.dylib")一起使用,但是如果它与z库.

    I have used it my self with 'c++' (which corresponds to 'libc++.dylib') and 'stdc++' (corresponds to 'libstdc++.dylib'), but you will have to try your self if it works with the z library.

    在此处了解更多信息: docwiki.embarcadero/RADStudio/Seattle/zh-CN/Procedures_and_Functions#Specifying_Dependencies_of_the_Li

    Read more here: docwiki.embarcadero/RADStudio/Seattle/en/Procedures_and_Functions#Specifying_Dependencies_of_the_Library

    更多推荐

    如何使用3rd party框架取决于dylib for Delphi Firemonkey中的IOS

    本文发布于:2023-11-26 17:49:01,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1634569.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:如何使用   框架   party   dylib   Firemonkey

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!