[osg-submissions] Using command-line build system nmake to build OpenSceneGraph does not work
René Molenaar
megamillerzoid at gmail.com
Tue Feb 12 02:40:13 PST 2008
Using commandline build system nmake on windows does not work.
This is caused by the OSG_MSVC_VERSIONED_DLL hack.
there are hard-coded paths to place the dll's in the bin /dir that normally
would go
in the lib/config (release/debug) dirs. Nmake has different locations for
the files (no config dir).
fix: change the macro's in OsgMacroUtils.cmake for the IF(NOT MSVC_IDE)
situation.
Libs go in lib/, and DLLs and executables go in bin/
To accopmplish this for MSVC_IDE the targets get a "../../bin" prefix,
for nmake this should be "../bin" (because there are no config folders).
This fix mimics the behaviour of the MSCV_IDE (visual studio) build system
when building with nmake.
Note:
A change in the main CMakeLists.txt creates the needed plugin directory in
the binary dir.
see included files for the changes:
r7885fix-v2/CMakeModules/OsgMacroUtils.cmake
r7885fix-v2/osgWrappers/CMakeLists.txt
r7885fix-v2/CMakeLists.txt
The behaviour of visual studio projects (and other build systems) remain
unchanged.
Tested building and installing with nmake and visual studio 8 debug and
release.
Submitted by: René Molenaar
to: osg-submissions at lists.openscenegraph.org
email: megamillerzoid at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080212/24ca7643/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r7885_nmake_fix.zip
Type: application/zip
Size: 14447 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080212/24ca7643/attachment.zip
More information about the osg-submissions
mailing list