Firstly, please keep freetype-devel in the cc. This is not a private 
consultation.
Already said yours is a user error. ttdebug needs old or posix termios 
functionality OR conio.h (on windows). Defining UNIX on mingw is just wrong. 
Cygwin provides termios, so you could use that . Cygwin is not mingw. The other 
possibility is windows sub-system for Linux, on newer window systems. AFAIK 
msys2 is just a wrapper around mingw, so ditto.
OTOH, ttdebug is rather the deeper part of freetype-demo... if you are 
struggling with make/compiling, and you are only interested in learning about 
freetype on Windows in general, maybe you should first try to learn to skip it 
and NOT build it. That's quite easy - remove "ttdebug" from the EXES list in 
the top level Makefile, I think. The individual demo names are listed in the 
EXES, so you could do "make a, make b, make c..." etc to make the individual 
ones, instead of plain "make" (which makes all of EXES).
    On Friday, 3 March 2023 at 10:52:17 GMT+8, Andrew Lakeland 
<[email protected]> wrote:  
 
 Hi,I appreciate the answer. However, I've been looking through some 
StackOverflow threads and they seem to suggest that termios.h just doesn't 
exist on MSYS2 because MSYS2 Windows doesn't fully support POSIX. Sources 
below.https://stackoverflow.com/questions/20772965/where-to-obtain-termios-hhttps://stackoverflow.com/questions/49622208/termios-h-error-on-linux-lftdi-error-on-windows-cross-compilinghttps://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingwhttps://www.msys2.org/wiki/How-does-MSYS2-differ-from-Cygwin/
I'm currently using MSYS2. I'm pretty sure the issue is that MSYS2 just doesn't 
support POSIX, so I am currently trying to build in cygwin. Using cygwin solved 
the termios.h problem. 

However, I'm still getting errors with files not being found. Is there any 
installation process for Windows freetype-demos that has been confirmed to work?
I'm still a little new to Make, compiling, etc, so please let me know if I'm 
missing something. 
Thanks
  

Reply via email to