[osg-users] Please test SVN version of OpenSceneGraph

Andy Skinner Andy.Skinner at mathworks.com
Fri Sep 28 05:23:10 PDT 2007

I don't remember the beginning of this thread, and what platform it is
on, so hopefully this will be relevant.

There are makefiles with the preprocessor targets, making this very

For example, to get the preprocessor output for (for example) Shape.cpp,
I do:
> cd src/osg
> make Shape.i

Shape.i is created in src/osg/CMakeFiles/osg.dir/Shape.i.

This is very handy.


-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Paul
Sent: Friday, September 28, 2007 3:09 AM
To: brianklistacct at alltel.net; OpenSceneGraph Users
Subject: Re: [osg-users] Please test SVN version of OpenSceneGraph

Brian Keener wrote:
>I tried the change you suggested but no go.  I think it might be deeper
>/usr/include/math.h where they do a define on log2 and log2f as follows

>#define log2(x) (log(x) / M_LOG2_E)
>#define log2f(x) (logf(x) / (float) M_LOG2_E)
>not sure.
If there is a way to display the compile command that cmake is executing

in this case, then you could try to add the -E switch to that command, 
so that the preprocessed output can be inspected.
This should probably help in identifying what is going on.


>osg-users mailing list
>osg-users at lists.openscenegraph.org

osg-users mailing list
osg-users at lists.openscenegraph.org

More information about the osg-users mailing list