Hi! When i build it from sources i had some compilation errors in file dlls/gdi32/freetype.c: Code: freetype.c:192: error: expected declaration specifiers or ... before FT_LcdFilter freetype.c: In function WineEngGetGlyphOutline: freetype.c:4782: error: FT_LcdFilter undeclared (first use in this function) freetype.c:4782: error: (Each undeclared identifier is reported only once freetype.c:4782: error: for each function it appears in.) freetype.c:4782: error: expected ; before lcdfilter freetype.c:4783: warning: ISO C90 forbids mixed declarations and code freetype.c:4787: error: lcdfilter undeclared (first use in this function) freetype.c:4787: error: FT_LCD_FILTER_LIGHT undeclared (first use in this function) freetype.c:4816: error: too many arguments to function pFT_Library_SetLcdFilter freetype.c: In function is_subpixel_rendering_enabled: freetype.c:5970: error: too many arguments to function pFT_Library_SetLcdFilter Anybody knows how fix it?
On Tue, Jan 6, 2009 at 9:35 AM, Obscurus <wineforum-user at winehq.org> wrote:> Hi! > When i build it from sources i had some compilation errors in file dlls/gdi32/freetype.c: > > Code: > > freetype.c:192: error: expected declaration specifiers or ... before FT_LcdFilter > freetype.c: In function WineEngGetGlyphOutline : > freetype.c:4782: error: FT_LcdFilter undeclared (first use in this function) > freetype.c:4782: error: (Each undeclared identifier is reported only once > freetype.c:4782: error: for each function it appears in.) > freetype.c:4782: error: expected ; before lcdfilter > freetype.c:4783: warning: ISO C90 forbids mixed declarations and code > freetype.c:4787: error: lcdfilter undeclared (first use in this function) > freetype.c:4787: error: FT_LCD_FILTER_LIGHT undeclared (first use in this function) > freetype.c:4816: error: too many arguments to function pFT_Library_SetLcdFilter > freetype.c: In function is_subpixel_rendering_enabled : > freetype.c:5970: error: too many arguments to function pFT_Library_SetLcdFilter > > > > Anybody knows how fix it? > > > > > >Do you have freetype2 installed? -- -Austin
Yes, i have installed freetype-1.3.1 and freetype2-2.2.1 (with devel package)
On Tue, Jan 6, 2009 at 12:55 PM, Obscurus <wineforum-user at winehq.org> wrote:> Yes, i have installed freetype-1.3.1 and freetype2-2.2.1 (with devel package) > > > > > >Is configure picking it up? What OS is this? -- -Austin
I update freetype to version 2.3.5 just now and finally it works! But wasn`t any warnings from configure and no requirements in README found... :?
On Tue, Jan 6, 2009 at 1:27 PM, Obscurus <wineforum-user at winehq.org> wrote:> I update freetype to version 2.3.5 just now and finally it works! But wasn`t any warnings from configure and no requirements in README found... :? > > > > > >Hmm, maybe we should update configure then... Does this patch help? diff --git a/configure.ac b/configure.ac index aaeff42..005face 100644 --- a/configure.ac +++ b/configure.ac @@ -1065,7 +1065,8 @@ then AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include <freetype/ftmodapi.h>]) ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $ac_freetype_libs" - AC_CHECK_FUNCS(FT_Load_Sfnt_Table) + AC_CHECK_FUNCS(FT_Load_Sfnt_Table \ + FT_LcdFilter) CFLAGS="$ac_save_CFLAGS" CPPFLAGS="$ac_save_CPPFLAGS" dnl Check that we have at least freetype/freetype.h -- -Austin
When i apply this patch i got error: Code: Hunk #1 FAILED at 1065 1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej and the file configure.ac.rej: *************** then *** 1065,1071 **** AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include <freetype/ftmodapi.h>]) ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $ac_freetype_libs" - AC_CHECK_FUNCS(FT_Load_Sfnt_Table) CFLAGS="$ac_save_CFLAGS" CPPFLAGS="$ac_save_CPPFLAGS" dnl Check that we have at least freetype/freetype.h --- 1065,1072 ---- AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include <freetype/ftmodapi.h>]) ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $ac_freetype_libs" + AC_CHECK_FUNCS(FT_Load_Sfnt_Table \ + FT_LcdFilter) CFLAGS="$ac_save_CFLAGS" CPPFLAGS="$ac_save_CPPFLAGS" dnl Check that we have at least freetype/freetype.h
configure works fine! It`s now checking for FT_LcdFilter.
On Thu, Jan 8, 2009 at 3:43 AM, Obscurus <wineforum-user at winehq.org> wrote:> configure works fine! It`s now checking for FT_LcdFilter. > > > > > >I sent the patch: http://www.winehq.org/pipermail/wine-patches/2009-January/067324.html -- -Austin