简体   繁体   English

我可以在Embarcadero C ++ Builder中为Android(* .so)建立共享库吗?

[英]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.

相关问题 如何将 UnicodeString 复制到 C++Builder Android 应用程序中的 wchar_t 数组? - How can I copy a UnicodeString to a wchar_t array in a C++Builder Android app? 使用Embarcadero C ++ Builder中的Android Sip堆栈进行来电 - Incomings Call with Android Sip stack in Embarcadero C++ builder 如何将文本文件加载到Tmemo(Android,C ++ Builder) - How to load a Text file into Tmemo(Android,C++Builder) C ++ Builder:如何在Android应用程序中显示重音符号? - C++Builder: How to display accent in Android Application? 如何在 C++Builder 10.4 中重新绘制 FMX Android 组件? - How to Repaint FMX Android components in Form in C++Builder 10.4? 在Android Studios C文件中调用共享库(.so)方法 - Call shared library (.so) methods within Android Studios C files 如何为Android构建外部C ++库(静态或共享)? - How to build an external c++ library (static or shared) for android? 如何将 android 的 boost 构建为支持 c++11 的共享库 - How to build boost for android as shared library with c++11 support Android NDK构建共享库 - Android NDK build shared library 使用几张jpg图片时,c++builder android找不到资源 - Resource not found with c++builder android when using several jpg pictures
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM