missing termios.h in MinGW compilation of Retro11.6

2,239 views
Skip to first unread message

RdR

unread,
Dec 31, 2014, 11:05:15 PM12/31/14
to retr...@googlegroups.com
Hi, I couldn't find a binary ngaro for Windows, so tried compiling Retro 11.6 with MinGW.  However, got the following error:

     cc -Wall vm/complete/retro.c -o retro
     vm/complete/retro.c:13:21: fatal error: termios.h: No such file or directory
         #include <termios.h>

Some googling on termios.h seems to indicate that it is not applicable for MinGW and that some Windows API needs to be used (although the information isn't entirely clear on this).

Charles indicated that successful builds of the Ngaro VM had been achieved with MinGW -- so my question is what steps I need to take to achieve that?  (or alternatively, if there is some location where I can still download a VM binary for Windows).

cheers,
RdR

Mat

unread,
Jan 1, 2015, 4:31:02 PM1/1/15
to retr...@googlegroups.com
Hello,

To my knowledge MingW does not include a termios.h header file because terminal emulation conform to the POSIX standard is not supported (at application side). However, you can try build a recent termcap version and patch termios.h form either Linux or one of the BSD's. A better while easier approach is probably just changing the Ngaro source code for using the Windows API interface instead.

Mat.

Charles Childers

unread,
Jan 1, 2015, 4:38:41 PM1/1/15
to retr...@googlegroups.com
I've had luck with curses in the past, so I'll probably be adding in support for that (pdcurses probably) in the next couple of days.

Sent from my iPhone
--
--
--
You received this message because you are RETRO 10 discussion group.
To post to this group, send email to retr...@googlegroups.com
To unsubscribe from this group, send email to retro-10-u...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "retro-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to retro-10+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Charles Childers

unread,
Jan 18, 2015, 11:57:53 AM1/18/15
to retr...@googlegroups.com
I’ll have to apologize here for the time that it’s taken me to work on this. My only windows box has been down for quite a while now, so I’ve ended up setting up a cross compiler and trying to build it there.

I have built and uploaded the following:


This *should* work, but as all I have currently is my Mac and a Linux box, I’ve been unable to test it. If it doesn’t work, please let me know so I can investigate further.

— crc
Reply all
Reply to author
Forward
0 new messages