Hi Chris, I've just looked at the lines of the error being reported and compared to Qt lines and it seems to be the problem in reverse - our code is converting a GLchar* to a std::string via an assignment. This would suggest the case would need to be to the std::string char type or using a templated copy.
I don't have Solaris to compile against so I'll have to defer to you to find a workable solution. Robert. On Tue, Apr 13, 2010 at 6:07 AM, Chris 'Xenon' Hanson <[email protected]> wrote: > From a client trying to build 2.9.7 on Solaris 10, 64-bit: > > > > "OpenSceneGraph/src/osg/GL2Extensions.cpp", line 2161: Error: Cannot assign > unsigned char* > to std::string without "std::string::operator=(const std::string &)";. > "OpenSceneGraph/src/osg/GL2Extensions.cpp", line 2178: Error: Cannot assign > unsigned char* > to std::string without "std::string::operator=(const std::string &)";. > "OpenSceneGraph/src/osg/GL2Extensions.cpp", line 2197: Error: Formal argument > name of type > const unsigned char* in call to > osg::GL2Extensions::glGetAttribLocation(unsigned, const > unsigned char*) const is being passed const char*. > "OpenSceneGraph/src/osg/GL2Extensions.cpp", line 2220: Error: Formal argument > name of type > const unsigned char* in call to > osg::GL2Extensions::glGetFragDataLocation(unsigned, const > unsigned char*) const is being passed const char*. > > > This is apparently a known problem in Solaris' OpenGL, as shown by the Qt > patch cited below: > http://qt.gitorious.org/~nordellj/qt/qt-chloride/commit/6b628fb9754629cc8cdd5718edec296b02ab3b0e?diffmode=sidebyside > > > I'm afraid a specific cast is probably the only way to fix it (which is what > the Qt > folks did). I don't think there's any way to disable compiling of this code > through CMake > configuration. > > I can try to make a fix for this, but I'm not at the Solaris box myself, and > I wanted to > check with the opinions of the rest of the group first. Anyone else > experienced this? > > > -- > Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com > PixelSense Landsat processing now available! http://www.alphapixel.com/demos/ > "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen > _______________________________________________ > 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

