Difference between revisions of "Libusb"

From CBLFS
Jump to navigationJump to search
 
(20 intermediate revisions by 7 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://prdownloads.sourceforge.net/libusb/libusb-0.1.12.tar.gz
+
| http://prdownloads.sourceforge.net/libusb/files/libusb-{{Libusb-Version2}}/libusb-{{Libusb-Version}}/libusb-{{Libusb-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction|It aims to create a library for use by user level applications to access USB devices regardless of OS.|http://www.libusb.org/}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 12: Line 14:
 
* [[pkg-config]]
 
* [[pkg-config]]
 
=== Optional (For HTML Users Manual) ===
 
=== Optional (For HTML Users Manual) ===
* [[OpenJade]] and [[DocBook SGML DTD-4.2]]
+
* [[OpenJade]] and [[DocBook SGML DTD-4.x]]
=== Optional (For the API Documentation ===
+
=== Optional (For the API Documentation) ===
 
* [[Doxygen]] and [[Graphviz]]
 
* [[Doxygen]] and [[Graphviz]]
  
Line 20: Line 22:
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr --disable-build-docs &&
+
  ./configure --prefix=/usr &&
 
  make
 
  make
 
If you wish to build the API documentation (see the required dependencies), issue the following command:
 
 
make apidox
 
  
 
Install the package
 
Install the package
  
 
  make install
 
  make install
 
If you built the HTML user manual, install it with the following commands:
 
 
install -v -d -m755 /usr/share/doc/libusb-0.1.12/html &&
 
install -v -m644 doc/html/* /usr/share/doc/libusb-0.1.12/html
 
 
If you built the API documentation, install it with the following commands:
 
 
install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
 
install -v -m644 apidocs/html/* \
 
    /usr/share/doc/libusb-0.1.12/apidocs
 
  
 
== Multilib ==
 
== Multilib ==
Line 48: Line 35:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
    --disable-build-docs &&
+
./configure --prefix=/usr &&
 
  make
 
  make
  
Line 61: Line 48:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
     --libdir=/usr/lib32 --disable-build-docs &&
+
./configure --prefix=/usr \
 +
     --libdir=/usr/lib32 &&
 
  make
 
  make
  
Line 74: Line 62:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
     --libdir=/usr/lib64 --disable-build-docs &&
+
./configure --prefix=/usr \
 +
     --libdir=/usr/lib64 &&
 
  make
 
  make
 
If you wish to build the API documentation (see the required dependencies), issue the following command:
 
 
make apidox
 
  
 
Install the package
 
Install the package
Line 88: Line 73:
 
  ln -sfv multiarch_wrapper /usr/bin/libusb-config
 
  ln -sfv multiarch_wrapper /usr/bin/libusb-config
  
If you built the HTML user manual, install it with the following commands:
+
= Contents =
 +
 
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| libusb-config
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libusb.{so,a} and libusbpp.{so,a}
 +
|-valign="top"
 +
! Installed Directories:
 +
| /usr/share/doc/libusb-{{Libusb-Version}}
 +
|}
  
install -v -d -m755 /usr/share/doc/libusb-0.1.12/html &&
+
=== Short Descriptions ===
install -v -m644 doc/html/* /usr/share/doc/libusb-0.1.12/html
 
  
If you built the API documentation, install it with the following commands:
+
{| style="text-align: left;"
 +
|-valign="top"
 +
! libusb-config
 +
| is a script that provides the right compiler and linker flags for programs using libusb.
 +
|-valign="top"
 +
! libusb.{so,a}
 +
| libraries contain C functions for accessing USB hardware.
 +
|}
  
install -v -d -m755 /usr/share/doc/libusb-0.1.12/apidocs &&
+
[[Category:General Libs]]
install -v -m644 apidocs/html/* \
 
    /usr/share/doc/libusb-0.1.12/apidocs
 

Latest revision as of 17:44, 18 February 2013

Download Source: http://prdownloads.sourceforge.net/libusb/files/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.gz

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.
Retrieved from "?title=Libusb&oldid=21518"