Hi there, bit of a lengthy one but am hoping someone could point me in the right direction. I am attempting to interop with OpenCV’s provided iOS framework, which includes an obj-C interface to their C++ codebase. I read that due to the header files being written in C++, this was not currently possible (
https://youtrack.jetbrains.com/issue/KT-47713), although having read around, I have seen people stating they have successfully interfaced from native with C++ via Obj-C.
I then read that excludeDependentModules can be used to filter headers/modules which are not included directly, and using this the cinterop tool seemed to succeed. The Native headers were generated and available from the common iOS code, though when I build the shared module pod, and attempt to use it in my iOS project, I am getting linker errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Imgcodecs", referenced from:
objc-class-ref in shared(result.o)
"_OBJC_CLASS_$_Imgproc", referenced from:
objc-class-ref in shared(result.o)
"_OBJC_CLASS_$_Core", referenced from:
objc-class-ref in shared(result.o)
I am wondering whether anyone can say with confidence that this can/cannot currently be done.
Thanks, Michael