indic-text-renderer using harfbuzz and freetype

随声附和 提交于 2019-12-05 00:51:48

问题


I am developing an Android application which should support Devanagari Fonts. So I downloaded indic-text-renderer and tried to run it as per the instruction stated here and managed to successfully compile the NDK part.

But when I try to run the Android project on a gingerbread emulator I get following error

java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]:    33 cannot locate 'hb_buffer_create'...

I tried many solution but none of them helped me.

How can I fix this?

Has anyone used indic-text-renderer in Android successfully?

If yes, please help me and provide a complete Android project (if possible) as I am trying to install and compile this library. It needs to make, javah, autoconfig and many more...


回答1:


I had the same problem. I managed to solve it by statically link harfbuzz to my ndk library. So try to statically link harfbuzz to your ndk lib. e.g. in CMake:

add_library(harfbuzz SHARED ...)

to

add_library(harfbuzz STATIC ...)


来源:https://stackoverflow.com/questions/19947688/indic-text-renderer-using-harfbuzz-and-freetype

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!