Hi Alexander,
I don't have the old version of RSVG available to test against now.
Reverting to support an older version may be possible, but it might
get awkward. I don't recall all changes now, Ubuntu 12.04 is two
years old.
As a quick fix would be to refine the version check - in svn/trunk
and OSG-3.2 branch we have:
#Version 2.35 introduces the rsvg_cleanup function which is used
PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.35)
Does svn/trunk and OSG-3.2 branch compile OK for you?
Robert.
On 28 June 2014 17:03, Alexander Sinditskiy <[email protected]> wrote:
> Hi,
>
> Actually this issue is caused by 2 reasons
>
> 1. update in librsvg:
>
> https://github.com/GNOME/librsvg/commit/3b8adaa7e780b85695306292dfb23107d219bb34
> Please look at rsvg.h.
> They moved #include < librsvg/rsvg-cairo.h > dirrectly to rsvg.h
> Also they added "deprecated" warning to this include.
>
> This change introduced in 2.36.2 but latest debian have 2.36.1, and ubuntu
> 12.04 have 2.36.1 too.
>
> 2. "Fixed warnings" change in osg.
>
> https://github.com/openscenegraph/osg/commit/42903703d27429a6dcd08e98bce5e95e32c9c18b
> Looks like Robert have librsvg >= 2.36.2. He fixed warnings, but it broke
> build with older versions.
>
> I see 2 solutions of this issue:
> 1. Change minimal required version to 2.36.2 in CMakeModules/FindRSVG.cmake
> 2. Return back #include < librsvg/rsvg-cairo.h > to
> src/osgPlugins/svg/ReaderWriterSVG.cpp
>
> May be we have another solution?
> It would be nice if we fix build with old versions librsvg.
>
> Thank you!
>
> Cheers,
> Alexander
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60033#60033
>
>
>
>
>
> _______________________________________________
> 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