freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Problems building FreeType 2 demo programs on the Windows


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] Problems building FreeType 2 demo programs on the Windows platform
Date: Tue, 17 Oct 2017 10:28:51 -0400

On Fri, Oct 13, 2017 at 3:14 PM, Colin Fahey <address@hidden> wrote:

> PROBLEM #1
> (2) SOLUTION: Modify the code to read as follows:
>
> ===============================================
> {
> *out++ = '\\';
> *out++ = 'U';
> *out++ = '+';
> *out++ = hexdigit[( ch >> 12 ) & 0xF]; /* <<<FIXED */
> *out++ = hexdigit[( ch >> 8  ) & 0xF]; /* <<<FIXED */
> *out++ = hexdigit[( ch >> 4  ) & 0xF]; /* <<<FIXED */
> *out++ = hexdigit[  ch         & 0xF]; /* <<<FIXED */
> }
> ===============================================

Agreed and applied.

>
> PROBLEM #2
> src\ttdebug.c(1336) : warning C4013: 'getch' undefined; assuming extern
> returning int
> src\ttdebug.c(1935) : warning C4013: 'snprintf' undefined; assuming extern
> returning int

Please try compiling with _CRT_SECURE_NO_DEPRECATE and/or
_CER_SECURE_NO_WARNINGS.

> PROBLEM #3
> freetype_build_test\freetype2-demos-master\graph\gblbgra.h(2) :
> error C2143: syntax error : missing ';' before 'type'
> freetype_build_test\freetype2-demos-master\graph\gblbgra.h(3) :
> error C2143: syntax error : missing ';' before 'const'
> freetype_build_test\freetype2-demos-master\graph\gblbgra.h(4) :
> error C2143: syntax error : missing ';' before 'type'
> freetype_build_test\freetype2-demos-master\graph\gblbgra.h(10) :
> error C2065: 'src_line' : undeclared identifier
> [ . . and many more errors . . . ]
>
> The contents of "gblbrga.h" is actually intended to be put in to
> a body of a function declared in the file:

You are not supposed to compile them. Make sure you do not have any
header files on  the command line.

>
> PROBLEM #4
> (2) SOLUTION:
>
> The solution is trivial!
>
> In the file "graph\win32\rules.mk", change "win32"
> to "windows" in the very first statement, resulting
> in the following line:
>
> ===============================================
> ifeq ($(PLATFORM),windows)
> ===============================================

I am not sure because the root Makefile also references win32.

>
> PROBLEM #5
> src\ftgrid.c(1350) : warning C4244: '*=' : conversion from
> 'double' to 'FT_F26Dot6', possible loss of data

I think we need to rework the entire scaling mechanism. I would liek
to implement reversible scaling.

>
> PROBLEM #6:
> src\ftstring.c(41) : warning C4566: character represented by
> universal-character-name '\u039F' cannot be represented in
> the current code page (1252)
> src\ftstring.c(41) : warning C4566: character represented by
> universal-character-name '\u03BA' cannot be represented in
> the current code page (1252)
> src\ftstring.c(41) : warning C4566: character represented by
> universal-character-name '\u03B1' cannot be represented in
> the current code page (1252)
> src\ftstring.c(41) : warning C4566: character represented by
> universal-character-name '\u03BB' cannot be represented in
> the current code page (1252)
> [ . . . and MANY more warnings like this . . . ]

Perhaps we just missing u8 encoding prefix?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]