HI Alexander, Could you try putting an #ifdef guard around the #include to allow the appropriate version to be included with different versions of RSVG?
Thanks, Robert. On 28 June 2014 21:17, Alexander Sinditskiy <[email protected]> wrote: > Hi, Robert > > >> Does svn/trunk and OSG-3.2 branch compile OK for you? > > no. > > I am using github mirror, this is logs from 2 vms > > both vm have same setup similar to ... "apt-get build-dep openscenegraph" > and both failed due to rsvg > > build logs: > Debian GNU/Linux 7.5 (wheezy) > failed: master http://pastebin.com/afrzbwL7 > failed: OpenSceneGraph-3.2 http://pastebin.com/P71eX2y7 > > 12.04.4 LTS > failed: master http://pastebin.com/Mj3YJWF5 > failed: OpenSceneGraph-3.2 http://pastebin.com/2pLCcVbk > > > if I change: > > > Code: > > - PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.35) > + PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.36.2) > > > > > then build is successful because: > > > Code: > > -- checking for module 'librsvg-2.0>=2.36.2' > -- package 'librsvg-2.0>=2.36.2' not found > > > > > if I change: > > > Code: > > index a1c7d88..62bb46f 100644 > --- a/src/osgPlugins/svg/ReaderWriterSVG.cpp > +++ b/src/osgPlugins/svg/ReaderWriterSVG.cpp > @@ -23,6 +23,7 @@ > > extern "C" { > #include <librsvg/rsvg.h> > + #include <librsvg/rsvg-cairo.h> > } > > class ReaderWriterSVG : public osgDB::ReaderWriter > > > > > then build is successful, and plugin is builded: > master http://pastebin.com/4ELBKVUS > > > Code: > > Scanning dependencies of target osgdb_svg > [ 96%] Building CXX object > src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/ReaderWriterSVG.o > Linking CXX shared module ../../../lib/osgPlugins-3.3.2/osgdb_svg.so > [ 96%] Built target osgdb_svg > > > > > but It is cause deprecated warnings on recent rsvg versions. > > Thank you! > > Cheers, > Alexander > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=60036#60036 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

