[cairo] cairo-1.6.4, Mac OS X, requested FreeType font backend could not be enabled

Ryan Schmidt cairo-2008b at ryandesign.com
Thu May 8 03:22:27 PDT 2008


I'm having trouble installing a universal binary of cairo 1.6.4 on  
Mac OS X 10.4.11. The computer I'm trying this on is an Intel Core 2  
Duo MacBook Pro.

I'm trying to do this using MacPorts. For cairo 1.4.12, I wrote a  
nice universal variant for the cairo port which configures and makes  
cairo twice, once for i386 and again for ppc, and then glues the  
libraries together with lipo. This worked fine for 1.4.14 too. But  
with 1.6.4, it fails like this:


Error: Target org.macports.configure returned: shell command "cd /opt/ 
local/var/macports/build/ 
_Users_rschmidt_macports_dports_graphics_cairo/work/i386 && CFLAGS="- 
O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" CXXFLAGS="- 
O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" LDFLAGS="-L/ 
opt/local/lib -arch i386" ./configure --prefix=/opt/local --disable- 
glitz --disable-xcb --enable-freetype --enable-pdf --enable-png -- 
enable-ps --enable-quartz --enable-quartz-font --enable-quartz-image  
--enable-svg --enable-xlib --enable-xlib-xrender --with-x" returned  
error 1
[snip]
checking for cairo's FreeType font backend...
checking for FONTCONFIG... yes
checking for FcFini... no
no
checking whether cairo's FreeType font backend could be enabled... no  
(requires fontconfig)
configure: error: requested FreeType font backend could not be enabled


When not asking for a universal, it works fine, saying this instead:


--->  Configuring cairo
DEBUG: Executing org.macports.configure (cairo)
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include'  
CXXFLAGS='-O2' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0'  
F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2' OBJC='/usr/ 
bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2' FFLAGS='- 
O2' "MACOSX_DEPLOYMENT_TARGET"='10.4' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_Users_rschmidt_macports_dports_graphics_cairo/work/cairo-1.6.4" && ./ 
configure --prefix=/opt/local --disable-glitz --disable-xcb --enable- 
freetype --enable-pdf --enable-png --enable-ps --enable-quartz -- 
enable-quartz-font --enable-quartz-image --enable-svg --enable-xlib -- 
enable-xlib-xrender --with-x'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
[snip]
checking for cairo's FreeType font backend...
checking for FONTCONFIG... yes
checking for FcFini... yes
checking for FREETYPE... yes
checking whether cairo's FreeType font backend could be enabled... yes
configure: creating src/cairo-ft.pc
[snip]


So there seems to be a problem detecting FcFini.

Now, MacPorts usually sets LDFLAGS, CPPFLAGS, and all the other  
variables as proper environment variables. In my universal variant  
for the cairo port, I don't do that; I prepend them at the beginning  
of the configure line. As I say, that worked with 1.4.x. Is there a  
reason why that would have broken with 1.6.x?

Or maybe that's not related. I see that commit  
ea4dec08f7c62ad3c3e81aa06ce0dd5a08936c45 says "Correct the check for  
FcFini() so that the result is actually used." And that change is in  
1.6.4 but is not in 1.4.14. Maybe that's causing this?

http://gitweb.freedesktop.org/? 
p=cairo;a=commit;h=ea4dec08f7c62ad3c3e81aa06ce0dd5a08936c45







More information about the cairo mailing list