我开发了一个指纹应用程序,它捕获手指并将其保存到文件系统中。现在我尝试使用libfprint
找到细节我也使用Jlibfprint来包装java部分的应用程序。在自述文件文件中,有一些调用函数的说明
int fpi_img_compare_print_data(struct fp_print_data *enrolled_print,
struct fp_print_data *new_print)
说明是:
1. To give the ability to compare two fingerprint data in Jlibfprint
you probabily need to patch the library in this way:
- in libfprint find the file img.c and open it
- find the function
int fpi_img_compare_print_data(struct fp_print_data *enrolled_print,
struct fp_print_data *new_print)
- add the attribute "API_EXPORTED" before the definition of the function:
API_EXPORTED int fpi_img_compare_print_data(struct fp_print_data *enrolled_print,
struct fp_print_data *new_print)
2. Open the jlibfprint_jni/Makefile file, search for the ADD_INCLUDE variable (near line 53),
and specify the JDK include library and the path of the source files of the libfprint
you have just patched. Please take care to add also this subfolder: libfprint/nbis/include.
当我尝试使用该功能完成所有说明后,我得到功能超出了范围错误。
我想我在这里做错了什么:
specify the path of the source files of the libfprint
you have just patched.
有什么建议吗?提前谢谢。
答案 0 :(得分:1)
这是内部接口,如果你想使用你必须在你的构建路径中找到相关的目标文件,此外,你应该在.h文件中添加函数声明。