Can`t build wine 1.1.12 on openSuse 10.2

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Obscurus
Level 1
Level 1
Posts: 5
Joined: Tue Jan 06, 2009 10:17 am

Can`t build wine 1.1.12 on openSuse 10.2

Post by Obscurus »

Hi!
When i build it from sources i had some compilation errors in file dlls/gdi32/freetype.c:

Code: Select all

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?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Can`t build wine 1.1.12 on openSuse 10.2

Post by austin987 »

On Tue, Jan 6, 2009 at 9:35 AM, Obscurus <[email protected]> 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
Obscurus
Level 1
Level 1
Posts: 5
Joined: Tue Jan 06, 2009 10:17 am

Post by Obscurus »

Yes, i have installed freetype-1.3.1 and freetype2-2.2.1 (with devel package)
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Can`t build wine 1.1.12 on openSuse 10.2

Post by austin987 »

On Tue, Jan 6, 2009 at 12:55 PM, Obscurus <[email protected]> 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
Obscurus
Level 1
Level 1
Posts: 5
Joined: Tue Jan 06, 2009 10:17 am

Post by Obscurus »

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... :?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Can`t build wine 1.1.12 on openSuse 10.2

Post by austin987 »

On Tue, Jan 6, 2009 at 1:27 PM, Obscurus <[email protected]> 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
Obscurus
Level 1
Level 1
Posts: 5
Joined: Tue Jan 06, 2009 10:17 am

Post by Obscurus »

When i apply this patch i got error:

Code: Select all

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
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Can`t build wine 1.1.12 on openSuse 10.2

Post by austin987 »

On Wed, Jan 7, 2009 at 6:20 AM, Obscurus <[email protected]> wrote:
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

I made the patch against git. Here's the patch against 1.1.12. You'll
have to run autoconf afterward:

diff --git a/configure.ac b/configure.ac
index 8d45409..e82d5b0 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
Obscurus
Level 1
Level 1
Posts: 5
Joined: Tue Jan 06, 2009 10:17 am

Post by Obscurus »

configure works fine! It`s now checking for FT_LcdFilter.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Can`t build wine 1.1.12 on openSuse 10.2

Post by austin987 »

On Thu, Jan 8, 2009 at 3:43 AM, Obscurus <[email protected]> wrote:
configure works fine! It`s now checking for FT_LcdFilter.





I sent the patch:
http://www.winehq.org/pipermail/wine-pa ... 67324.html

--
-Austin
Locked