Linking issue with skia library

135 views
Skip to first unread message

Pavel Dey

unread,
Mar 18, 2021, 3:08:35 PM3/18/21
to skia-d...@googlegroups.com
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

Pavel Dey

unread,
Mar 18, 2021, 4:30:59 PM3/18/21
to skia-discuss
Found it. There was a mismatch between the library and the header files version. Probably Skia git repo has been updated with new header/source files. But the library was compiled earlier and had old code inside. 
Sorry for spamming. Kindly ignore this post.

Thanks
Pavel

Reply all
Reply to author
Forward
0 new messages