Hi Artik, please try this one
Ok, I tested and indeed the 1st issue is solved and it works properly thanks! For compilation I used previous header file from Android SDK.
Thanks a lot.
Second issue however wasn't solved. I still can't use any RTTI in the library that is liked to ASI driver - it still links to libstdc++ that is not compatible to latest NDK libc++.
If you can't compile it without using libstdc++ Please make sure that you at least add it to some kind of known issues so at least user can be aware of totally unexpected RTTI failures - it was very hard for me to find what the problem was and create a workaround for it since virtually all my code uses modern C++ and RTTI.
I managed to workaround it in my library by removing any RTTI from the driver wrapped - and since it is dynamically loaded itself I can live with it for now.
Here pointer to the problem
$ readelf -d release/obj/arm64-v8a/libASICamera2.so
Dynamic section at offset 0x1e2bd0 contains 30 entries:
Tag Type Name/Value
...
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so]
...
Thanks again,
Artyom (artik) Beilis