SFML community forums

Help => General => Topic started by: vilars on November 03, 2011, 07:10:07 pm

Title: MacOSX - Linking freetype
Post by: vilars on November 03, 2011, 07:10:07 pm
Hi,
First of all, let me tell you that the library is GREAT.
I'm using SFML2, I didn't have any trouble building the dylibs following the tutorial.
Now I'm having trouble distributing my app bundle.
For some reason, it searches for the freetype.6.dylib in /opt/local/lib. I have it bundled inside the Frameworks dir but there's no use.

Every other dependency is working fine (sfml*, sndfile).

Please if you know what's going on I could use some help.
Title: MacOSX - Linking freetype
Post by: vilars on November 03, 2011, 09:47:11 pm
I found a "hackish" way to fix this, using install_name_tool (which I never heard of)
install_name_tool -change "/opt/local/lib/libfreetype.6.dylib" "@executable_path/../Frameworks/libfreetype.6.dylib" libsfml-graphics.2.dylib
Title: MacOSX - Linking freetype
Post by: Hiura on November 05, 2011, 12:31:54 pm
I think you have another version of freetype than the one provided by SFML in /opt/local/lib. If you want to use the one provided by SFML you should be able to edit your Cmake configuration to include the right one (-> FREETYPE_INCLUDE_DIR_* and FREETPYE_LIBRARY variables).