[osg-users] OSG 3.5.1 not compiling in MAC OSX 10.11.1 (bug in osgViewer/View)
Mario Krapp
mariokrapp at gmail.com
Thu Nov 26 03:11:27 PST 2015
Hi,
I think there is a bug in osgViewer/View. It's related to the pointer
reference of the ImagePager:
/tmp/OpenSceneGraph-3.5.1/include/osgViewer/View:130:91: error: member
reference base type
'const osg::ref_ptr<T> *' is not a structure or union
template<class T> void setImagePager(const osg::ref_ptr<T>* ip) {
setImagePager(ip.get()); }
~~^~~~
1 error generated.
Find a patch below, which resolves this.
Cheers
Mario
BEGIN
--- a/View 2015-11-26 11:37:57.000000000 +0100
+++ b/View 2015-11-26 11:38:53.000000000 +0100
@@ -127,7 +127,7 @@
/** Set the View's image pager.*/
void setImagePager(osgDB::ImagePager* ip);
- template<class T> void setImagePager(const osg::ref_ptr<T>* ip) {
setImagePager(ip.get()); }
+ template<class T> void setImagePager(const osg::ref_ptr<T>& ip) {
setImagePager(ip.get()); }
/** Get the View's image pager.*/
osgDB::ImagePager* getImagePager();
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151126/516d9f39/attachment-0001.htm>
More information about the osg-users
mailing list