From Jean-Sebastien Guay, "As I discussed in the thread "Windows 7 beta: "The binary is not a valid Windows image."" on osg-users, I needed to add the /DYNAMICBASE linker option for executables to link properly in release mode on Windows 7 beta.
From Jean-Sebastien Guay, "As I discussed in the thread "Windows 7 beta: "The binary is not a valid Windows image."" on osg-users, I needed to add the /DYNAMICBASE linker option for executables to link properly in release mode on Windows 7 beta.

http://article.gmane.org/gmane.comp.graphics.openscenegraph.user/42400

Since this is a workaround for a bug in a beta OS (which may or may not be fixed, since it's mentioned in their release notes so they may just leave it as it is) I've marked the option as advanced, default to OFF, and clearly documented it as being useful for Windows 7 only. I'd like to be able to test for Windows 7 directly instead of the blanket IF(WIN32), but I can't figure out if this is possible in CMake.

Here's the modified CMakeLists.txt. It's a small change, with low impact, but will be useful to others who test out this OS and when it comes out. Note that I'm not familiar with this option in general, and didn't get any feedback to my questions in the above-mentioned thread, one of which was: Could we just add this option to all builds? What is the impact? That's still unclear to me, but without it OSG executables don't build, and the article I linked didn't seem to present any ill effects to enabling the option."


scrawl/osg,scrawl/osg,marchelbling/osg,openscenegraph/osg,jtorresfabra/osg,marchelbling/osg,openscenegraph/osg,openscenegraph/osg,artoolkit/osg,jtorresfabra/osg,tomasthoresen/osg,jtorresfabra/osg,marchelbling/osg,artoolkit/osg,jtorresfabra/osg,artoolkit/osg,tomasthoresen/osg,marchelbling/osg,scrawl/osg,tomasthoresen/osg,scrawl/osg,artoolkit/osg,openscenegraph/osg,tomasthoresen/osg