Hi,

I'm trying to build OSG on my OS X machine after many successful compiles on my 
Windows partition.  However I'm getting linking errors when compiling the 
osgdb_svg plugin; the linker can't find x86_64 definitions of some Cairo 
functions:

Undefined symbols for architecture x86_64:
  "_cairo_create", referenced from:
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_cairo_destroy", referenced from:
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_cairo_image_surface_create_for_data", referenced from:
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_cairo_scale", referenced from:
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_cairo_surface_destroy", referenced from:
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_rsvg_handle_free", referenced from:
      ReaderWriterSVG::readImage(std::string const&, osgDB::Options const*) 
const in ReaderWriterSVG.o
  "_rsvg_handle_get_dimensions", referenced from:
      ReaderWriterSVG::readImage(std::string const&, osgDB::Options const*) 
const in ReaderWriterSVG.o
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_rsvg_handle_new_from_file", referenced from:
      ReaderWriterSVG::readImage(std::string const&, osgDB::Options const*) 
const in ReaderWriterSVG.o
  "_rsvg_handle_render_cairo", referenced from:
      ReaderWriterSVG::createImage(_RsvgHandle*, unsigned int, unsigned int) 
const in ReaderWriterSVG.o
  "_rsvg_init", referenced from:
      ReaderWriterSVG::ReaderWriterSVG() in ReaderWriterSVG.o
  "_rsvg_term", referenced from:
      ReaderWriterSVG::~ReaderWriterSVG() in ReaderWriterSVG.o

Answers to any one of these questions will help me out, or at least put me on a 
path to fixing it myself:

1.  Has anyone run into this and found a work-around or solution?
2.  Is there a way to disable the SVG plug-in, since I doubt I'll be using it?
3.  Can someone shed some light on how Cmake goes about searching for Cairo, 
and what paths it may be finding it in?

Thank you!

--Chris W.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52958#52958





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to