Ignore:
Timestamp:
2017-02-17T16:28:40+13:00 (7 years ago)
Author:
ak19
Message:

Committing helpful comments of older local\setup.bat file for Win64 machines which still need to compile GS2 in 32 bit mode to get apache-httpd to compile. This file has been superseded by devel64-in32mode.bat which will be renamed to setup.bat hereafter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • local/greenstone2/windows-64bit/setup.bat

    r29524 r31424  
    22echo.
    33echo ******************************
     4
     5:: For notes on compiling GS2 on 64 bit Win 7 see
     6:: http://wiki.greenstone.org/doku.php?id=en:developer:compiling_apache&#compiling_the_apache-httpd_included_with_gs2_on_64_bit_windows_7
    47
    58set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_55
     
    1518echo + Set PERL_PATH=%PERL_HOME% and updated PATH
    1619
    17 rem set ANT_HOME=C:\apache-ant-1.9.4
    18 ::set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%
    19 ::set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;C:\Program Files (x86)\putty;C:\Windows\System32\UnxUtils\usr\local\wbin;%PATH%
    20 rem set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;C:\Program Files (x86)\putty;C:\Windows\System32\linuxtools;%PATH%
     20:: Setup Visual Studio env
    2121
    22 rem echo + Set ANT_HOME=%ANT_HOME% and updated PATH
     22:: Running VS in 64 bit mode doesn't work, need to run in 32 bit mode.
     23:: For now only VS9.0 (VS2008) works
     24:: call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
     25set vslocation=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
     26if not exist "%vslocation%" echo %vslocation% does not exist& goto done
     27pushd "%vslocation%"
     28call vsvars32.bat
     29popd
    2330
    24 :: call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
    25 ::set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
    26 set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC
    27 ::set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
    28 if not exist "%vclocation%" echo %vclocation% does not exist& goto done
    29 pushd "%vclocation%"
    30 call vcvarsall.bat amd64
    31 popd
     31:: VS10 fails: Common Tools folder not found for VS10
     32rem call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
     33
     34:: VS12 fails: Calling "vsvars32.bat" above produces the same error as calling
     35:: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat
     36:: (and possibly the same error as calling
     37:: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat without passing "amd64" param)
     38rem call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat"
     39
     40:: Error: https://groups.google.com/forum/#!topic/UniMRCP/Iybpn51UYnI
     41:: http://msdn.microsoft.com/en-us/library/ff770576.aspx
     42:: http://stackoverflow.com/questions/11544563/can-i-set-the-platform-toolset-from-the-command-line-when-building-with-vs2010s
     43:: /p:PlatformToolset=v100
     44
     45
     46:: If using SetEnv.cmd to set up MS SDK env (no longer needed even for compiling GS2 with debug):
     47
     48::call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd"
     49:: Run with /? to see what options it takes (/x86, /x64, /ia64, /vista, /xp, /win7 and more)
     50
     51::set sdklocation=C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
     52::if not exist "%sdklocation%" echo %sdklocation% does not exist& goto done
     53::pushd "%sdklocation%"
     54::call SetEnv.cmd /x64
     55::popd
     56
     57
    3258
    3359:done
     
    3561echo ******************************
    3662echo.
     63
Note: See TracChangeset for help on using the changeset viewer.