Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could I wrap c++ library to Adobe Air native extension for mobile IOS/Android

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?

like image 827
Shvilam Avatar asked Oct 05 '22 13:10

Shvilam


2 Answers

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.

like image 64
onosendai Avatar answered Oct 10 '22 01:10

onosendai


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.

like image 36
Eduardo Avatar answered Oct 10 '22 02:10

Eduardo