Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 39095  / 2 Years ago, thu, june 23, 2022, 6:26:37

I am using Ubuntu 11.10 64bit and trying to install wine 1.5, using this method:



Install Wine on Ubuntu:



sudo apt-get install libfreetype6-dev gobject* libxrender-dev libfontconfig-dev pthread* libpthread-stubs0-dev xext* libsm-dev


and copy the following commands in the Terminal:



wget http://prdownloads.sourceforge.net/wine/wine-1.5.0.tar.bz2
tar -xjvf wine-1.5.0.tar.bz2
cd wine-1.5.0


Install some packages:



sudo apt-get install flex bison qt3-dev-tools qt4-qmake
./configure
cd tools
./wineinstall


All goes well, but at the end, I get this error message:



checking for -lfreetype... not found
configure: error: FreeType 32-bit development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.


Does anyone know how to install lfreetype?


More From » wine

 Answers
4

Revert the following patch from your source tree and compile again:



From a37f74f5adec8cd3f924fc96e083a66219086091 Mon Sep 17 00:00:00 2001
From: Nicolas Le Cam <[email protected]>
Date: Sat, 7 Apr 2012 22:46:58 +0200
Subject: [PATCH] configure.ac: Prefer pkg-config over freetype-config.

---
configure | 16 +++++++++++-----
configure.ac | 14 ++++++++++----
2 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/configure b/configure
index 3e6e777..5b0dcba 100755
--- a/configure
+++ b/configure
@@ -10262,7 +10262,12 @@ fi

if test "x$with_freetype" != "xno"
then
- for ac_prog in freetype-config freetype2-config
+ if test "$PKG_CONFIG" != "false"
+ then
+ ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
+ ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
+ else
+ for ac_prog in freetype-config freetype2-config
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -10305,10 +10310,11 @@ fi
done
test -n "$ft_devel" || ft_devel="no"

- if test "$ft_devel" != "no"
- then
- ac_freetype_incl=`$ft_devel --cflags`
- ac_freetype_libs=`$ft_devel --libs`
+ if test "$ft_devel" != "no"
+ then
+ ac_freetype_incl=`$ft_devel --cflags`
+ ac_freetype_libs=`$ft_devel --libs`
+ fi
fi
ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
diff --git a/configure.ac b/configure.ac
index 667d725..a57f133 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1384,11 +1384,17 @@ WINE_NOTICE_WITH(cms,[test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"],
dnl **** Check for FreeType 2 ****
if test "x$with_freetype" != "xno"
then
- AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],no)
- if test "$ft_devel" != "no"
+ if test "$PKG_CONFIG" != "false"
then
- ac_freetype_incl=`$ft_devel --cflags`
- ac_freetype_libs=`$ft_devel --libs`
+ ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
+ ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
+ else
+ AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],no)
+ if test "$ft_devel" != "no"
+ then
+ ac_freetype_incl=`$ft_devel --cflags`
+ ac_freetype_libs=`$ft_devel --libs`
+ fi
fi
ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
WINE_CHECK_SONAME(freetype,FT_Init_FreeType,[ft_lib=yes],[ft_lib=no],[$ac_freetype_libs])
--
2.1.4

[#39768] Friday, June 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imberst

Total Points: 370
Total Questions: 107
Total Answers: 123

Location: French Polynesia
Member since Tue, Jul 7, 2020
4 Years ago
imberst questions
;