Changeset 29059 for local/greenstone2/windows-64bit/setup32.bat
- Timestamp:
- 2014-05-15T16:50:01+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
local/greenstone2/windows-64bit/setup32.bat
r29053 r29059 15 15 echo + Set PERL_PATH=%PERL_HOME% and updated PATH 16 16 17 :: WORKS: 18 call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" 17 :: Setup Visual Studio env 19 18 20 :: Common Tools folder not found 21 :: call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" 19 :: Running VS in 64 bit mode doesn't work, need to run in 32 bit mode. 20 :: For now only VS9.0 (VS2008) works 21 :: call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" 22 set vslocation=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools 23 if not exist "%vslocation%" echo %vslocation% does not exist& goto done 24 pushd "%vslocation%" 25 call vsvars32.bat 26 popd 22 27 23 :: Same problem as with C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat24 :: call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat"28 :: VS10 fails: Common Tools folder not found for VS10 29 rem call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" 25 30 26 27 :: 64 bit mode doesn't work 28 :: Running vcvarsamd64_x86 has the same problem as below 29 ::set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC 30 ::set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC 31 ::::set vclocation=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86 32 ::if not exist "%vclocation%" echo %vclocation% does not exist& goto done 33 ::pushd "%vclocation%" 34 ::call vcvarsamd64_x86.bat 35 ::::call vcvarsall.bat amd64 36 ::popd 37 31 :: VS12 fails: Calling "vsvars32.bat" above produces the same error as calling 32 :: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat 33 :: (and possibly the same error as calling 34 :: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat without passing "amd64" param) 35 rem call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat" 38 36 39 37 :: Error: https://groups.google.com/forum/#!topic/UniMRCP/Iybpn51UYnI … … 41 39 :: http://stackoverflow.com/questions/11544563/can-i-set-the-platform-toolset-from-the-command-line-when-building-with-vs2010s 42 40 :: /p:PlatformToolset=v100 43 :: call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat"44 41 45 42 46 :: If using SetEnv.cmd: 47 48 :: http://go4answers.webhost4life.com/Example/windows-sdk-v70a-setenvbat-218785.aspx 49 :: explains that SetEnv.cmd does exist in the new Microsoft SDK: 50 :: C:\Windows\System32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" 51 :: (Unused: http://stackoverflow.com/questions/887894/how-to-find-windows-sdks-setenv-cmd-setenv-cmd-does-not-work-correctly ) 43 :: If using SetEnv.cmd to set up MS SDK env (no longer needed even for compiling GS2 with debug): 52 44 53 45 ::call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" … … 60 52 ::popd 61 53 62 :: http://www.apachelounge.com/viewtopic.php?t=3348 63 :: http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval 64 :: https://ask.mozilla.org/question/256/failure-during-conversion-to-coff-file-invalid-or-corrupt/ 65 :: Rename cvtres.exe in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64, then put the one from 66 :: C:\Windows\Microsoft.NET\Framework\v4.0.30319 (or from C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64) in there 67 ::set cvlocation=C:\Windows\Microsoft.NET\Framework\v4.0.30319 68 ::set cvlocation=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64 69 ::if exist "%cvlocation%\cvtres.exe" set PATH=%cvlocation%;%PATH% 54 70 55 71 56 :done … … 74 59 echo. 75 60 76 :: http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval
Note:
See TracChangeset
for help on using the changeset viewer.