Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

using 3rd-party SDK SendAnywhere with dependency from dylib

$
0
0

I'm using 3rd-party SDK SendAnywhere, presented as libXXX.a, that strongly require: libstdc++.dylib libz.dylib If I would use this SDK in XCode, that would be no problem. But I'm using RAD Studio. How to use dynamic libraries for IOS in RAD Studio Delphi Firemonkey? Are there any workarounds? XCode allows to link dylib while developing IOS app. I found needed libraries inC:\Users\Username\Documents\Embarcadero\Studio\SDKs\iPhoneOS9.0.sdk\usr\lib. Following Embarcadero's way of using static libraries I need create FakeLoader function under implementation section for being visible by my app like this: implementation procedure FakeLoader; cdecl; external 'libXXX.a' name 'OBJC_CLASS_$_XXX'; According to http://docwiki.embarcadero.com/RADStudio/Seattle/en/Procedures_and_Functions#Specifying_Dependencies_of_the_Library I copied founded libraries to project directory. Than I changed record: procedure FakeLoader; cdecl; external 'libXXX.a' name 'OBJC_CLASS_$_XXX' dependency 'libstdc++.dylib', 'libz.dylib'; IDE said: [DCC Error] E2597 ld: library not found for -llibstdc++.dylib [DCC Error] E2597 ld: library not found for -llibz.dylib Then I tried full path: procedure MyFunction; cdecl; external 'libXXX.a' name 'OBJC_CLASS_$_XXX' dependency 'C:\Users\Username\Documents\Embarcadero\Studio\SDKs\iPhoneOS9.0.sdk\usr\lib\libz.dylib'; Then I tried without ".dylib", then - without prefix "lib", but IDE said again and again: [DCC Error] E2597 ld: library not found for -llibz.dylib [DCC Error] E2597 ld: library not found for -llibz [DCC Error] E2597 ld: library not found for -lz etc... After that my guessworks ended. What's wrong? Explain, please.


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>