Hello,
I just downloaded the RC2 version of OSG 3.2.1, and after getting
through a couple of issues with FFMPEG, I'm now stuck at 85% through
the build process at the point where it is trying to build the
"ReaderWriterSVG.o" object file.
I have cairo and cairo-devel installed:
---------
# yum info cairo-devel.x86_64
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Installed Packages
Name : cairo-devel
Arch : x86_64
Version : 1.8.8
Release : 3.1.el6
Size : 1.9 M
Repo : installed
From repo : anaconda-RedHatEnterpriseLinux-201206132210.x86_64
Summary : Development files for cairo
URL : http://cairographics.org
License : LGPLv2 or MPLv1.1
Description : Cairo is a 2D graphics library designed to provide
high-quality
: display and print output.
:
: This package contains libraries, header files and developer
: documentation needed for developing software which uses
the cairo
: graphics library.
# yum info cairo.x86_64
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Installed Packages
Name : cairo
Arch : x86_64
Version : 1.8.8
Release : 3.1.el6
Size : 779 k
Repo : installed
From repo : anaconda-RedHatEnterpriseLinux-201206132210.x86_64
Summary : A 2D graphics library
URL : http://cairographics.org
License : LGPLv2 or MPLv1.1
Description : Cairo is a 2D graphics library designed to provide
high-quality
: display and print output. Currently supported output targets
: include the X Window System, OpenGL (via glitz),
in-memory image
: buffers, and image files (PDF, PostScript, and SVG).
:
: Cairo is designed to produce consistent output on all
output media
: while taking advantage of display hardware acceleration when
: available (e.g. through the X Render Extension or OpenGL).
----------
And here is what the build process tells me:
[...]
Scanning dependencies of target osgdb_svg
[ 85%] Building CXX object
src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/ReaderWri
terSVG.o
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp: In
mem
ber function ‘osg::Image* ReaderWriterSVG::createImage(RsvgHandle*,
unsigned int
, unsigned int) const’:
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:96:
err
or: ‘cairo_surface_t’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:96:
err
or: ‘cairo_surface’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:97:
err
or: ‘CAIRO_FORMAT_ARGB32’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:97:
err
or: ‘cairo_image_surface_create_for_data’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:
err
or: ‘cairo_t’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:
err
or: ‘cr’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:
err
or: ‘cairo_create’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:99:
error: ‘cairo_scale’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:100:
error: ‘rsvg_handle_render_cairo’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:102:
error: ‘cairo_destroy’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:103:
error: ‘cairo_surface_destroy’ was not declared in this scope
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp: In
destructor ‘virtual ReaderWriterSVG::~ReaderWriterSVG()’:
/opt/GFX/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:111:
error: ‘rsvg_cleanup’ was not declared in this scope
make[2]: ***
[src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/ReaderWriterSVG.o] Error 1
make[1]: *** [src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/all] Error 2
make: *** [all] Error 2
---------
Google was not much help -- it looks like this was an issue back in 2008,
but it doesn't seem like others have had trouble with this in the
past year.
Also, I couldn't find a CMake build option to disable the SVG feature.
Thanks for your help,
Bill
--
Bill Sherman
Sr. Technology Advisor
Advanced Visualization Lab
Pervasive Technology Inst
Indiana University
[email protected]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org