[osg-users] OSG 3.2.1 rc2 -- Problems linking with Cairo
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 sherm...@indiana.edu ___ osg-users mailing list osg-users@lists.openscenegraph.org
Re: [osg-users] OSG 3.2.1 rc2 -- Problems linking with Cairo
Bill Sherman writes: 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. Hi Bill, I'm compiling with cairo 1.12.16 here on Debian. If SVG support is not strictly required, you may deactivate it in order to skip that plugin. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 3.2.1 rc2 -- Problems linking with Cairo
HI Bill, Looks like we'll need to add a check against old version of cairo to prevent building against them. I presume most others don't have this issue because they are using more modern versions of cairo. I have 1.12.16 installed on my Kubuntu 12.10 that works fine. I wouldn't like to make this the minimum version though as older revs' should work fine too. So we have something between 1.8.8 that you have and 1.12.16 that I have. FYI, I recall that Cairo deprecated/removed a set of functions that we used to use so I had to update the code to the new non deprecated equivlants, there is good chance in making these changes to be compatible with modern versions of Cairo backwards compatibility was lost for much older versions. Does any know of a list of Cairo features and when they were introduced? Robert. On 26 March 2014 08:03, Bill Sherman sherm...@indiana.edu wrote: 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
Re: [osg-users] No intersection on some osg models
There are some collision issues with LineSegmentIntersector in OSG 3.2.0 and before. The trunk version of LineSegmentIntersector.cpp contains the fix, and 3.2.1, 3.3.0 and 3.3.1 releases ought to have the fix in. Alistair Baxter Software Engineer We'll be exhibiting at PDAC 2014 from booth #1607, 2nd - 5th March 2014. For further information please visit http://www.mve.com/calendar Midland Valley Exploration Ltd. 144 West George Street Glasgow G2 2HG United Kingdom Tel: +44 (0) 141 332 2681 Fax:+44 (0) 141 332 6792 The structural geology experts -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Petr Svoboda Sent: 25 March 2014 20:26 To: osg-users@lists.openscenegraph.org Subject: [osg-users] No intersection on some osg models Hi, I have a very weird problem. I downloaded some models from Sketchup warehouse, exported as OBJ format and then converted using osgconv to OSG format. Now, when I use osgUtil::LineSegmentIntersector then on some models there is an intersection detected on others there is not. Why is that? Is there a need of creating some bounding boxes or something like that? Or some osgconv bug? Model bug? Thank you! Cheers, Petr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58730#58730 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] FFmpeg plugin video lag
Hi, For those who have the same problem, a workaround is to set de frame rate higher than the stream's frame rate. e.g.: Code: osg::ref_ptrosgDB::Options options = new osgDB::Options; options-setOptionString(frame_rate=60); This limits the delay. Thank you! Cheers, Roy -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58740#58740 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg-users Digest, Vol 81, Issue 28
Hello Alberto, From: Alberto Luaces alua...@udc.es Hi Bill, I'm compiling with cairo 1.12.16 here on Debian. If SVG support is not strictly required, you may deactivate it in order to skip that plugin. I searched for an option to disable the SVG support in the list of CMake options, but I couldn't find one. And I also searched through the Advanced list of options. I did find some that mention QTSVG (or QSVG), but they didn't point to libcairo or anything similar. Has this option vanished, or am I overlooking it? From: Robert Osfield robert.osfi...@gmail.com HI Bill, Looks like we'll need to add a check against old version of cairo to prevent building against them. I presume most others don't have this issue because they are using more modern versions of cairo. I have 1.12.16 installed on my Kubuntu 12.10 that works fine. I wouldn't like to make this the minimum version though as older revs' should work fine too. So we have something between 1.8.8 that you have and 1.12.16 that I have. Okay, so I'm running RedHat enterprise Linux 6.4, which is a fairly recent RHEL distribution, but RHEL lags behind on many of the packages by quite a long time. And while I prefer to use packages, obviously I'm compiling OSG, so I don't avoid compiling at all costs -- but I like to keep things more or less standard on the basic stuff in case multiple advanced packages rely on them. So I went ahead and compiled version 1.12.16 ... and installed it -- had to move the files though because I forgot to specify the 64 in /usr/local/lib64. (So if there were a CMake option where I could verify where the include and library files for Cairo are to be used, that would also be handy.) For the life of me though, I've done several entirely clean builds of OSG after installing the new Cairo, but I continually get the same messages as yesterday. If there is a way for me to see what files CMake is directing in the build process, that would be great. Or if there's a quick way to disable the SVG feature. FYI, I recall that Cairo deprecated/removed a set of functions that we used to use so I had to update the code to the new non deprecated equivlants, there is good chance in making these changes to be compatible with modern versions of Cairo backwards compatibility was lost for much older versions. Does any know of a list of Cairo features and when they were introduced? Robert. Thank you both for your help and advice. Bill P.S. if you could CC me in your reply -- I get the list in digest form, so I'm not seeing the responses until the late afternoon -- that would be handy. Thanks again! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org