-
Hello, adt has a new target ane -platform "Linux-x86-64" since Air 33.1.1.533, but how to create an Air Native Extensions for Linux (Ubuntu for example) ? I tried to create a static library *.a in C like iOS (and a shared library *.so too)
but it doesn't work ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 14 replies
-
Any help ? |
Beta Was this translation helpful? Give feedback.
-
Hi It should be a dynamic/shared library, .so file. If you're using C++ then the only thing to watch out for is the name decoration, so e.g. declare any exported functions as For example:
Looking at one of our demos, we had the build commands of:
I believe the Also just looking at your code: we don't clean up any memory so you may want to free the structure that you malloced, within the context finalizer. Or if you know all the details at compile-time then you can use static/global memory for them, e.g.
|
Beta Was this translation helpful? Give feedback.
-
I tried but I have this error to compile a captive runtime : |
Beta Was this translation helpful? Give feedback.
-
the same code work on Windows, I don't understand...
for the ane need a platform.xml ? |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will wait an update. |
Beta Was this translation helpful? Give feedback.
-
Great job, adl and adt work now, thanks. |
Beta Was this translation helpful? Give feedback.
-
Great, adl return |
Beta Was this translation helpful? Give feedback.
-
The Captive Runtime created on Ubuntu 20 doesn't work on Ubuntu 16. and adl return : |
Beta Was this translation helpful? Give feedback.
-
On Fedora 34, I have this error : I need to install : |
Beta Was this translation helpful? Give feedback.
Great job, adl and adt work now, thanks.
Any news about Ubuntu 20 ?