Hi Tormod Volden,
I have get windows dfu-util source and start to use vs2005 to build dfu-util. And got following compile error: 1>dfu.c 1>z:\openmoko\dfu-util\src\dfu.c(24) : fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory And I don't know how to build libusb-1.0.8 with VS2005, so I tried cygwin, and got following error: $ make make all-recursive make[1]: Entering directory `/cygdrive/d/OpenMoko/libusb-1.0.8' Making all in libusb make[2]: Entering directory `/cygdrive/d/OpenMoko/libusb-1.0.8/libusb' CC libusb_1_0_la-io.lo gcc: unrecognized option '-pthread' io.c:1:0: warning: -fPIC ignored for target (all code is position independent) io.c: In function ‘calculate_timeout’: io.c:1083:2: error: implicit declaration of function ‘TIMESPEC_TO_TIMEVAL’ Makefile:375: recipe for target `libusb_1_0_la-io.lo' failed make[2]: *** [libusb_1_0_la-io.lo] Error 1 make[2]: Leaving directory `/cygdrive/d/OpenMoko/libusb-1.0.8/libusb' Makefile:358: recipe for target `all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/cygdrive/d/OpenMoko/libusb-1.0.8' Makefile:265: recipe for target `all' failed make: *** [all] Error 2 Any idea or suggestion to make this right? >Hi Daniel, > >Did you try the "windows" branch of the git repo? >http://cgit.openezx.org/dfu-util/log/?h=windows >What kind of compiler/environment did you try? > >Once you have it built, there is the driver and libusb installation as >well. For libusb 1.0 on Windows, this might be the best reference: >http://www.libusb.org/wiki/windows_backend >If I understand it right, you can use Zadig.exe to install/register >the WinUSB driver for your device. Then libusb will access the device >through winusb.dll. > >Tormod > >2012/4/5 Daniel Li : >> Hi All, >> >> I want to build dfu-util for windows. >> >> But no luck with�following links, any one has been successfully build a >> image for windows? >> >> http://wiki.openmoko.org/wiki/Dfu-util-windows >> http://openmoko-public-mailinglists.1958.n2.nabble.com/Build-dfu-util-for-Windows-td6980736.html;cid=1333628129968-793 >> >> >> _______________________________________________ >> devel mailing list >> devel@lists.openmoko.org >> https://lists.openmoko.org/mailman/listinfo/devel >> > > >----- >No virus found in this message. >Checked by AVG - www.avg.com >Version: 2012.0.1913 / Virus Database: 2409/4914 - Release Date: 04/04/12 > >
_______________________________________________ devel mailing list devel@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/devel