Hi, Alan (and plplot-devel),

On Jan 13, 2010, at 18:40 , David MacMahon wrote:

> I also found that to use the xcairo device I have to add `pkg-config
> --libs cairo` to the examples/c Makefile when plplot is installed in
> a non-standard location (e.g. ~/local/lib/...) and cairo is installed
> to a different non-standard location (e.g. /opt/local/lib...).  If I
> don't add this, the examples build, but they crash when running them
> with "-dev xcairo".

I think I've partially figured out what is causing this crash.  It  
turns out that cmake was not finding my freetype fonts.  I installed  
them on my Mac via MacPorts and they are in /opt/local/share/fonts/ 
freetype-ttf, but I wasn't telling cmake about this location and it  
doesn't look there by default so it didn't find them so it turned off  
WITH_FREETYPE.  For some reason that I can't fully explain, this ends  
up causing a crash when using the xcairo driver (maybe any cairo  
driver?).

If I tell cmake where to find my freetype fonts (via - 
DPL_FREETYPE_FONT_PATH=...) and turn on WITH_FREETYPE, then I can use  
the xcairo device fine.

I still don't know exactly why the workaround I first described  
prevented the crash, nor do I know what exactly changes with - 
DWITH_FREETYPE=ON, but now that it works, the priority of this  
already oddball configuration problem has gotten a lot lower IMHO.

Dave


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to