Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Windows support #142

Open
mrx23dot opened this issue Aug 24, 2021 · 2 comments
Open

add Windows support #142

mrx23dot opened this issue Aug 24, 2021 · 2 comments

Comments

@mrx23dot
Copy link

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;
      |                  ^~~
@maxgerhardt
Copy link

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

@spth
Copy link
Collaborator

spth commented Apr 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants