[英]Can I build a shared library for Android (*.so) in Embarcadero C++Builder?
I am trying to create a shared library, using Embarcadero's C++Builder and RAD Studio 10.2. 我正在尝试使用Embarcadero的C ++ Builder和RAD Studio 10.2创建一个共享库。 I created a C++Builder "Dynamic Linked Library" project. 我创建了一个C ++ Builder“动态链接库”项目。 When I specify the target platforms to build for, the only options are 32-bit Windows, 64-bit Windows, and OS X. I need to be able to build the library for the Android (Linux) platform as well. 当我指定要构建的目标平台时,唯一的选择是32位Windows,64位Windows和OSX。我还必须能够为Android(Linux)平台构建库。 How can I accomplish this? 我该怎么做?
At this time, RADStudio (including Delphi and C++Builder) does not support the creation of custom .so
libraries for Android (only consuming them). 目前,RADStudio(包括Delphi和C ++ Builder) 不支持为Android 创建自定义.so
库(仅使用它们)。 Per the documentation , .so
files can be created for Linux (and .dylib
files for OSX/iOS) by creating a Delphi-style Package instead of a Dynamic-Link Library. 根据文档 ,可以通过创建Delphi样式的包而不是Dynamic-Link库来为Linux创建.so
文件(对于OSX / iOS为.dylib
文件)。
RADStudio-created Android apps are compiled as .so
files (because they are based on the NDK, so the real app is just a small Java stub class that loads and executes the .so
at runtime), but that is the extent of Embarcadero's .so
generation on Android. RADStudio创建的Android应用程序被编译为.so
文件(因为它们基于NDK,因此真正的应用程序只是一个小的Java存根类,可在运行时加载并执行.so
),但这就是Embarcadero的范围.so
在Android上产生。 Compiling custom .so
libraries for Android is simply not supported yet. 尚不支持为Android编译自定义.so
库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.