From c999dfb154aedb483847f975b306a702c642214d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 9 Feb 2002 14:29:58 +0000 Subject: [PATCH] Updates to docs and fixes to a few warnings. --- INSTALL | 41 +++++++++++++++++++++++++++++++++ include/osgText/Font | 4 ++-- src/osg/Camera.cpp | 10 ++++---- src/osg/NodeVisitor.cpp | 4 ++-- src/osgDB/Registry.cpp | 36 ++++++++++------------------- src/osgText/FTGLTextureFont.cpp | 2 +- src/osgText/FTPolyGlyph.cpp | 2 +- 7 files changed, 65 insertions(+), 34 deletions(-) diff --git a/INSTALL b/INSTALL index 62cdd66a6..4ee20392e 100644 --- a/INSTALL +++ b/INSTALL @@ -378,3 +378,44 @@ STLport under IRIX with MipsPro7.2 of using STLport own iostreams is required, which is in contrast to the situation under Windows as outlined above. Let us know how you get on. + + +RedHat 7.1 & GLU1.3 +------------------- + + I have posted a simple fix for those of us who have been unable to + correctly build OSG 0.8.43 on Redhat 7.2. You can download it + at www.terrainengine.com/fixosg.tar.gz. + + To install it, follow these steps: + + English + ----------- + 1) Untar the tarball. It will create a directory called fixosg/ + 2) Change to the fixosg/ directory + 3) Become root + 4) Run the script called fixosg + + Cmd line + ------------- + tar xvzf fixosg.tar.gz + cd fixosg/ + su + (your root password) + ./fixosg + exit + + You should then be able to do a "make" in your OSG directory and + everything will build as it should. Let me know if this doesn't + work and I will try to improve it. Email me directly for help instead of + posting here. + + There's a README in the tarball with some info on what the script + actually does. There's nothing wrong with OSG itself; the + problem with Redhat 7.2 is that it doesn't have GLU 1.3 by default, + which OSG is now dependent on (for osgText.) + + Good luck everyone. + + - Clay + diff --git a/include/osgText/Font b/include/osgText/Font index 793eb3f4f..c7425de3a 100644 --- a/include/osgText/Font +++ b/include/osgText/Font @@ -115,7 +115,7 @@ class OSGTEXT_EXPORT RasterFont:public Font RasterFont():Font(){} RasterFont(const RasterFont& font,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): Font(font,copyop) {} - RasterFont(const std::string& font):Font() {} + RasterFont(const std::string& /*font*/):Font() {} virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast(obj)!=NULL; } virtual const char* className() const { return "RasterFont"; } @@ -132,7 +132,7 @@ class OSGTEXT_EXPORT VectorFont:public Font VectorFont():Font(){} VectorFont(const VectorFont& font,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): Font(font,copyop) {} - VectorFont(const std::string& font):Font(){} + VectorFont(const std::string& /*font*/):Font(){} virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast(obj)!=NULL; } virtual const char* className() const { return "VectorFont"; } diff --git a/src/osg/Camera.cpp b/src/osg/Camera.cpp index 9b2c447f8..13d383f7c 100644 --- a/src/osg/Camera.cpp +++ b/src/osg/Camera.cpp @@ -264,8 +264,8 @@ const double Camera::left() const { case(FRUSTUM): case(PERSPECTIVE): return _left * _zNear; + default: return _left; } - return _left; } const double Camera::right() const { @@ -273,8 +273,8 @@ const double Camera::right() const { case(FRUSTUM): case(PERSPECTIVE): return _right * _zNear; + default: return _right; } - return _right; } const double Camera::top() const @@ -283,8 +283,8 @@ const double Camera::top() const { case(FRUSTUM): case(PERSPECTIVE): return _top * _zNear; + default: return _top; } - return _top; } const double Camera::bottom() const @@ -293,8 +293,8 @@ const double Camera::bottom() const { case(FRUSTUM): case(PERSPECTIVE): return _bottom * _zNear; + default: return _bottom; } - return _bottom; } const double Camera::zNear() const @@ -502,6 +502,8 @@ void Camera::dirtyTransform() notify(WARN)<<"Warning: Camera::dirtyTransform() failed to invert _eyeToModelTransform"<