Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

wine-1.4 fails configure checking for -lfreetype #14550

Closed
rbrown opened this issue Aug 30, 2012 · 22 comments
Closed

wine-1.4 fails configure checking for -lfreetype #14550

rbrown opened this issue Aug 30, 2012 · 22 comments
Assignees

Comments

@rbrown
Copy link

rbrown commented Aug 30, 2012

Following on from issue #14535

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.

output: https://gist.github.com/3524183
config.log: https://gist.github.com/3524196

@mxcl
Copy link
Contributor

mxcl commented Aug 30, 2012

Would work if superenv could be used. Problem seems to be that the include path needs to have /opt/X11/include/freetype2 added.

@adamv
Copy link
Contributor

adamv commented Sep 1, 2012

Worked on Lion; I don't have Mountain Lion to test with.

@mxcl
Copy link
Contributor

mxcl commented Sep 1, 2012

I built with stdenv on 10.8 like yesterday. So don't get the b0rk.

@rodrigo-g-amaral
Copy link

Same problem here on Mountain Lion.

@kyuki
Copy link

kyuki commented Sep 7, 2012

I tried... on 10.8.1&Homebew 0.9.3
"brew install wine --use-gcc"

Error!!

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.

"brew unlink freetype" & "brew install wine --use-gcc"
No Error.

@jacknagel
Copy link
Contributor

So it would appear that Homebrew's non-universal freetype is getting in the way of XQuartz's universal freetype here.

@kyuki
Copy link

kyuki commented Sep 8, 2012

I see ...

file /opt/X11/lib/libfreetype.6.dylib

/opt/X11/lib/libfreetype.6.dylib: Mach-O universal binary with 2 architectures
/opt/X11/lib/libfreetype.6.dylib (for architecture i386): Mach-O dynamically linked shared library i386
/opt/X11/lib/libfreetype.6.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64

brew install freetype --universal
file /usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib

/usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib: Mach-O 64-bit dynamically linked shared library x86_64

It seems that universal option is invalid on OSX 10.8.1.

@paxswill
Copy link
Contributor

paxswill commented Sep 9, 2012

Echoing @kyuki, the --universal option does nothing on 10.8.1. As a kinda brutish work-around, unlinking freetype for the build process worked, but that's just a workaround until a better fix is done.

@ghost ghost assigned mxcl Sep 13, 2012
@daviewales
Copy link
Contributor

@kyuki and @paxswill, (admittedly a month later) I found that unlinking freetype didn't work, but uninstalling then reinstalling freetype with --universal did work. (I typed brew install --universal freetype, as opposed to brew install freetype --universal, but I don't think that should make a difference...)

@meermanr
Copy link

@daviewales, uninstalling and then (re)installing freetype with brew install --universal freetype did the trick for me on 10.8.2 (Mountain Lion), thanks for sharing!

@daviewales
Copy link
Contributor

Awesome!

@rodrigoSyscop
Copy link

remove and install with --universal works for me too. (in Moutain Lion).

@kenorb
Copy link

kenorb commented Jan 16, 2013

Installed with --universal on 10.6.8,
Have it here:

$ file /opt/X11/lib/libfreetype.6.dylib
/opt/X11/lib/libfreetype.6.dylib: Mach-O universal binary with 2 architectures
/opt/X11/lib/libfreetype.6.dylib (for architecture i386):   Mach-O dynamically linked shared library i386
/opt/X11/lib/libfreetype.6.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64

But still I've the error:
configure: error: FreeType 32-bit development files not found. Fonts will not be built.

Any solution available?

Some additional info for devs:

$ sh -x ./configure
...
++ pkg-config --cflags freetype2
+ ac_freetype_incl=
++ pkg-config --libs freetype2
+ ac_freetype_libs=
+ ac_freetype_libs=-lfreetype
+ printf '%s\n' 'configure:10620: checking for -lfreetype'
+ printf %s 'checking for -lfreetype... '
checking for -lfreetype... + false
+ ac_check_soname_save_LIBS=
+ LIBS='-lfreetype -lfreetype '
...

$ pkg-config --debug --cflags freetype2
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found

$ pkg-config --debug --libs freetype2
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found

$ ll /usr/lib/pkgconfig /usr/local/lib/pkgconfig | grep freetype
(none)

@kenorb
Copy link

kenorb commented Jan 16, 2013

Solution (workaround):

$ sudo ln -s /usr/local/Cellar/freetype/*/lib/pkgconfig/freetype2.pc /usr/local/lib/pkgconfig/freetype2.pc

Verify by:

 $ pkg-config --cflags freetype2

Problem:

  • pc file is not linked up during install, so pkg-config doesn't know about the new package

@hale
Copy link

hale commented Feb 19, 2013

For what it's worth, I didn't get a warning about freetype not being built with the --universal option (I did get that warning for other packages, though).

brew uninstall freetype && brew install --universal freetype fixed things.

@msoulier
Copy link

msoulier commented Jun 1, 2013

I just hit this today.

Warning: Clang currently miscompiles some parts of Wine. If you have gcc, you
can get a more stable build with:
brew install wine --use-gcc
==> ./configure --prefix=/usr/local/Cellar/wine/1.4.1 --with-coreaudio --with-op
checking for gphoto2-camera.h... no
checking for cmsOpenProfileFromFile in -llcms... no
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.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Shouldn't this be automagickal by now? I had to search on the error to find
this issue and figure out what to do.

@Michael4824
Copy link

Getting same error, tried "brew uninstall freetype && brew install --universal freetype", but no success.

==> ./configure --prefix=/usr/local/Cellar/wine/1.7.5 --disable-win16 --without-mpg123
checking for lcms2.h... yes
checking for cmsOpenProfileFromFile in -llcms2... no
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.

On Mavericks 10.9. Any idea? Been banging my head against the wall on this.

@daviewales
Copy link
Contributor

@Michael4824 Have you double checked to make sure that freetype has been linked properly? Try brew unlink freetype && brew link freetype.

@daviewales
Copy link
Contributor

Try this:

brew remove freetype && brew remove libpng
then
brew install freetype

@Michael4824
Copy link

brew unlink freetype && brew link freetype

Didn't work. Same thing.

    brew remove freetype && brew remove libpng
then
    brew install freetype

Received the error "Error: wine dependency libpng not installed with: --universal"
So I ran "brew uninstall freetype" then "brew install freetype --universal". However, same error.

@Michael4824
Copy link

Figured it out. Using find, I found and deleted all the freetype files on my machine. Works great now. Thanks for the help.

@jamis
Copy link

jamis commented Dec 9, 2013

I tried all of the above, with no luck. I finally resorted to going into the cellar and making a symlink in freetype's include directory, so that a "freetype" directory existed and pointed at "freetype2". Then, I did "brew unlink freetype && brew link freetype". And then, like magic, the wine install succeeded.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests