There was one other change for OS X 10.4 that I forgot to include.
Source/System/NodeCores/Drawables/VolRen/OSGDVRIsoShader.cpp has to be
modified so that DVIIsoShader::getLightSources() declares the variable
maxNumLights to be of type GLint rather than int.  GLint is a typedef for
long rather than int.  A patch is attached.

 -Patrick

Patrick Hartling wrote:
> I was able to get the current CVS version of OpenSG working on Mac OS X
> Tiger today, but I had to make some changes to account for changes in the
> OS.  The changes are as follows:
> 
>    * GCC 4.0 in OS X 10.4 does not have the option -fexport-coalesced, so
>      I had to modify CommonConf/common.powerpc-apple-darwin-g++.in
>      accordingly.  I suppose that there should probably be a new file
>      CommonConf/common.powerpc-apple-darwin-g++4.in created to avoid
>      breaking OpenSG on OS X 10.3.
>    * Tiger finally includes dlopen(3), and the dlcompat-based code in
>      Source/Base/OSHelpers/darwin does not compile with GCC 4.0.  I
>      removed the reference to that directory in CommonConf/common.libs.in.
>      I do not know what the correct fix would be to allow proper use on
>      OS X 10.3.
>    * GCC 4.0 complains about trying to use int* when a socklen_t* is
>      expected, so I modified Source/Base/Network/Socket/OSGSocket.h to
>      account for that.  The change is attached as a patch.
> 
> I have only tested the optimized build of OpenSG on Tiger at this point, but
> so far, it is working wonderfully.
> 
>  -Patrick
> 
> 
> P.S. -Ddarwin is still missing from the output of 'osg-config --cflags'.
> This compiler option is needed to satisfy expectations of
> OpenSG/OSGConfig.h.  I would agree with a previous post suggesting that
> __APPLE__ should be used instead of testing for the 'darwin' symbol since
> __APPLE__ seems to be defined by default all the time, thus requiring no
> extra work for anyone.


-- 
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/
Index: Source/System/NodeCores/Drawables/VolRen/OSGDVRIsoShader.cpp
===================================================================
RCS file: 
/cvsroot/opensg/OpenSG/Source/System/NodeCores/Drawables/VolRen/OSGDVRIsoShader.cpp,v
retrieving revision 1.3
diff -u -r1.3 OSGDVRIsoShader.cpp
--- Source/System/NodeCores/Drawables/VolRen/OSGDVRIsoShader.cpp        7 Dec 
2004 01:17:33 -0000       1.3
+++ Source/System/NodeCores/Drawables/VolRen/OSGDVRIsoShader.cpp        5 May 
2005 22:25:04 -0000
@@ -617,7 +617,7 @@
     diffuseLights .clear();
     specularLights.clear();
 
-    int maxNumLights;
+    GLint maxNumLights;
 
     glGetIntegerv(GL_MAX_LIGHTS, &maxNumLights);
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to