User Tools

Site Tools


en:developer:windows_source_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:developer:windows_source_install [2017/02/23 03:36] anupamaen:developer:windows_source_install [2018/09/07 03:14] – [Current instructions] anupama
Line 26: Line 26:
 For the OS-bitness folder, you can at present choose from "darwin-64bit", "linux-32bit", "linux-64bit", "windows-64bit" For the OS-bitness folder, you can at present choose from "darwin-64bit", "linux-32bit", "linux-64bit", "windows-64bit"
  
-Use a text editor to edit ''local/gs3-setup.bat'' and ''local/gs3-devel.bat'' to contain the paths to Java, Perl, Ant, Visual Studio's VC folder on //your// system. We found that 32 bit MS VS 9.0 works in our case, if we set gs3-devel.bat to point to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC so that the script can then issue ''call vsvarsall.bat amd64'' to get it working for 64 bit machines. +Use a text editor to edit ''local/gs3-setup.bat'' and ''local/gs3-devel.bat'' to contain the paths to Java, Perl, Ant, Visual Studio's VC folder on //your// system. We found that **32 bit** MS VS 9.0 and 12.0 works in our case, if we set gs3-devel.bat to point to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC so that the script can then issue ''call vsvarsall.bat amd64'' to get it working for 64 bit machines. 
  
 Then you're ready to proceed by running the //toplevel// gs3-devel.bat: Then you're ready to proceed by running the //toplevel// gs3-devel.bat:
Line 36: Line 36:
 (The gs3-devel.bat will print a file not found error on Windows, since gs3-devel.bat runs gs3-setup.bat which refers to some files that the ant prepare step has yet to checkout.) (The gs3-devel.bat will print a file not found error on Windows, since gs3-devel.bat runs gs3-setup.bat which refers to some files that the ant prepare step has yet to checkout.)
  
-Next, open a new terminal, go back to into the SVN Greenstone 3 checkout directory and run the devel script again before running the actual compile command:+Once the ''ant prepare'' step has //finished//, open a new terminal, go back to into the SVN Greenstone 3 checkout directory and run the devel script again before running the actual compile command:
 <code> <code>
 gs3-devel.bat gs3-devel.bat
Line 65: Line 65:
   - Checkout the appropriate subfolder for your OS and bit architecture from http://svn.greenstone.org/local/greenstone2/ into your greenstone 2 checkout's toplevel folder. Name the downloaded subfolder ''local''. If you're on Windows 64 bit, then you'd do:\\ <code>svn co http://svn.greenstone.org/local/greenstone2/windows-64bit local</code>   - Checkout the appropriate subfolder for your OS and bit architecture from http://svn.greenstone.org/local/greenstone2/ into your greenstone 2 checkout's toplevel folder. Name the downloaded subfolder ''local''. If you're on Windows 64 bit, then you'd do:\\ <code>svn co http://svn.greenstone.org/local/greenstone2/windows-64bit local</code>
   - On 64 bit Windows, edit ''local/setup.bat'' to set the environment variables to where you have got the following installed on your system: SVN, Java SDK 7+, the Greenstone customised Strawberry Perl (download it from [[http://trac.greenstone.org/browser/main/trunk/release-kits/shared/windows/perl.zip?rev=head|here]]), Visual Studio 9+ (Microsoft SDK is no longer needed even when the debug flag is turned on).\\ On 32 bit Windows, rename the ''local/setup32.bat'' script to ''local/setup.bat'', then edit it to set the environment variables according to your system.   - On 64 bit Windows, edit ''local/setup.bat'' to set the environment variables to where you have got the following installed on your system: SVN, Java SDK 7+, the Greenstone customised Strawberry Perl (download it from [[http://trac.greenstone.org/browser/main/trunk/release-kits/shared/windows/perl.zip?rev=head|here]]), Visual Studio 9+ (Microsoft SDK is no longer needed even when the debug flag is turned on).\\ On 32 bit Windows, rename the ''local/setup32.bat'' script to ''local/setup.bat'', then edit it to set the environment variables according to your system.
-  - Run when the top level GS2's ''setup.bat'', which will automatically run ''local/setup.bat'' too:\\ <code>cd <your GS2 svn checkout folder>+  - Run the top level GS2's ''setup.bat'', which will automatically run ''local/setup.bat'' too:\\ <code>cd <your GS2 svn checked out folder>
 setup.bat</code> setup.bat</code>
   - Finally, still from your top level GS2 folder, run\\ <code>makegs2x64.bat</code> Type "Y" to Extract All, then when the DOS prompt display asks what you want to compile up, type "4" to compile all without debugging, or type "5" to compile everything with debugging on. (Type "6" to //clean// compiled files before recompilation if you want to recompile from scratch).   - Finally, still from your top level GS2 folder, run\\ <code>makegs2x64.bat</code> Type "Y" to Extract All, then when the DOS prompt display asks what you want to compile up, type "4" to compile all without debugging, or type "5" to compile everything with debugging on. (Type "6" to //clean// compiled files before recompilation if you want to recompile from scratch).
en/developer/windows_source_install.txt · Last modified: 2023/03/19 21:17 by kjdon