On Fri, Aug 26, 2011 at 10:30 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> I remember Michael Plante mentioned that libfti was able to be built under
> Visual Studio. So out of curiosity, I used CMake to generate the VS2010
> project file (32bit) and indeed the library build is okay. Only 2
> examples can be built though.
>
> The generated dll file is ftdi.dll and the generated lib file is
> ftdi.lib but I think the proper name is actually libftdi.dll
> and libftdi.lib (for MSVC).
>
> It might be good to fix the MSVC build as well for the
> examples.
For libusb-1.0, the library build failed. Maybe this has something
to do with the calling convention of libusb-1.0 (default is stdcall).
Error 372 error C2440: 'function' : cannot convert from 'void (__cdecl
*)(libusb_transfer *)' to 'libusb_transfer_cb_fn'
D:\work\libftdi\libftdi-1.0\src\ftdi.c 1417 1 ftdi-static
Error 376 error C2440: 'function' : cannot convert from 'void (__cdecl
*)(libusb_transfer *)' to 'libusb_transfer_cb_fn'
D:\work\libftdi\libftdi-1.0\src\ftdi.c 1500 1 ftdi-static
Error 806 error C2440: 'function' : cannot convert from 'void (__cdecl
*)(libusb_transfer *)' to 'libusb_transfer_cb_fn'
D:\work\libftdi\libftdi-1.0\src\ftdi_stream.c 200 1 ftdi-static
--
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|