termios.h is not available so the build of purge_test will fail under Windows with MinGW. Tested with MSYS2.
xiaof@AcerSwift3 MINGW64 /c/work/libftdi/libftdi1-1.5/build $ /mingw64/bin/mingw32-make.exe -i [ 2%] Built target docs [ 10%] Built target ftdi1 [ 17%] Built target ftdi1-static [ 23%] Built target ftdipp1 [ 28%] Built target ftdipp1-static [ 33%] Built target ftdi_eeprom [ 38%] Built target simple [ 43%] Built target serial_test [ 48%] Built target bitbang_cbus [ 53%] Built target find_all [ 58%] Built target bitbang [ 64%] Built target bitbang2 [ 69%] Built target bitbang_ft2232 [ 74%] Built target baud_test [ 79%] Built target stream_test [ 84%] Built target eeprom [ 89%] Built target async [ 92%] Building C object examples/CMakeFiles/purge_test.dir/purge_test.c.obj C:\work\libftdi\libftdi1-1.5\examples\purge_test.c:30:10: fatal error: termios.h: No such file or directory 30 | #include <termios.h> // For baudcodes & linux UARTs | ^~~~~~~~~~~ compilation terminated. [ 94%] Linking C executable purge_test.exe C:\msys64\mingw64\bin\ar.exe: CMakeFiles/purge_test.dir/purge_test.c.obj: No such file or directory [ 94%] Built target purge_test Scanning dependencies of target find_all_pp [ 97%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.obj [100%] Linking CXX executable find_all_pp.exe [100%] Built target find_all_pp -- Xiaofan -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to libftdi+unsubscr...@developer.intra2net.com