build process fails if cairo present, but tk not
Brought to you by:
hpcoder
If cario development headers are present, but tk is not, build process fails with the following error:
src/analysis.cc
include/plot.h:41:5: error: ‘SurfacePtr’ in namespace ‘ecolab::cairo’ does not name a type
This was a bit hard to track down, but looking a little deeper:
include/cairo_base.h:10
#if defined(CAIRO) && defined(TK)
#include "tcl++.h"
#include "classdesc.h"
#include "arrays.h"
#include <cairo cairo.h="">
...</cairo>
So cairo headers aren't being included at all if TK isn't present. Install tk, and all is well.
Regards
Anonymous
Thanks. Worked.