- Timestamp:
- 2017-02-17T20:49:38+13:00 (7 years ago)
- Location:
- local/greenstone2/windows-64bit
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
local/greenstone2/windows-64bit/setup.bat
r31424 r31427 1 1 @echo off 2 2 echo. 3 echo ** ****************************3 echo ** 4 4 5 :: For notes on compiling GS2 on 64 bit Win 7 see 5 :: There used to be a race condition when compiling apache httpd that caused GS2 compilation to fail. 6 :: See the notes on compiling GS2 on 64 bit Win 7 at 6 7 :: http://wiki.greenstone.org/doku.php?id=en:developer:compiling_apache&#compiling_the_apache-httpd_included_with_gs2_on_64_bit_windows_7 8 :: Sam fixed this for the release-kit with http://trac.greenstone.org/changeset/22490 9 :: while it's at last been fixed in the svn version with commit 31425 (building on flawed earlier attempts in commits 31421 and 31422). 10 11 :: Get the strawberry perl we use for GS from http://trac.greenstone.org/browser/main/trunk/release-kits/shared/windows/perl.zip?rev=head 12 :: this is referred to below as strawberry-perl32no64 7 13 8 14 set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_55 9 15 if not exist "%JAVA_HOME%" echo %JAVA_HOME% does not exist& goto done 10 set PATH=%JAVA_HOME%\bin;%PATH% 16 17 set PERL_HOME=C:\strawberry-perl32no64\perl 18 if not exist "%PERL_HOME%" echo %PERL_HOME% does not exist& goto done 19 20 set PATH=%JAVA_HOME%\bin;%PERL_HOME%\bin;C:\Program Files\SlikSvn\bin;%PATH% 21 11 22 12 23 echo + Set JAVA_HOME=%JAVA_HOME% and updated PATH 13 14 set PERL_HOME=C:\Perl6415 if not exist "%PERL_HOME%" echo %PERL_HOME% does not exist& goto done16 set PATH=%PERL_HOME%\bin;%PATH%17 18 24 echo + Set PERL_PATH=%PERL_HOME% and updated PATH 19 25 20 :: Setup Visual Studio env21 26 22 :: Running VS in 64 bit mode doesn't work, need to run in 32 bit mode. 27 :: Microsoft SDK no longer needed. Used to be needed only if compiling GS2 with debugging on, 28 :: but regular compiling (without debugging on) will also work with MS SDK environment. 29 rem set sdklocation=C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin 30 rem if not exist "%sdklocation%" echo %sdklocation% does not exist& goto done 31 rem pushd "%sdklocation%" 32 rem call "SetEnv.Cmd" 33 rem popd 34 35 36 37 :: Set up Visual MS Studio env needed to compile GS2. 38 :: Running VS in 64 bit mode doesn't work, need to run in 32 bit mode. 39 :: (It may be apache httpd that needs 32 bit mode to compile.) 23 40 :: For now only VS9.0 (VS2008) works 24 :: call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"25 41 set vslocation=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools 26 42 if not exist "%vslocation%" echo %vslocation% does not exist& goto done … … 29 45 popd 30 46 47 :done 48 echo Leaving local/setup.bat 49 echo ****************************** 50 echo. 51 52 53 :: ********************************************************************************** 54 :: Porting further remarks and attempted code from older version of setup.bat file 55 :: ********************************************************************************** 31 56 :: VS10 fails: Common Tools folder not found for VS10 32 57 rem call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" … … 54 79 ::call SetEnv.cmd /x64 55 80 ::popd 56 57 58 59 :done60 echo Leaving local/setup.bat61 echo ******************************62 echo.63
Note:
See TracChangeset
for help on using the changeset viewer.