我开发了一个指纹应用程序,可以捕获一个手指并将其保存到文件系统中。现在我试图用libfprint找到细节
我还使用Jlibfprint来包装app for 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.

当我尝试使用函数时,在完成所有指令后,get函数超出了范围错误。
我想我做错了:
specify the path of the source files of the libfprint
    you have just patched.

有什么建议吗?提前谢谢。

最佳答案

这是内部接口,如果要使用,必须在构建路径中找到相关的对象文件,此外,还应该在.h文件中添加函数声明。

09-16 16:10