Hello team,
I've built skia library and then using it in an Android app. The app source code calls skia APIs JNI. While building the code using android studio I'm getting this following linking error
/Volumes/SathyaDisk/PavelWork/se-video-editor/SEVideoEditor/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs-debug/se_videoeditor_jni/SeVideoEditorJniInterface.o: In function `SkRuntimeEffect::Make(SkString)':
/Volumes/SathyaDisk/PavelWork/skia/skia/include/effects/SkRuntimeEffect.h:93: undefined reference to `SkRuntimeEffect::Make(SkString, SkRuntimeEffect::Options const&)'
/Volumes/SathyaDisk/PavelWork/se-video-editor/SEVideoEditor/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs-debug/se_videoeditor_jni/SeVideoEditorJniInterface.o: In function `SkImageFilters::Image(sk_sp<SkImage>, SkSamplingOptions const&)':
/Volumes/SathyaDisk/PavelWork/skia/skia/include/effects/SkImageFilters.h:205: undefined reference to `SkImageFilters::Image(sk_sp<SkImage>, SkRect const&, SkRect const&, SkSamplingOptions const&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/tadepall/Android/sdk/ndk/21.1.6352462/build/core/build-binary.mk:725: /Volumes/SathyaDisk/PavelWork/se-video-editor/SEVideoEditor/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/libse_videoeditor_jni.so] Error 1
From the error message it appears like the skia library doesn't have the implementation of certain functions. But with the same library I'm able to build the app in another system. Not able to understand what exactly is going on.
Any help will be appreciated.
Thanks in advance.
Pavel