<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hello,<br><br></div>i've done the DESTDIR=/tmp/blah make install and copied all the files to the android root folder. now my android has a /usr directory with:<br>
<br>ls -lR /usr/ <br><br>/usr/:<br>drwxrwxr-x root root 2013-02-07 00:38 local<br><br>/usr//local:<br>drwxrwxr-x root root 2013-02-07 00:38 include<br>
drwxrwxr-x root root 2013-02-07 00:38 lib<br><br>/usr//local/include:<br>drwxrwxr-x root root 2013-02-07 00:38 libfprint<br><br>/usr//local/include/libfprint:<br>-rw-rw-rw- root root 13350 2013-01-16 02:40 fprint.h<br>
<br>/usr//local/lib:<br>-rw-rw-rw- root root 1350652 2013-01-16 02:40 libfprint.a<br>-rwxrwxrwx root root 1198 2013-01-16 02:40 <a href="http://libfprint.la">libfprint.la</a><br>lrwxrwxrwx root root 2013-02-07 00:38 libfprint.so -> libfprint.so.0.0.0<br>
lrwxrwxrwx root root 2013-02-07 00:38 libfprint.so.0 -> libfprint.so.0.0.0<br>-rwxrwxrwx root root 916520 2013-01-16 02:40 libfprint.so.0.0.0<br>drwxrwxr-x root root 2013-02-07 00:38 pkgconfig<br>
<br>/usr//local/lib/pkgconfig:<br>-rw-rw-rw- root root 246 2013-01-16 02:40 libfprint.pc<br><br><br></div>and a /lib directory<br><br></div>I've added the /usr/local/lib directory to my LD_LIBRARY_PATH so i have <br>
<br>/usr/local/lib:/vendor/lib:/system/lib<br><br></div>I copied the examples folder and tried to run the shell scripts but same problem happens. also, i've tried to run the binaries from examples/.libs directory but same problem happens too: <br>
<br>root@android:/data/examples/.libs # ./verify_live <br>/system/bin/sh: ./verify_live: No such file or directory<br><br></div>if i run "file" over the verify_live binary i got<br>
<br>
verify_live: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=0x0cf9d9391e05971a01604fa68a2661bfc3df41b5, not stripped<br><br></div>When i run the binaries on qemu it says:<br>
<br></div>fp:debug [fp_init]<br></div>Failed to initialize libfprint<br><br></div>I think it is because some problem with my libusb on qemu.<br><br>Any ideas?<br><br></div>Kind regards,<br>Daniel<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 12:06 PM, Bastien Nocera <span dir="ltr"><<a href="mailto:hadess@hadess.net" target="_blank">hadess@hadess.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, 2013-01-15 at 11:57 -0200, Daniel Neis Araujo wrote:<br>
> Ok,<br>
><br>
><br>
> here is what i did (i am using x86_64 as host):<br>
><br>
><br>
> * used qemu to boot an ubuntu for arm<br>
> (<a href="https://wiki.ubuntu.com/ARM/RootfsFromScratch" target="_blank">https://wiki.ubuntu.com/ARM/RootfsFromScratch</a>)<br>
><br>
> * build libfprint as on x64_86<br>
><br>
> * build the examples<br>
><br>
> * started some of them ok<br>
><br>
> * copied the examples and the library to my rowboat android jellybean<br>
> 4.1.2 (i can run a prebuilt busybox-armel6 on it)<br>
><br>
> * tried to run the examples but received "sh: verify: File not found"<br>
<br>
</div>I'm guessing you copied them by hand? Then you just copied the libtool<br>
stubs :)<br>
<br>
Do:<br>
DESTDIR=/tmp/blah make install<br>
and copy the files from there. Or fish out the library and binaries from<br>
the .libs/ directories.<br>
<div class="im"><br>
> * tried add libfprint directory to LD_LIBRARY_PATH but same problem<br>
><br>
> maybe i should copy all libfprint dependencies to android too?<br>
<br>
</div>You copied libool stubs (shell scripts that are used so that uninstalled<br>
binaries are launched against the uninstalled library).<br>
<br>
Cheers<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Daniel Neis Araujo
</div>