【问题标题】:Installing libfprint and wrapping with Jlibfprint安装 libfprint 并使用 Jlibfprint 进行包装
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-13
      • 1970-01-01
      • 2010-12-06
      • 2014-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多