1

我开发了一个指纹应用程序,它可以捕获手指并将其保存到文件系统中。现在我尝试使用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.

完成所有说明后,当我尝试使用该功能时,我得到function is out of scope 错误

我想我在这里做错了什么:

specify the path of the source files of the libfprint 
    you have just patched.

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

4

1 回答 1

1

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

于 2013-09-27T01:39:48.103 回答