On Tue, Jun 5, 2012 at 7:26 PM, Vaclav Peroutka <[email protected]> wrote: > I am trying to cross compile libftdi for Windows on Ubuntu Linux. My > Toolchain-mingw32.cmake contains following: > #SET(LIBUSB_INCLUDE_DIR /media/sf_temp_VBox/libusbx-1.011/include/libusbx-1.0) > SET(LIBUSB_INCLUDE_DIR /usr/i586-mingw32msvc/include/ddk) > SET(LIBUSB_LIBRARIES > /media/sf_temp_VBox/libusbx-1.011/MinGW32/static/libusb-1.0.a) > > [ 10%] Building C object src/CMakeFiles/ftdi.dir/ftdi.c.obj > In file included from /home/vaclavpe/projects/libftdi-0.20/src/ftdi.c:36:
Take note that libftdi-0.20 depends on libusb-0.1 API. So for Windows, you need libusb-win32. You can download libusb-win32 1.2.6.0 binary from Sourceforge and then you need to rename lusb_usb0.h to usb.h. libusbx 1.0.11 and libusb-1.0.9 are for libftdi-1.0 which is in libftdi git. -- Xiaofan -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
