The following diff, will fix OSGFBOViewport.cpp, its the same fix as was 
applied to all the following files, which is what Adrian hit previously...

Experimental/ShadowViewport/OSGPerspectiveShadowMap.cpp
Experimental/ShadowViewport/OSGDitherShadowMap.cpp
Experimental/ShadowViewport/OSGPCFShadowMap.cpp
Experimental/ShadowViewport/OSGPCSSShadowMap.cpp
Experimental/ShadowViewport/OSGStdShadowMap.cpp
Experimental/ShadowViewport/OSGTreeRenderer.cpp
Experimental/ShadowViewport/OSGVarianceShadowMap.cpp



Index: OSGFBOViewport.cpp
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/System/Window/OSGFBOViewport.cpp,v
retrieving revision 1.5
diff -r1.5 OSGFBOViewport.cpp
112a113,117
 > // Some installations have a typo in the name for this one
 > #ifndef GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT
 > #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
 > #endif
 >


Anthony

--

Anthony Steed wrote:
>
>
> This may be the wrong list for this question (the links to mail 
> archives are still down, so I also couldn't search for previous 
> messages).
>
> I am compiling OpenSG 1.* from CVS. I haven't done this in a long 
> time, but we would like to port some software on to the Cal3D plugin. 
> I am doing this on an up-to-date Prism running Suse, which is 
> relatively up to date (it has OpenGL2.0 on it).
>
> I get a problem is (truncated in an obvious way, and removing warnings)
>
> g++ -ansi -use_readonly_const -ftemplate-depth-100 -fPIC -O2 -fPIC 
> -DOSG_WITH_GLUT -DOSG_WITH_JPG -DOSG_WITH_TIF -DOSG_WITH_PNG 
> -DOSG_WITH_GIF -D_GNU_SOURCE -D_OSG_HAVE_CONFIGURED_H_ -DOSG_BUILD_DLL 
> -DOSG_COMPILESYSTEMLIB -IBuild/linux-gcc/Source/Base 
> -ISource/System/Action -ISource/System/Action/DrawAction 
> -ISource/System/Action/IntersectAction 
> -ISource/System/Action/RenderAction
> ...
> -ISource/Base/Xml -IBuild/linux-gcc/Source/System/FileIO/ScanParseSkel 
> -c -o Build/linux-gcc/Source/System/opt/OSGFBOViewport.os 
> Source/System/Window/OSGFBOViewport.cpp
> ...
> Source/System/Window/OSGFBOViewport.cpp: In member function `bool
>   osg::FBOViewport::checkFrameBufferStatus(osg::Window*)':
> Source/System/Window/OSGFBOViewport.cpp:1215: error: `
>   GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT' undeclared (first use this
>   function)
> Source/System/Window/OSGFBOViewport.cpp:1215: error: (Each undeclared
>   identifier is reported only once for each function it appears in.)
> scons: *** [Build/linux-gcc/Source/System/opt/OSGFBOViewport.os] Error 1
> scons: building terminated because of errors.
>
>
> GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT is actually undefined on this 
> machine in glext.h (where GL_GLEXT_VERSION is 27).
>
> The define guard around the statement is just:
>
> #ifndef 
> GL_EXT_framebuffer_object                                                     
>              
>
>
> there must be a few more refinements that are needed there. This is 
> something I can easily hack around for testing purposes, but someone 
> who knows more about opengl extensions might be able to suggest the 
> correct factoring to go back in to CVS.
>
>
> Anthony
>
>
>
>
>
>
>
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to