On Sun, Oct 4, 2009 at 1:52 AM, Zorg 421 <zorglub...@gmail.com> wrote:
> Hello plplot developper,
>
> I've built a plplot trying to link it only against a Cairo/Glib/Gtk
> framework which use
> directly quartz and bypass, know nothing about X11.
> It failed with the following error:
>
> Scanning dependencies of target cairo
> [ 29%] Building C object drivers/CMakeFiles/cairo.dir/cairo.c.o
> /Users/philou/src/plplot-svn/drivers/cairo.c:44:24: error:
> cairo-xlib.h: No such file or directory
> /Users/philou/src/plplot-svn/drivers/cairo.c: In function ‘xcairo_init_cairo’:
> /Users/philou/src/plplot-svn/drivers/cairo.c:1406: warning: assignment
> makes pointer from integer without a cast
> make[2]: *** [drivers/CMakeFiles/cairo.dir/cairo.c.o] Error 1
> make[1]: *** [drivers/CMakeFiles/cairo.dir/all] Error 2
> make: *** [all] Error 2
>
> the cairo driver of plplot implies it's using X11, which is not
> necesseraly the case on the mac, more and more it's using quartz
> natively.
> In the meantime I've inverted some paths in PKG_CONFIG_PATH to fall on
> X11 cairo before quartz cairo but it's a bit of a shame.

Individual output drivers can be disabled at CMake-time.  You can add
the option -DPLD_xcairo=OFF to disable the xcairo driver which will
also remove the X11 requirement from drivers/cairo.c.

Hope this helps!

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to