Difference between revisions of "Libusb"
From CBLFS
Jump to navigationJump to searchChipster19 (talk | contribs) |
|||
Line 22: | Line 22: | ||
Compile the package: | Compile the package: | ||
− | ./configure --prefix=/usr | + | ./configure --prefix=/usr && |
make | make | ||
− | |||
− | |||
− | |||
− | |||
Install the package | Install the package | ||
Line 33: | Line 29: | ||
make install | make install | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Multilib == | == Multilib == | ||
Line 55: | Line 37: | ||
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ | ||
− | ./configure --prefix=/usr | + | ./configure --prefix=/usr && |
− | |||
make | make | ||
Line 70: | Line 51: | ||
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ | ||
./configure --prefix=/usr \ | ./configure --prefix=/usr \ | ||
− | --libdir=/usr/lib32 | + | --libdir=/usr/lib32 && |
make | make | ||
Line 84: | Line 65: | ||
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ | CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ | ||
./configure --prefix=/usr \ | ./configure --prefix=/usr \ | ||
− | --libdir=/usr/lib64 | + | --libdir=/usr/lib64 && |
make | make | ||
− | |||
− | |||
− | |||
− | |||
Install the package | Install the package | ||
Line 96: | Line 73: | ||
mv -v /usr/bin/libusb-config{,-64} && | mv -v /usr/bin/libusb-config{,-64} && | ||
ln -sfv multiarch_wrapper /usr/bin/libusb-config | ln -sfv multiarch_wrapper /usr/bin/libusb-config | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Contents = | = Contents = |
Revision as of 07:37, 7 November 2009
Download Source: | http://prdownloads.sourceforge.net/libusb/libusb-1.0.9.tar.gz |
---|
Contents
Introduction to Libusb
It aims to create a library for use by user level applications to access USB devices regardless of OS.
Project Homepage: http://www.libusb.org/
Dependencies
Optional
Optional (For HTML Users Manual)
Optional (For the API Documentation)
Non-Multilib
Compile the package:
./configure --prefix=/usr && make
Install the package
make install
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ ./configure --prefix=/usr && make
Install the package
make install && mv -v /usr/bin/libusb-config{,-32}
N32
Compile the package:
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ ./configure --prefix=/usr \ --libdir=/usr/lib32 && make
Install the package
make install && mv -v /usr/bin/libusb-config{,-n32}
64Bit
Compile the package:
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ ./configure --prefix=/usr \ --libdir=/usr/lib64 && make
Install the package
make install && mv -v /usr/bin/libusb-config{,-64} && ln -sfv multiarch_wrapper /usr/bin/libusb-config
Contents
Installed Programs: | libusb-config |
---|---|
Installed Libraries: | libusb.{so,a} and libusbpp.{so,a} |
Installed Directories: | /usr/share/doc/libusb-1.0.9 |
Short Descriptions
libusb-config | is a script that provides the right compiler and linker flags for programs using libusb. |
---|---|
libusb.{so,a} | libraries contain C functions for accessing USB hardware. |