Hi Xiaofan, On 7/10/18 2:05 PM, Xiaofan Chen wrote: > Just tried to build libftdi under Visual C++ 2017 and it seems to have the > same problem as before. With the following patch, I can build the > ftdi dll/lib and ftdipp dll/lib. > > Most of the examples need fixes as well. I can only build thee example, > find_all, find_all_pp and simple. > > Patch is from the following. It may have some other fixed which > can be adopted. > https://github.com/svitalij/libftdi/commit/4ec6653df88a17b6232d9a5d6e85cc9441d3af85
I tried applying the patch to git head, but it does not apply anymore: $ patch -p1 --dry-run <win32-support.patch checking file CMakeLists.txt Hunk #1 succeeded at 14 with fuzz 2. Hunk #2 succeeded at 156 with fuzz 2. checking file src/ftdi.c Hunk #1 FAILED at 1012. Hunk #2 FAILED at 1393. Hunk #3 FAILED at 1475. 3 out of 3 hunks FAILED checking file src/ftdi.h Hunk #1 FAILED at 18. Hunk #2 FAILED at 456. 2 out of 2 hunks FAILED checking file src/ftdi_stream.c Hunk #1 succeeded at 48 (offset 3 lines). Hunk #2 FAILED at 116. 1 out of 2 hunks FAILED -> if you come up with a tested patch I'm willing to apply it. As long as it does not change the API for the Linux users ;) Cheers, Thomas -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
