Opened 11 years ago

Last modified 11 years ago

#57 new task

Create batch file which sets environment & launches devenv.exe for VS users

Reported by: marcusl Owned by: unassigned
Priority: major Milestone: 2.0 Release
Component: Build Version:
Keywords: Cc:

Description

Something like:

 call vcvars32.bat

 if not exist scons.bat / python.exe echo failure!!

 set INCLUDE / LIB / PATH = ... opensg/win32/supportlibs/ ...

 devenv /useenv

Makes it very easy to start.

Change History (2)

comment:1 Changed 11 years ago by marcusl

  • Milestone set to 2.0 Release

comment:2 Changed 11 years ago by marcusl

  • Type changed from defect to task

Just for reference, here's what I've used for 1.8 with VS8:

If this file is in the root-dir of the cvs-checkout, and the system has been built (by scons), this will work nicely. No extra pathes need to be set.

@echo off

call "%VS80COMNTOOLS%\vsvars32.bat"



set OSGDIR=%~dp0%/Build/win32-msvc80/installed

set SUPDIR=%~dp0%/../supportlibs

set INCLUDE=%OSGDIR%/include;%SUPDIR%/include;%INCLUDE%

set LIB=%OSGDIR%/lib;%SUPDIR%/lib;%LIB%

set PATH=%OSGDIR%/lib;%PATH%



devenv /useenv

And I know we're working on autolink (#55). So, all that's left is to make sure the windows build somehow always defines: _OSG_CONFIGURED_H_, OSG_WITH_XXX & OSG_BUILD_DLL. (I know there's been discussion on that..)

Then it would be _very_ easy to develop OpenSG projects on windows.

Note: See TracTickets for help on using tickets.