nsat / pypredict

Spire port of predict open-source tracking library
GNU General Public License v2.0
64 stars 17 forks source link

Doesn't support Windows OS #56

Open jtrack3d opened 2 years ago

jtrack3d commented 2 years ago

Windows systems don't typically have sys/time.h for gettimeofday().

See replacement: https://www.codefull.net/2015/12/systime-h-replacement-for-windows/

teamcharliegithub commented 2 years ago

Were you able to implement this successfully? EDIT: I was able to properly get past the error regarding sys/time.h that you mentioned, but I'm now getting the same error for uninstd.h:

predict.c(30): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

The same has now occurred for getopt.h, getopt.c, and now termios.h. I've been able to replace unistd.h, getopt.h, and getopt.c, but porting termios to Windows is a whole 'nother issue.