Re: [osg-users] [build] error compiling the stable version

2014-06-30 Thread Robert Osfield
Hi Alexander,

Thanks for the detective work.  Your last suggestion of :

 extern C {
 #include  librsvg/rsvg.h
+#ifndef LIBRSVG_CHECK_VERSION
+#include  librsvg/rsvg-cairo.h
+#endif
 }

Is what I went with, short and sweet ;-)

I've also merged into the OSG-3.2 branch the librsvg-2.0=2.35 check
from the svn/trunk/CMakeModules/FindRSVG.cmake script.

I will make another 3.2.1 release candidate today/tomorrow that will
wrap this up.

Cheers,
Robert.


On 29 June 2014 19:46, Alexander Sinditskiy verybigbad...@gmail.com wrote:
 Hi,
 Hello Robert



 Thanks for the changes. Which version of the OSG are you testing
 against? Which version of RVSG are you testing against?



 I have RSVG 2.36.1
 I tested my changes in OpenSceneGraph-3.2 and master/trunk branches.



 The second #if LIBRSVG_CHECK_VERSION assumes that either rvsg.h
 provides this, or the fallback of #include
  librsvg/librsvg-features.h provide it.  Could there be a case where
 neither provide it?



 This define exists sicnce LIBRSVG_2_26_1
 https://github.com/GNOME/librsvg/commit/19b6a9616464a20a6824e255a296c708f882e55b




 So the whole block would look like:

 extern C {
 #include  librsvg/rsvg.h

 #ifndef LIBRSVG_CHECK_VERSION
 #include  librsvg/librsvg-features.h
 #endif

 #if !defined(LIBRSVG_CHECK_VERSION) || !LIBRSVG_CHECK_VERSION(2, 36, 2)
 #include  librsvg/rsvg-cairo.h
 #endif
 }


 I like your changes, but gcc not accept it if LIBRSVG_CHECK_VERSION is not 
 defined:


 Code:

 # cat test.cpp
 #if !defined(TEST) || TEST(2, 36, 2)
 #pragma message(true)
 #else
 #pragma message(false)
 #endif

 int main()
 {
 return 0;
 }
 # gcc test.cpp
 test.cpp:1:27: error: missing binary operator before token (
 test.cpp:4:24: note: #pragma message: false




 I have idea, may be it is a bit hacky. Since commit:
 https://github.com/GNOME/librsvg/commit/3b8adaa7e780b85695306292dfb23107d219bb34
 you have defined LIBRSVG_CHECK_VERSION after include  librsvg/rsvg.h
 but before you don't.


 Code:

  extern C {
  #include  librsvg/rsvg.h
 +#ifndef LIBRSVG_CHECK_VERSION
 +#include  librsvg/rsvg-cairo.h
 +#endif
  }





 Thank you for review  tests :)!

 Cheers,
 Alexander

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





 ___
 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] [build] error compiling the stable version

2014-06-30 Thread Alexander Sinditskiy
Hi Robert

Sorry, there is one unwanted whitespace in include line, which i used to avoid 
form parser.

[ 96%] Building CXX object 
src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/ReaderWriterSVG.o
/home/buildbot/slave/build-osg-debian/build/src/osgPlugins/svg/ReaderWriterSVG.cpp:28:41:
 fatal error:  librsvg/rsvg-cairo.h: No such file or directory


Thank you!

Cheers,
Alexander

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-06-29 Thread Robert Osfield
Hi Alexander,

On 28 June 2014 22:30, Alexander Sinditskiy verybigbad...@gmail.com wrote:
 I attached file with changes. It builds fine for me.

Thanks for the changes.  Which version of the OSG are you testing
against?  Which version of RVSG are you testing against?

In OSG-3.2 branch the OSG's FindRSVG.cmake doesn't have a version
check for rsvg, while the OSG svn/trunk has a check against
librsvg-2.0=2.35.

I am wondering if we need both your additions to the
ReaderWriterSVG.cpp and the svn/trunk's FindRVSG.cmake.

Also one item I'm wondering about is the block:

extern C {
#include librsvg/rsvg.h

#ifndef LIBRSVG_CHECK_VERSION
#include librsvg/librsvg-features.h
#endif

#if LIBRSVG_CHECK_VERSION(2, 36, 2)
#else
#include librsvg/rsvg-cairo.h
#endif
}

The second #if LIBRSVG_CHECK_VERSION assumes that either rvsg.h
provides this, or the fallback of #include
librsvg/librsvg-features.h provide it.  Could there be a case where
neither provide it?

I'
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-06-29 Thread Robert Osfield
Oopps accidentally sent last post before I was ready.  Meant to add:

I wonder if one could do the following:

#if !defined(LIBRSVG_CHECK_VERSION) || !LIBRSVG_CHECK_VERSION(2, 36, 2)
#include librsvg/rsvg-cairo.h
#endif

So the whole block would look like:

extern C {
#include librsvg/rsvg.h

#ifndef LIBRSVG_CHECK_VERSION
#include librsvg/librsvg-features.h
#endif

#if !defined(LIBRSVG_CHECK_VERSION) || !LIBRSVG_CHECK_VERSION(2, 36, 2)
#include librsvg/rsvg-cairo.h
#endif
}

This would avoid the need for an #if #else #endif block.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-06-29 Thread Alexander Sinditskiy
Hi,
Hello Robert


 
 Thanks for the changes. Which version of the OSG are you testing
 against? Which version of RVSG are you testing against? 
 


I have RSVG 2.36.1
I tested my changes in OpenSceneGraph-3.2 and master/trunk branches.


 
 The second #if LIBRSVG_CHECK_VERSION assumes that either rvsg.h
 provides this, or the fallback of #include
  librsvg/librsvg-features.h provide it.  Could there be a case where
 neither provide it?
 


This define exists sicnce LIBRSVG_2_26_1 
https://github.com/GNOME/librsvg/commit/19b6a9616464a20a6824e255a296c708f882e55b



 
 So the whole block would look like:
 
 extern C {
 #include  librsvg/rsvg.h
 
 #ifndef LIBRSVG_CHECK_VERSION
 #include  librsvg/librsvg-features.h
 #endif
 
 #if !defined(LIBRSVG_CHECK_VERSION) || !LIBRSVG_CHECK_VERSION(2, 36, 2)
 #include  librsvg/rsvg-cairo.h
 #endif
 }
 

I like your changes, but gcc not accept it if LIBRSVG_CHECK_VERSION is not 
defined:


Code:

# cat test.cpp
#if !defined(TEST) || TEST(2, 36, 2)
#pragma message(true)
#else
#pragma message(false)
#endif

int main()
{
return 0;
}
# gcc test.cpp
test.cpp:1:27: error: missing binary operator before token (
test.cpp:4:24: note: #pragma message: false




I have idea, may be it is a bit hacky. Since commit:
https://github.com/GNOME/librsvg/commit/3b8adaa7e780b85695306292dfb23107d219bb34
you have defined LIBRSVG_CHECK_VERSION after include  librsvg/rsvg.h
but before you don't.


Code:

 extern C {
 #include  librsvg/rsvg.h
+#ifndef LIBRSVG_CHECK_VERSION
+#include  librsvg/rsvg-cairo.h
+#endif
 }





Thank you for review  tests :)!

Cheers,
Alexander

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-06-28 Thread Alexander Sinditskiy
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-06-28 Thread Robert Osfield
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 verybigbad...@gmail.com 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
 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] [build] error compiling the stable version

2014-06-28 Thread Alexander Sinditskiy
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-06-28 Thread Robert Osfield
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 verybigbad...@gmail.com 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
 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] [build] error compiling the stable version

2014-06-28 Thread Alexander Sinditskiy
Hi Robert

I attached file with changes. It builds fine for me.

Thank you!

Cheers,
Alexander

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



/* -*-c++-*- Copyright (C) 2008 Miguel Escriva Gregori
 *
 * This library is open source and may be redistributed and/or modified under
 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
 * (at your option) any later version.  The full license is in LICENSE file
 * included with this distribution, and on the openscenegraph.org website.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * OpenSceneGraph Public License for more details.
*/

#include iostream
#include sstream
#include osg/Image
#include osg/Notify

#include osgDB/Registry
#include osgDB/FileNameUtils
#include osgDB/FileUtils
#include osgDB/ImageOptions

extern C {
#include librsvg/rsvg.h

#ifndef LIBRSVG_CHECK_VERSION
#include librsvg/librsvg-features.h
#endif

#if LIBRSVG_CHECK_VERSION(2, 36, 2)
#else
#include librsvg/rsvg-cairo.h
#endif
}

class ReaderWriterSVG : public osgDB::ReaderWriter
{
public:

ReaderWriterSVG()
{
supportsExtension(svg,Scalar Vector Graphics format);
}

virtual const char* className() const { return SVG Image Reader; }

virtual ReadResult readObject(const std::string file, const 
osgDB::ReaderWriter::Options* options) const
{
return readImage(file, options);
}

virtual ReadResult readImage(const std::string file, const 
osgDB::ReaderWriter::Options* options) const
{
std::string ext = osgDB::getLowerCaseFileExtension(file);
if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED;

std::string fileName = osgDB::findDataFile( file, options );
if (fileName.empty()) return ReadResult::FILE_NOT_FOUND;

RsvgDimensionData dimensionData;
RsvgHandle* handle = rsvg_handle_new_from_file 
(fileName.c_str(), NULL);
rsvg_handle_get_dimensions( handle, dimensionData);

osg::Image *image;
if (options)
{
unsigned int w=0, h=0;
std::string op = options-getOptionString();
size_t i = op.find(x);

std::stringstream ss1(op.substr(0, i));
std::stringstream ss2(op.substr(i+1, op.size()));
ss1  w;
ss2  h;
if (w==0 || h==0){
image = createImage(handle, 
dimensionData.width, dimensionData.height);
}
else{
image = createImage(handle, w, h);
}
}
else{
image = createImage(handle, dimensionData.width, 
dimensionData.height);
}
g_object_unref(handle);
image-setFileName(file);
return image;
}

osg::Image* createImage(RsvgHandle *handle, unsigned int width, 
unsigned int height) const
{
RsvgDimensionData dimensionData;
rsvg_handle_get_dimensions( handle, dimensionData);
// If image resollution  128, cairo produces some artifacts.
// I don't know why, but we check the size...
if (width  128) width = 128;
if (height  128) height = 128;
width = osg::Image::computeNearestPowerOfTwo(width);
height = osg::Image::computeNearestPowerOfTwo(height);
osg::Image *image = new osg::Image();
image-allocateImage(width, height, 1, GL_RGBA, 
GL_UNSIGNED_BYTE);
image-setPixelFormat(GL_BGRA);

cairo_surface_t *cairo_surface = 
cairo_image_surface_create_for_data(image-data(),
CAIRO_FORMAT_ARGB32, width, height, 
image-getRowSizeInBytes());
cairo_t *cr = cairo_create(cairo_surface);
cairo_scale(cr,((float)width)/dimensionData.width, 
((float)height)/dimensionData.height);
rsvg_handle_render_cairo(handle, cr);

cairo_destroy(cr);
cairo_surface_destroy(cairo_surface);

image-flipVertical();
return image;
}
protected:
virtual ~ReaderWriterSVG()
{
rsvg_cleanup();
}
};

// now register with Registry to instantiate the above
// reader/writer.
REGISTER_OSGPLUGIN(SVG, ReaderWriterSVG)
___
osg-users mailing list

Re: [osg-users] [build] error compiling the stable version

2014-04-25 Thread Tianlan Shao
Hi Sajjadul,
I think then you can simply comment out the ADD_SUBDIRECTORY(svg) line in
src/osgplugins/CMakeLists.txt. Not so nice but it will bury the problem.
best,
Tianlan Shao


On Thu, Apr 24, 2014 at 11:53 AM, Sajjadul Islam dosto.wa...@gmail.comwrote:

 Hi,

 I did not find any option inside the cmake-gui


 Thank you!

 Cheers,
 Sajjadul

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





 ___
 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] [build] error compiling the stable version

2014-04-24 Thread Sajjadul Islam
Hi,

I did not find any option inside the cmake-gui


Thank you!

Cheers,
Sajjadul

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] error compiling the stable version

2014-04-21 Thread Sebastian Messerschmidt

HI Sajjadul,

Removing the path pointing to libsvg library and headers in the cmakegui 
should solve your issue


cheers
Sebastian

Hi,

How to disable the plugin from within the cmake ?

I did not find any opetion to do it


Thank you!

Cheers,
Sajjadul

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





___
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] [build] error compiling the stable version

2014-04-20 Thread Tianlan Shao
Hi Sajjadul,
apparentlly to me the problem is that you were trying to build the plugin
osgdb_svg. And osgdb_svg depends on librsvg, which should have been found
(otherwise CMake wouldn't have added the target osgdb_svg). But librsvg
depends on Cairo, which was somehow not correctly found.

Do you really need the svg plugin? If not, an easy way is not to build
osgdb_svg... Otherwise you probably have to take a look on your Cairo
library.

Best,
Tianlan Shao


On Sat, Apr 19, 2014 at 10:37 PM, Sajjadul Islam dosto.wa...@gmail.comwrote:

 Hi forum,

 I am trying to compile the recent stable version from source on ubuntu
 12.04 and i am having the following compilation error:


 Code:

 [ 85%] Built target osgdb_qfont
 [ 86%] Built target osgdb_zip
 [ 86%] Building CXX object
 src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/ReaderWriterSVG.o
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:
 In member function ‘osg::Image* ReaderWriterSVG::createImage(RsvgHandle*,
 unsigned int, unsigned int) const’:
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:96:17:
 error: ‘cairo_surface_t’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:96:34:
 error: ‘cairo_surface’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:97:41:
 error: ‘CAIRO_FORMAT_ARGB32’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:97:103:
 error: ‘cairo_image_surface_create_for_data’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:17:
 error: ‘cairo_t’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:26:
 error: ‘cr’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:57:
 error: ‘cairo_create’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:99:104:
 error: ‘cairo_scale’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:100:52:
 error: ‘rsvg_handle_render_cairo’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:102:33:
 error: ‘cairo_destroy’ was not declared in this scope
 /home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:103:52:
 error: ‘cairo_surface_destroy’ 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





 Any hint to get rid of this?


 Thank you!

 Cheers,
 Sajjadul

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





 ___
 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] [build] error compiling the stable version

2014-04-20 Thread Sajjadul Islam
Hi,

How to disable the plugin from within the cmake ?

I did not find any opetion to do it


Thank you!

Cheers,
Sajjadul

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [build] error compiling the stable version

2014-04-19 Thread Sajjadul Islam
Hi forum,

I am trying to compile the recent stable version from source on ubuntu 12.04 
and i am having the following compilation error:


Code:

[ 85%] Built target osgdb_qfont
[ 86%] Built target osgdb_zip
[ 86%] Building CXX object 
src/osgPlugins/svg/CMakeFiles/osgdb_svg.dir/ReaderWriterSVG.o
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:
 In member function ‘osg::Image* ReaderWriterSVG::createImage(RsvgHandle*, 
unsigned int, unsigned int) const’:
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:96:17:
 error: ‘cairo_surface_t’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:96:34:
 error: ‘cairo_surface’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:97:41:
 error: ‘CAIRO_FORMAT_ARGB32’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:97:103:
 error: ‘cairo_image_surface_create_for_data’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:17:
 error: ‘cairo_t’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:26:
 error: ‘cr’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:98:57:
 error: ‘cairo_create’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:99:104:
 error: ‘cairo_scale’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:100:52:
 error: ‘rsvg_handle_render_cairo’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:102:33:
 error: ‘cairo_destroy’ was not declared in this scope
/home/sajjad/Downloads/OpenSceneGraph/OpenSceneGraphStable/OpenSceneGraph-3.2.1-rc2/src/osgPlugins/svg/ReaderWriterSVG.cpp:103:52:
 error: ‘cairo_surface_destroy’ 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





Any hint to get rid of this?


Thank you!

Cheers,
Sajjadul

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org