Originally reported on Google Code with ID 1473
Pango libraries fail to load in Mac OSX version of RT resulting in rectangular blocks
showing up in place of text.
What steps will reproduce the problem?
1. Run make-app-bundle to build dmg file
2. Install dmg
3. Run start executable from RawTherapee.app\Contents\MacOs
4. Search for "pango" in Terminal window output
5. Find error message: "Pango-WARNING **: dlopen(/tmp//lib/pango/1.6.0/modules/pango-basic-coretext.so,
2): image not found"
What I've managed to figure out:
1. /tools/osx/make-app-bundle edits the bundled pango.modules file by replacing "/opt/local"
with "" for all listed modules:
sed -i .bak -e "s/${ESCAPED_MACPORTS_PREFIX}//g" ${ETC}/gtk-2.0/gdk-pixbuf.loaders
${ETC}/gtk-2.0/gtk.immodules ${ETC}/pango/pango.modules
2. The entries in the bundled pango.modules file now look like this:
/lib/pango/1.6.0/modules/pango-basic-coretext.so
3. /tools/osx/start copies this file to /tmp at runtime:
cp "${CWD}/etc/pango/pango.modules" /tmp/rawtherapee_pango.modules
4. It seems that pango prefixes the directory of the location of the rawtherapee_pango.modules
file to the modules when trying to load them.
Reported by rizzo.albert on 2012-07-08 11:06:19
该提问来源于开源项目:Beep6581/RawTherapee