Results 1 to 6 of 6

Thread: How can I install libusb and libfprint form source code?

Threaded View

  1. #1
    Join Date
    Jul 2009
    Location
    Curiitba, Brazil
    Beans
    27
    Distro
    Ubuntu

    How can I install libusb and libfprint from source code?

    Hi,

    I'm trying to install an application called fprint_demo without install any .deb package, and this application is dependent from three libs: (faster to install)libusb, (slow)imagemagick, (faster)libfprint.

    I will put all the installed things in /opt/manual and the fonts in /opt/install, I don't have and I don't want install the package libusb-dev.

    I started installing the libusb:
    Code:
    mkdir -r /opt/manual
    cd /opt/install/libusb-1.0.2/
     ./configure --prefix=/opt/manual --enable-debug-log
    .
    .
    .configure: creating ./config.status
    config.status: creating libusb-1.0.pc
    config.status: creating Makefile
    config.status: creating libusb/Makefile
    config.status: creating examples/Makefile
    config.status: creating doc/Makefile
    config.status: creating doc/doxygen.cfg
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    (no errors)
    make
    .
    .
    .
    (no errors)
    sudo checkinstall -D
    .
    .
    .
    **********************************************************************
    
     Done. The new package has been installed and saved to
    
     /opt/install/libusb-1.0.2/libusb_1.0.2-1_i386.deb
    
     You can remove it from your system anytime using:
    
          dpkg -r libusb
    
    **********************************************************************
    ls -lhR /opt/manual/
    /opt/manual/:
    total 8,0K
    drwxr-xr-x 3 root root 4,0K 2009-08-27 11:48 include
    drwxr-xr-x 3 root root 4,0K 2009-08-27 11:48 lib
    
    /opt/manual/include:
    total 4,0K
    drwxr-xr-x 2 root root 4,0K 2009-08-27 11:48 libusb-1.0
    
    /opt/manual/include/libusb-1.0:
    total 44K
    -rw-r--r-- 1 root root 41K 2009-08-27 11:48 libusb.h
    
    /opt/manual/lib:
    total 264K
    -rw-r--r-- 1 root root 201K 2009-08-27 11:48 libusb-1.0.a
    -rwxr-xr-x 1 root root  955 2009-08-27 11:48 libusb-1.0.la
    lrwxrwxrwx 1 root root   19 2009-08-27 11:48 libusb-1.0.so -> libusb-1.0.so.0.0.0
    lrwxrwxrwx 1 root root   19 2009-08-27 11:48 libusb-1.0.so.0 -> libusb-1.0.so.0.0.0
    -rwxr-xr-x 1 root root  50K 2009-08-27 11:48 libusb-1.0.so.0.0.0
    drwxr-xr-x 2 root root 4,0K 2009-08-27 11:48 pkgconfig
    
    /opt/manual/lib/pkgconfig:
    total 4,0K
    -rw-r--r-- 1 root root 255 2009-08-27 11:48 libusb-1.0.pc
    then I create the file manual.conf in /etc/ld.so.conf.d/
    Code:
    sudo gedit /etc/ld.so.conf.d/manual.conf
    and put this line
    /opt/manual/lib
    Code:
    cat /etc/ld.so.conf.d/manual.conf
    /opt/manual/lib
    Then I update the ldconfig
    Code:
    sudo ldconfig -v
    .
    .
    .
    /opt/manual/lib:
        libusb-1.0.so.0 -> libusb-1.0.so.0.0.0
    .
    .
    .
    ok until here? next post I will show the Imagemagick install.
    Last edited by MaikoID; August 27th, 2009 at 08:31 PM. Reason: links

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •