On Wed, Apr 17, 2013 at 10:04 AM, Xiaofan Chen <[email protected]> wrote: > On Tue, Apr 16, 2013 at 9:36 PM, Jahn <[email protected]> wrote: >> Has anyone sucessfully compiled LibFTDI-0.20 >> under CygWin? >> >> Make command generates this error: >> ... >> ... >> ... >> >> serial_test.o: In function `main': >> /home/libftdi-0.20/examples/serial_test.c:162: undefined reference to >> `_sleep' >> collect2: ld returned 1 exit status >> Makefile:393: recipe for target `serial_test.exe' failed >> make[2]: *** [serial_test.exe] Error 1 >> make[2]: Leaving directory `/home/libftdi-0.20/examples' >> Makefile:418: recipe for target `all-recursive' failed >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/home/libftdi-0.20' >> Makefile:285: recipe for target `all' failed >> make: *** [all] Error 2 >> > > That is just an example and you can ignore it (just run 'make -i'). The > thing is that libftdi-0.x is now in the legacy branch so I am not so > sure if it is worth fixing this. The main development is now done > on libftdi1 which is based on libusb-1.0 API.
For example, you may want to try to use the examples in libftdi main git tree (libftdi1) to see if that helps. It has some fixes for the sleep() thingy in the examples. http://developer.intra2net.com/git/?p=libftdi;a=tree;f=examples > Just wondering why you want to use Cygwin? I have ready-made > binary for libftdi-0.20 using MinGW here. > https://code.google.com/p/picusb/downloads/list > > I see no reason to use Cygwin now for libftdi, libusbx and OpenOCD > building, you can use MinGW/MSys or cross build under Linux. BTW, libftdi questions should really go to libftdi mailing list. http://www.intra2net.com/en/developer/libftdi/mailinglist.php -- Xiaofan ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
