libfreetype x86_64

From: Simone Bifani <simone.bifani_at_cern.ch>
Date: Sat, 26 Mar 2011 15:11:08 +0000


Hello,

I needed to recompile ROOT 5.28.00b with some patches from the trunk
(configured as 'configure macosx64 --enable-roofit') on a machine
running SnowLeopard 10.6.7 but upgraded long ago from Leopard

As a result when running ROOT with no graphics (-b option) I get the following error

dyld: lazy symbol binding failed: Symbol not found: _FT_Init_FreeType

    Referenced from: /Applications/Work/ROOT/lib/libGraf.so     Expected in: flat namespace
dyld: Symbol not found: _FT_Init_FreeType

    Referenced from: /Applications/Work/ROOT/lib/libGraf.so     Expected in: flat namespace

Looking back at the compilation log I noticed the following warning

ld: warning: in /usr/local/lib/libfreetype.dylib, missing required architecture x86_64 in file

and indeed

file libfreetype.dylib
libfreetype.dylib: symbolic link to libfreetype.6.3.12.dylib

file libfreetype.6.3.12.dylib
libfreetype.6.3.12.dylib: Mach-O universal binary with 2 architectures
libfreetype.6.3.12.dylib (for architecture i386):       Mach-O 
dynamically linked shared library i386
libfreetype.6.3.12.dylib (for architecture ppc):        Mach-O 
dynamically linked shared library ppc

An old post on the ROOT forum
(http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=12140) suggests to
reinstall MacPort which I did (1.9.2) but I was not able to fix the problem (somehow I do not have the 'port' command and I can't install the new libfreetype libraries)

A second suggestion was to remove all libfreetype files Is this safe (ie for other applications)?

Has any of you experienced a similar issue and solved the problem?

Thanks,
s.

Received on Sat Mar 26 2011 - 16:11:15 CET

This archive was generated by hypermail 2.2.0 : Sat Mar 26 2011 - 17:50:01 CET