Hi Don, attached pls find some instructions and a .bat file demonstrating the process of unpacking sources, compiling, and building an InnoSetup win32 binary installer for OSG et al using VisualStudio.NET 7.1 2003.
It is derived from that used to build the OSG v1.2 win32 installer. For reference, I've posted an archive of the sources that demonstrate these instructions at http://mew.cx/testing/ This turned out to be more of a pain than I expected. The process is convoluted due to the lack of some standard *nix cmdline tools on Windows, and the inherent non-automatability of some parts of Visual Studio, etc. Fact is on Linux, the whole thing could be automated with something like "make installer" (or "ebuild openscenegraph"); on Windows it's all click-here-pull-that-stand-on-right-foot-double-take-three-times-etc which simply ain't fun to write documentation for. Cheers -- mew Don Burns wrote: > Hi Mike, > > Would it make sense to write up a small set of instructions on building > the Windows binary distribution (what goes where, etc.)? I'll make a > web page with a table containing OSG/OP/OT releases and compiler versions. > > I'd like to see more binary releases available as well for other > platforms. > > And... does anyone know of a wizard style installer for Linux? Wizard > installations ar about the only thing I like about Windows. > > -don
How to build an OSG win32 binary installer Mike Weiblen http://mew.cx/ 2006-10-02 This package demonstrates how to build an InnoSetup ("ISS") win32 binary installer for OpenSceneGraph from source archives. This process was derived from that used to create the "osg1.2_setup_2006-09-13.exe" installer. (NOTE: The COLLADA ".dae" plugin has been excluded from this demonstration, due to the COLLADA DOM license which requires all documentation to be included when redistributing DOM source code.) Prerequisites to be installed beforehand: - Windows XP - MS Visual Studio.NET 7.1 2003 - Inno Setup (http://www.jrsoftware.org/) - some other DOS cmdline tools? (cat, zip) ============================================================================= 1) Unpack the osgBuild .zip archive 2) Run the UNPACK_FOR_ISS.bat script to create the "BuildDir" staging area. 3) Enter BuildDir 4) Build OpenThreads: To start VisualStudio, doubleclick RUN_vs71_OpenThreads.bat At "convert VC project format" dialog, click "Yes To All" In "Solution Configurations" pulldown, select "Release" Rightclick "Solution 'OpenThreads'", select "Build Solution" When build complete, close VisualStudio 5) Build Producer: To start VisualStudio, doubleclick RUN_vs71_Producer.bat At "convert VC project format" dialog, click "Yes To All" In "Solution Configurations" pulldown, select "Release" Rightclick "Solution 'Producer'", select "Build Solution" When build complete, close VisualStudio 6) Build OpenSceneGraph + extras To start VisualStudio, doubleclick RUN_vs71_OSG+xtra.bat At "convert VC project format" dialog, click "Yes To All" In "Solution Configurations" pulldown, select "Release" Rightclick "Solution "OpenSceneGraph+xtra'", select "Build Solution" When build complete, close VisualStudio 7) Doubleclick CLEANUP_BEFORE_ISS.bat this removes non-distributables that would be grabbed by ISS wildcards. 8) IMPORTANT: Edit the .iss file to update the OSG version and build timestamp. 9) Run the .iss file in InnoSetup, build the installer executable. //EOF
REM UNPACK_FOR_ISS.bat - create a staging area for building ISS installer REM mew 2006-10-02 set ROOT=%CD% REM create the verbatim source archive osgsrc.zip ------------------------- set PKG=OSG_OP_OT-1.2 unzip %ROOT%\%PKG%.zip set TGT1=osgsrc ren %PKG% %TGT1% cd %TGT1% unzip %ROOT%\buildtools_2006-10-02a.zip unzip %ROOT%\osgtoy_2006-09-10a.zip unzip %ROOT%\osgvrpn_2006-08-13a.zip REM create the augmented workspace with additional projects added cd OpenSceneGraph\VisualStudio cat OpenSceneGraph.dsw *.dswx > OpenSceneGraph+xtra.dsw del *.dswx cd %ROOT%\%TGT1% zip -r %ROOT%\%TGT1%.zip . REM unpack the runtime components ----------------------------------------- cd %ROOT% set TGT2=BuildDir ren %TGT1% %TGT2% copy %ROOT%\%TGT1%.zip %ROOT%\%TGT2% del %ROOT%\%TGT1%.zip cd %ROOT%\%TGT2% unzip %ROOT%\3rdParty_Win32binaries_2005_05_10.zip mkdir 3rdParty\data cd 3rdParty\data unzip ..\gdal_data.zip ren data gdal_data unzip ..\proj4_data.zip cd %ROOT%\%TGT2% unzip %ROOT%\win32_2006-07-19a.zip unzip %ROOT%\OpenSceneGraph-Data-1.1.zip unzip %ROOT%\3rdParty_VRPN_2005-11-14a.zip unzip %ROOT%\3rdParty_glslfe_2006-09-04a.zip unzip %ROOT%\3rdParty_lua511_2006-09-04a.zip unzip %ROOT%\osgtoy-data_2006-09-10a.zip @echo %TGT2% staging area created pause
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
