1. 먼저 libusb-1.0.0.tar.gz 소스를 다운받고 컴파일하여 설치한다.
http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.0/
위의 주소로 가서 다운 받으면 된다.
$ .configure
$ make; make install
모두 설치가 끝나면 git로 다음을 다운받는다.
2. git clone https://github.com/mkorenkov/ipad_charge.git
역시 make, make install
설치과정.
[webterror@localhost Downloads]$ tar xvfj libusb-1.0.0.tar.bz2 libusb-1.0.0/ libusb-1.0.0/config.guess libusb-1.0.0/ChangeLog libusb-1.0.0/configure.ac libusb-1.0.0/libusb-1.0.pc.in libusb-1.0.0/README libusb-1.0.0/Makefile.am libusb-1.0.0/ltmain.sh libusb-1.0.0/PORTING libusb-1.0.0/Makefile.in libusb-1.0.0/doc/ libusb-1.0.0/doc/Makefile.am libusb-1.0.0/doc/Makefile.in libusb-1.0.0/doc/doxygen.cfg.in libusb-1.0.0/config.sub libusb-1.0.0/examples/ libusb-1.0.0/examples/dpfp_threaded.c libusb-1.0.0/examples/Makefile.am libusb-1.0.0/examples/dpfp.c libusb-1.0.0/examples/Makefile.in libusb-1.0.0/examples/lsusb.c libusb-1.0.0/NEWS libusb-1.0.0/compile libusb-1.0.0/libusb/ libusb-1.0.0/libusb/core.c libusb-1.0.0/libusb/Makefile.am libusb-1.0.0/libusb/libusbi.h libusb-1.0.0/libusb/sync.c libusb-1.0.0/libusb/Makefile.in libusb-1.0.0/libusb/os/ libusb-1.0.0/libusb/os/linux_usbfs.h libusb-1.0.0/libusb/os/linux_usbfs.c libusb-1.0.0/libusb/descriptor.c libusb-1.0.0/libusb/libusb.h libusb-1.0.0/libusb/io.c libusb-1.0.0/depcomp libusb-1.0.0/THANKS libusb-1.0.0/INSTALL libusb-1.0.0/aclocal.m4 libusb-1.0.0/missing libusb-1.0.0/TODO libusb-1.0.0/config.h.in libusb-1.0.0/install-sh libusb-1.0.0/AUTHORS libusb-1.0.0/COPYING libusb-1.0.0/configure [webterror@localhost Downloads]$ cd libusb-1.0.0 [webterror@localhost libusb-1.0.0]$ ls aclocal.m4 ChangeLog config.guess config.sub configure.ac depcomp examples install-sh libusb-1.0.pc.in Makefile.am missing PORTING THANKS AUTHORS compile config.h.in configure COPYING doc INSTALL libusb ltmain.sh Makefile.in NEWS README TODO [webterror@localhost libusb-1.0.0]$ make make: *** No targets specified and no makefile found. Stop. [webterror@localhost libusb-1.0.0]$ sudo ./configure [sudo] password for webterror: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for inline... inline checking whether gcc and cc understand -c and -o together... yes checking operating system... Linux 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: executing depfiles commands config.status: executing libtool commands [webterror@localhost libusb-1.0.0]$ sudo make make all-recursive make[1]: Entering directory `/home/webterror/Downloads/libusb-1.0.0' Making all in libusb make[2]: Entering directory `/home/webterror/Downloads/libusb-1.0.0/libusb' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo -c -o libusb_1_0_la-core.lo `test -f 'core.c' || echo './'`core.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo -c core.c -fPIC -DPIC -o .libs/libusb_1_0_la-core.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo -c core.c -o libusb_1_0_la-core.o >/dev/null 2>&1 mv -f .deps/libusb_1_0_la-core.Tpo .deps/libusb_1_0_la-core.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-descriptor.lo -MD -MP -MF .deps/libusb_1_0_la-descriptor.Tpo -c -o libusb_1_0_la-descriptor.lo `test -f 'descriptor.c' || echo './'`descriptor.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-descriptor.lo -MD -MP -MF .deps/libusb_1_0_la-descriptor.Tpo -c descriptor.c -fPIC -DPIC -o .libs/libusb_1_0_la-descriptor.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-descriptor.lo -MD -MP -MF .deps/libusb_1_0_la-descriptor.Tpo -c descriptor.c -o libusb_1_0_la-descriptor.o >/dev/null 2>&1 mv -f .deps/libusb_1_0_la-descriptor.Tpo .deps/libusb_1_0_la-descriptor.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-io.lo -MD -MP -MF .deps/libusb_1_0_la-io.Tpo -c -o libusb_1_0_la-io.lo `test -f 'io.c' || echo './'`io.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-io.lo -MD -MP -MF .deps/libusb_1_0_la-io.Tpo -c io.c -fPIC -DPIC -o .libs/libusb_1_0_la-io.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-io.lo -MD -MP -MF .deps/libusb_1_0_la-io.Tpo -c io.c -o libusb_1_0_la-io.o >/dev/null 2>&1 mv -f .deps/libusb_1_0_la-io.Tpo .deps/libusb_1_0_la-io.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-sync.lo -MD -MP -MF .deps/libusb_1_0_la-sync.Tpo -c -o libusb_1_0_la-sync.lo `test -f 'sync.c' || echo './'`sync.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-sync.lo -MD -MP -MF .deps/libusb_1_0_la-sync.Tpo -c sync.c -fPIC -DPIC -o .libs/libusb_1_0_la-sync.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-sync.lo -MD -MP -MF .deps/libusb_1_0_la-sync.Tpo -c sync.c -o libusb_1_0_la-sync.o >/dev/null 2>&1 mv -f .deps/libusb_1_0_la-sync.Tpo .deps/libusb_1_0_la-sync.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-linux_usbfs.lo -MD -MP -MF .deps/libusb_1_0_la-linux_usbfs.Tpo -c -o libusb_1_0_la-linux_usbfs.lo `test -f 'os/linux_usbfs.c' || echo './'`os/linux_usbfs.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-linux_usbfs.lo -MD -MP -MF .deps/libusb_1_0_la-linux_usbfs.Tpo -c os/linux_usbfs.c -fPIC -DPIC -o .libs/libusb_1_0_la-linux_usbfs.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -MT libusb_1_0_la-linux_usbfs.lo -MD -MP -MF .deps/libusb_1_0_la-linux_usbfs.Tpo -c os/linux_usbfs.c -o libusb_1_0_la-linux_usbfs.o >/dev/null 2>&1 mv -f .deps/libusb_1_0_la-linux_usbfs.Tpo .deps/libusb_1_0_la-linux_usbfs.Plo /bin/sh ../libtool --tag=CC --mode=link gcc -fvisibility=hidden -std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -pthread -g -O2 -o libusb-1.0.la -rpath /usr/local/lib libusb_1_0_la-core.lo libusb_1_0_la-descriptor.lo libusb_1_0_la-io.lo libusb_1_0_la-sync.lo libusb_1_0_la-linux_usbfs.lo -lrt libtool: link: gcc -shared .libs/libusb_1_0_la-core.o .libs/libusb_1_0_la-descriptor.o .libs/libusb_1_0_la-io.o .libs/libusb_1_0_la-sync.o .libs/libusb_1_0_la-linux_usbfs.o -lrt -pthread -pthread -Wl,-soname -Wl,libusb-1.0.so.0 -o .libs/libusb-1.0.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libusb-1.0.so.0" && ln -s "libusb-1.0.so.0.0.0" "libusb-1.0.so.0") libtool: link: (cd ".libs" && rm -f "libusb-1.0.so" && ln -s "libusb-1.0.so.0.0.0" "libusb-1.0.so") libtool: link: ar cru .libs/libusb-1.0.a libusb_1_0_la-core.o libusb_1_0_la-descriptor.o libusb_1_0_la-io.o libusb_1_0_la-sync.o libusb_1_0_la-linux_usbfs.o libtool: link: ranlib .libs/libusb-1.0.a libtool: link: ( cd ".libs" && rm -f "libusb-1.0.la" && ln -s "../libusb-1.0.la" "libusb-1.0.la" ) make[2]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0/libusb' Making all in doc make[2]: Entering directory `/home/webterror/Downloads/libusb-1.0.0/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0/doc' make[2]: Entering directory `/home/webterror/Downloads/libusb-1.0.0' make[2]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0' make[1]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0' [webterror@localhost libusb-1.0.0]$ sudo make install Making install in libusb make[1]: Entering directory `/home/webterror/Downloads/libusb-1.0.0/libusb' make[2]: Entering directory `/home/webterror/Downloads/libusb-1.0.0/libusb' test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib" /bin/sh ../libtool --mode=install /usr/bin/install -c 'libusb-1.0.la' '/usr/local/lib/libusb-1.0.la' libtool: install: /usr/bin/install -c .libs/libusb-1.0.so.0.0.0 /usr/local/lib/libusb-1.0.so.0.0.0 libtool: install: (cd /usr/local/lib && { ln -s -f libusb-1.0.so.0.0.0 libusb-1.0.so.0 || { rm -f libusb-1.0.so.0 && ln -s libusb-1.0.so.0.0.0 libusb-1.0.so.0; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libusb-1.0.so.0.0.0 libusb-1.0.so || { rm -f libusb-1.0.so && ln -s libusb-1.0.so.0.0.0 libusb-1.0.so; }; }) libtool: install: /usr/bin/install -c .libs/libusb-1.0.lai /usr/local/lib/libusb-1.0.la libtool: install: /usr/bin/install -c .libs/libusb-1.0.a /usr/local/lib/libusb-1.0.a libtool: install: chmod 644 /usr/local/lib/libusb-1.0.a libtool: install: ranlib /usr/local/lib/libusb-1.0.a libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- test -z "/usr/local/include/libusb-1.0" || /bin/mkdir -p "/usr/local/include/libusb-1.0" /usr/bin/install -c -m 644 'libusb.h' '/usr/local/include/libusb-1.0/libusb.h' make[2]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0/libusb' make[1]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0/libusb' Making install in doc make[1]: Entering directory `/home/webterror/Downloads/libusb-1.0.0/doc' make[2]: Entering directory `/home/webterror/Downloads/libusb-1.0.0/doc' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0/doc' make[1]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0/doc' make[1]: Entering directory `/home/webterror/Downloads/libusb-1.0.0' make[2]: Entering directory `/home/webterror/Downloads/libusb-1.0.0' make[2]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig" /usr/bin/install -c -m 644 'libusb-1.0.pc' '/usr/local/lib/pkgconfig/libusb-1.0.pc' make[2]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0' make[1]: Leaving directory `/home/webterror/Downloads/libusb-1.0.0' [webterror@localhost libusb-1.0.0]$ cd ..