苔丝两找不到libpng.so [英] tess-two can't find libpng.so
问题描述
我按照苔丝两对建筑的说明
Github上
I have followed building instructions for tess-two on Github
我建立苔丝个使用NDK成功和进口图书馆
我试图运行设置在同一存储库中的测试应用程序,但每当应用程序启动时它提供了以下异常:
该错误造成一次新TessBaseAPI();
被调用。
I build tess-two using NDK successfully and imported the library
I am trying to run the test application provided on the same repository but whenever the application starts it gives the following exception:
That error is caused once new TessBaseAPI();
is called.
dlopen("/data/app-lib/com.datumdroid.android.ocr.simple-2/liblept.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libpng.so" needed by "liblept.so"; caused by load_library(linker.cpp:745): library "libpng.so" not found
任何人都可以提供帮助的?
Can anyone help with that?
推荐答案
我按照梅德采夫和放大器的建议; thannks他说,解决我的问题也。
I have followed suggestion of Dmitry Zaitsev & thannks to him , solved my problem also .
请更新苔丝两库如下项目中的TessBaseAPI.java:
Please update your TessBaseAPI.java from tess-two library project as below :
static {
System.loadLibrary("png");
System.loadLibrary("lept");
System.loadLibrary("tess");
nativeClassInit();
}
构建苔丝个更新这些文件之后的项目。在我的情况我已经使用Eclipse构建它。
希望它应该解决您的问题也是如此。
Build tess-two project after updating these file . In my case I have build it using eclipse. Hope it should solve your problem as well.
这篇关于苔丝两找不到libpng.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!