Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: MacOSX - Linking freetype  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

vilars

  • Newbie
  • *
  • Posts: 2
    • View Profile
MacOSX - Linking freetype
« 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.

vilars

  • Newbie
  • *
  • Posts: 2
    • View Profile
MacOSX - Linking freetype
« Reply #1 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

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
MacOSX - Linking freetype
« Reply #2 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).
SFML / OS X developer

 

anything