Can I wrap a C++ library to Adobe Air native extension IOS/Android?
I have a C++ library that was written by third party. I want to use that library for an adobe air native extension for mobile? Will I be able to do it. If so, where can I find some guidelines?
I'll attempt to answer the Android part of the question.
I haven't seen it spelled out explicitly in the Adobe Air documentation that this is possible, but in the Adobe Help docs for Adobe Air, section Packaging a native extension: Building the native library, it says:
Android native libraries: When you use the Android NDK, provide a shared library with a filename as follows (etc)
The NDK as you may know lets you to implement parts of your Android app using native-code languages including C++.
I take it this reference in the docs means it's possible. As a starting point, I'd get familiar with the details of the NDK.
While this is not a detailed guideline on how to proceeed, I hope it provides a pointer in the right direction.
An alternative to building an ANE to wrap the C++ library is to compile it into Flash bytecode, using the new Adobe "C++ to Flash" compiler (previously known as Alchemy). It can produce a swf that you can later call from ActionScript. Here is a tutorial that explains how to do it. And here is its official website.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With