[fprint] Crosscompiling libfprint

Bastien Nocera hadess at hadess.net
Wed Aug 15 07:03:34 PDT 2012


On Wed, 2012-08-15 at 03:01 -0700, Karsten Jeppesen wrote:
> Hi guys,
> 
> Well I got it compiled, but no telling is it is right yet. That will
> take me a day or two.
> 
> I used the information you gave me and concocted a workaround which is
> shown below.
> 
> Thanks a lot for all your help. I will continue monitor this list in
> case you get it more streamlined and then I will report what I see.

It's as streamlined as can be:
- make a release tarball on your development machine by running "make
dist"
- run ./configure with --enable-udev-rules=no

Then you can remove

<snip>
> %setup
> libtoolize || exit 1
> aclocal || exit 1
> autoheader || exit 1
> autoconf || exit 1
> automake -a -c || exit 1
^^^^^^^^^^^^^^^^^^^^^^^^^^

That whole section, because you're building from a tarball

> %build
> # ---- SPECIAL: Must build support application and store it for xcomp
> build
> ./configure
> make
> tar
> czf /tmp/libfprint-support-app.tar.gz ./libfprint/fprint-list-udev-rules ./libfprint/60-fprint-autosuspend.rules
^^^^^^^^^^^^
That work-around, as the file is already in the tarball.

> make clean
> # ---- build section header (22)
> # ---- End of build section header
> # ---- Additional declares to circumvent pkgconfig calls ----
> export LIBUSB_CFLAGS=" -I/usr/include/libusb-1.0"
> export LIBUSB_LIBS=" -lusb-1.0"
> export CRYPTO_CFLAGS=""
> export CRYPTO_LIBS=" -lcrypto -ldl -lz"
> export CRYPTO_LIBS=" -ldl -lz"
> #export GLIB_CFLAGS=" -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include"
> #export GLIB_LIBS=" -lglib-2.0"
> #export GLIB_LIBS="   "
> # ----
> %configure --disable-static --with-drivers=aes2501
> --enable-udev-rules=no
> # ---- SPECIAL: Retrieve the support application for host
> tar xf /tmp/libfprint-support-app.tar.gz
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That hack too.

> make %{?_smp_mflags}
> pushd doc
> make docs
> popd

Cheers




More information about the fprint mailing list