【发布时间】:2013-08-09 07:51:02
【问题描述】:
我开发了一个指纹应用程序,它可以捕获手指并将其保存到文件系统中。现在我尝试使用libfprint 查找细节
我还使用Jlibfprint 来为java 部分包装应用程序。在 ReadMe 文件中有一些调用函数的说明
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.
完成所有说明后,当我尝试使用该函数时,我得到 function was out of scope 错误。
我认为我在这里做错了:
specify the path of the source files of the libfprint
you have just patched.
有什么建议吗?提前致谢。
【问题讨论】:
标签: java c api fingerprint libusb