install.libusb

来自「This libusb version 0.1.12. libusb is a 」· LIBUSB 代码 · 共 60 行

LIBUSB
60
字号
Simple install procedure========================  % gzip -cd libusb-0.1.12.tar.gz | tar xvf -  # unpack the sources  % cd libusb-0.1.12                           # change to the toplevel directory  % ./configure                             # run the `configure' script  % make                                    # build libusb  [ Become root if necessary ]  % make install                            # install libusbThe Nitty-Gritty================The 'configure' script can be given a number of options to enableand disable various features. For a complete list, type:  ./configure --helpA few of the more important ones:*  --prefix=PREFIX         install architecture-independent files in PREFIX                           [ Defaults to /usr/local ]*  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX                           [ Defaults to the value given to --prefix ]Options can be given to the compiler and linker by settingenvironment variables before running configure. A few of the moreimportant ones: CC       : The C compiler to use CPPFLAGS : Flags for the C preprocesser such as -I and -D CFLAGS   : C compiler flagsThe most important use of this is to set theoptimization/debugging flags. For instance, to compile with nodebugging information at all, run configure as: CFLAGS=-O2 ./configure           # Bourne compatible shells (sh/bash/zsh)or, setenv CFLAGS -O2 ; ./configure  # csh and variantsInstallation directories========================The location of the installed files is determined by the --prefixand --exec-prefix options given to configure. There are also moredetailed flags to control individual directories. However, theuse of these flags is not tested.A shell script libusb-config is created during the configureprocess, and installed in the bin/ directory($exec_prefix/bin). This is used to determine the location of libusbwhen building applications.  If you move libusb after installation,it will be necessary to edit this file.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?