GeeKer Wang writes:
> I downloaded OpenSceneGraph-2.8.3-3.fc14.src.rpm.
>
> and found this in file "OpenSceneGraph.spec"
> %cmake -DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_WRAPPERS=ON
> -DBUILD_DOCUMENTATION=ON ../%{OSGSRCDIR}
>
> Does BUILD_OSG_WRAPPERS matter?
>
No, it doesn't.
>
> File OpenSceneGraph.spec and OpenSceneGraph-2.8.3.diff in
> OpenSceneGraph-2.8.3-3.fc14.src.rpm
> are list here.
>
Ok, nothing special there. In fact, the Fedora build doesn't specify the
release mode when calling cmake, so it's likely that no optimizations
are performed.
>
> PS: OSG compiled by myself conflicts with compiz, so that osgviewer
>shows a
> transparent window. export XLIB_SKIP_ARGB_VISUALS=1 can handle this.
>
This is even more weird. At this point, I'm thinking of the following
scenarios:
* The source you are compiling and the one from Fedora are slightly
different.
* The compiler used by the Fedora build system is different from yours
and it makes a difference.
* That compiler performs worse in Release mode (which implies -O3 by
default) than with standard optimizations. I have read that sometimes
-O3 could perform slower than -O2, that's why many systems make their
non-debug builds with -O2 by default.
--
Alberto
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org