snow leopard, freetype installed but not being found?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
petem
Newbie
Newbie
Posts: 4
Joined: Tue Feb 08, 2011 4:57 pm

snow leopard, freetype installed but not being found?

Post by petem »

Hi, I'm trying to build and use WINE on an OSX Snow Leopard machine. I build WINE yesterday, but didn't realise libfreetype was a problem (unable to find library) until I started ding WINE things. So I downloaded it from freetype.org and built/installed it into /usr/local/lib, but I still get the errors.

I decide to rebuild WINE and ran ./configure to find that it couldn't find freetype. Here's a snippet of the end of that section plus a little investigation of my own. It shows that that freetype-config IS ABLE to determine my suitability so what's the problem with the configure script and how to move past this? Thanks if you can help.

checking for freetype-config... freetype-config
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.
petem3:wine petem$
petem3:wine petem$ freetype-config
Usage: freetype-config [OPTION]...
Get FreeType compilation and linking information.

Options:
--prefix display `--prefix' value used for building the
FreeType library
--prefix=PREFIX override `--prefix' value with PREFIX
--exec-prefix display `--exec-prefix' value used for building
the FreeType library
--exec-prefix=EPREFIX override `--exec-prefix' value with EPREFIX
--version display libtool version of the FreeType library
--ftversion display FreeType version number
--libs display flags for linking with the FreeType library
--libtool display library name for linking with libtool
--cflags display flags for compiling with the FreeType
library
petem3:wine petem$ set -o vi
petem3:wine petem$ freetype-config --libs
-L/usr/local/lib -lfreetype -lz
petem3:wine petem$ vi configure
petem3:wine petem$ freetype-config --cflags
-I/usr/local/include/freetype2 -I/usr/local/include
petem
Newbie
Newbie
Posts: 4
Joined: Tue Feb 08, 2011 4:57 pm

Post by petem »

I also found this in config.log, so I have a faulty freetype install?
configure:10328: checking for freetype-config
configure:10344: found /usr/local/bin/freetype-config
configure:10355: result: freetype-config
configure:10373: checking for -lfreetype
configure:10398: gcc -m32 -o conftest -g -O2 conftest.c -lfreetype -L/usr/local/lib -lfreetype -lz >&5
ld: warning: in /usr/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_FT_Init_FreeType", referenced from:
_main in ccpbDWSy.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

you built freetype default... which made it 64bit, not 32bit which you need.
petem
Newbie
Newbie
Posts: 4
Joined: Tue Feb 08, 2011 4:57 pm

Post by petem »

@doh132, yes thanks for that. Looking through the freetype docs at freetype.org, I can't see how to control the build otherwise.

The configure for wine seemed to take a --without-freetype option, so I'm trying that, for now.

If someone can offer clues on how to build freetype correctly, then that'd be great.
petem
Newbie
Newbie
Posts: 4
Joined: Tue Feb 08, 2011 4:57 pm

Post by petem »

OK, for building freetype I found this clue somewhere ...

env CC="gcc -arch i386 " ./configure

then build, install.

Now wincfg (for example) works without the freetype error messages appearing, without rebuilding wine.
perko
Newbie
Newbie
Posts: 4
Joined: Sat Apr 09, 2011 2:32 am

Post by perko »

im having the same problem and was wondering if there's a command to uninstall the freetype libs so i can start over?
otherwise do i need to manually delete the freetype files to run the new script?
sorry for being such a noob with this
perko
Newbie
Newbie
Posts: 4
Joined: Sat Apr 09, 2011 2:32 am

Post by perko »

back again,
I uninstalled then reinstalled freetype using the code @petem showed above.
however after running configure in wine with no errors i still get the same freetype error messages when i try to run any program
help please
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Post by ischou »

Are either of you missing an installation of X11? If you install Apple's X11 (not recommended) or XQuartz X11 you should get a universal binary libfreetype either in /usr/X11/lib or /opt/X11/lib

You will need to add those paths to your environment before you configure:

CFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" ./configure --prefix=...
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

snow leopard, freetype installed but not being found?

Post by jjmckenzie »

On Wed, May 11, 2011 at 6:23 AM, ischou <[email protected]> wrote:
Are either of you missing an installation of X11?  If you install Apple's X11 (not recommended) or XQuartz X11 you should get a universal binary
libfreetype either in /usr/X11/lib or /opt/X11/lib
X11 from Apple is installed by default in Snow Leopard. Yes, it is a
very good suggestion to install XQuartz as broken functionality is
restored/corrected.

James McKenzie
ertdfg22
Newbie
Newbie
Posts: 2
Joined: Sun May 29, 2011 8:24 pm

Post by ertdfg22 »

I uninstalled then reinstalled freetype using the code @petem showed above.
however after running configure in wine with no errors i still get the same freetype error messages when i try to run any program bags replica
Locked