libusb
编译libusb1.0.so 及libtelink-usb.so步骤:
-
进入
cd android/jni
目录 -
export NDK=/home/zewen/Android/Sdk/ndk-bundle
-
Run "$NDK/ndk-build" after that, The libusb library, examples and tests can then be found in: "android/libs/$ARCH"
-
其中
libtelink-usb.so
的源文件在libtelink-usb/
路径下, 涉及到的编译文件为android/jni/Android.mk
,android/jni/libtelink-usb.mk
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
- Hans de Goede hdegoede@redhat.com
- Xiaofan Chen xiaofanc@gmail.com
- Ludovic Rousseau ludovic.rousseau@gmail.com
- Nathan Hjelm hjelmn@cs.unm.edu
- Chris Dickens christopher.a.dickens@gmail.com
(Please use the mailing list rather than mailing developers directly)