stm8flash icon indicating copy to clipboard operation
stm8flash copied to clipboard

add Windows support

Open mrx23dot opened this issue 4 years ago • 2 comments

Initial version started: https://github.com/mrx23dot/stm8flash/pull/new/windows_inst_prep

termios.h /dev/ttyUSB0 COM port handling needs to be replaced with portable one in libespstlink.c

GCC -g -O0 --std=gnu99 --pedantic -Wall     -c -o libespstlink.o libespstlink.c
libespstlink.c:30:10: fatal error: termios.h: No such file or directory
   30 | #include <termios.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [libespstlink.o] Error 1

C:\tmp\stm8flash_orig>libespstlink.c

C:\tmp\stm8flash_orig>make
GCC -g -O0 --std=gnu99 --pedantic -Wall     -c -o libespstlink.o libespstlink.c
libespstlink.c: In function 'espstlink_open':
libespstlink.c:59:18: error: storage size of 'tty' isn't known
   59 |   struct termios tty;
      |                  ^~~

mrx23dot avatar Aug 24 '21 12:08 mrx23dot

I'm still running into this problem when compiling for Windows -- I have to forecfully comment out the libespstlink stuff to make it compile.

maxgerhardt avatar Oct 16 '22 12:10 maxgerhardt

Maybe, until someone make the esp stuff work on windows, we should pick the NO_ESP macro from https://github.com/tenbaht/stm8flash/tree/disable-esp to make compilation for Windows easier.

spth avatar Apr 20 '23 08:04 spth