title: Installing libfprint and wrapping with Jlibfprint
body: <p>I developed a fingerprint application which captures a finger and saved it to the file system. Now I am try to find the minutiae using the <a href="http://www.freedesktop.org/wiki/Software/fprint/libfprint/" rel="nofollow">libfprint</a></p>
  
  <p>I am also using <a href="https://code.google.com/p/jlibfprint/" rel="nofollow">Jlibfprint</a> to wrap the app for java part. In the <strong>ReadMe</strong> file there is some instructions for calling a function</p>
  
  <pre><code>int fpi_img_compare_print_data(struct fp_print_data *enrolled_print,
      struct fp_print_data *new_print)
  </code></pre>
  
  <p>Instructions is:</p>
  
  <pre><code> 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.
  </code></pre>
  
  <p>After completing all instructions when I try to use the function I get <strong>function was out of scope error</strong>.</p>
  
  <p>I think I am doing something wrong here :</p>
  
  <pre><code>specify the path of the source files of the libfprint 
      you have just patched.
  </code></pre>
  
  <p>Any suggestions? Thanks in advance.</p>