Hello, we are a start-up that would love to use Affdex in our new iOS app.
We ran into an Undefined Symbol build error when trying to build a XCode project using Affdex in Unity while integrating with third party video-streaming library in Siwft (we tried a few of video-streaming libraries, all run into the same error).
Looks like the problem has something to do with NEON optimization being activated in OpenCV used by Affdex, but not in libpng (a dependency OpenCV and the third-part video streaming library share) while
png_init_filter_functions_neon in this case, for some reason is not added to the source (
ENABLE_NEON is not
ON?), similar to what is described in this git issue: https://github.com/opencv/opencv/issues/7600 in OpenCV.
Would love to know which OpenCV Affdex is using and how can we go around this problem. Thank you.
Here is the full error log:
Undefined symbols for architecture arm64:
"_png_init_filter_functions_neon", referenced from:
_png_read_filter_row in libaffdex-native.a(pngrutil.o)
“OBJC_CLASS$_ALAssetsLibrary”, referenced from:
objc-class-ref in libaffdex-native.a(cap_ios_video_camera.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)