[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] ft2demos with X11 on OS X (XQuartz) (Re: Freetype-devel D

From: Hin-Tak Leung
Subject: Re: [ft-devel] ft2demos with X11 on OS X (XQuartz) (Re: Freetype-devel Digest, Vol 134, Issue 22)
Date: Sat, 26 Mar 2016 19:47:07 +0000 (UTC)

The library dependence is likely dynamic... you could examine which copy of the 
it is trying to load by:

otool -L <your_binary>

To some extent, you can override it with:

export DYLD_LIBRARY_PATH=/opt/X11/lib

before you run the binary, but this is generally frown upon, as other things 
may break.

To force embedding a specific library location into the binary at build time, 
use the 
compiler/linker -rpath option - see this, for example:

On Sat, 26/3/16, Adam Twardoch (Lists) <address@hidden> wrote:
 Ah, yes. I
 do indeed have cairo, mupdf installed via brew in
 /usr/local, freetype is also there (built myself). mupdf
 comes from the "x11" group of things installed by
 brew. When I try to launch mupdf-x11, I get
 error: cannot open
 displayuncaught exception: cannot open
 Then I
 have XQuartz installed in /opt/x11
 I guess these two things are in
 conflict somehow. 
 So, I do have
 freetype both in /usr/local/include/freetype2/
 and /usr/local/liband
 in/opt/X11/include/freetype2/ and /opt/X11/lib
 Do you know how I
 could build the freetype2-demos tools to link to freetype
 that is in /opt/X11 ? 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]