On Sun, Jan 13, 2013 at 12:04 PM, Matthias Janke
<matthias.janke@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi All,
>
> I've appended a patch that changes the include from libusb.h to
> libusb-1.0/libusb.h so that one hasn't to manually append
> -I/usr/include/libusb-1.0 to cmdline or makefile for projects that only
> use libftdi. Any thoughts?
I myself am not against this patch. But the official stand of the
libusb.org maintainer (Peter Stuge) is against using this method,
rather he suggests using pkg-config to avoid manually specifying
libusb-1.0 header file directory.
Under native Windows build using MinGW (or MinGW-w64), you may
still need to manually specify the include directory though. Or you
need to use pkg-config-lite or things like that.
http://sourceforge.net/projects/pkgconfiglite/
I myself tend to use CMake-GUI if using native Windows MinGW build
and specify the libusb-1.0 (or libusbx) include directory and lib manually.
--
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|