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 [2018/11/23 07:21] – [Current instructions] anupamaen:developer:windows_source_install [2018/11/27 03:26] – [Current instructions] anupama
Line 27: Line 27:
  
 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.  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. 
- 
-**NOTE:** If you're using Visual Studio 14 ([[https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History|a.k.a. Visual Studio 2015]]), then before proceeding, backup your windows iconv.zip and rename gs-libiconv-winVS14-VS2015-plus.zip as the new iconv.zip, as below. (For details on which libiconv this uses and how it was modified to get it to work with VS14, refer [[http://trac.greenstone.org/browser/main/trunk/greenstone2/common-src/indexers/packages/windows/iconv/GS-README-VS14-VS2015-AND-LATER.txt|to this]].) 
-<code> 
-cd gs2build\common-src\indexers\packages\windows\iconv 
-move iconv.zip iconv_preVS14.zip 
-move gs-libiconv-winVS14-VS2015-plus.zip iconv.zip 
-</code> 
- 
  
 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 44: 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.)
  
-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:+Once the ''ant prepare'' step has //finished//
 + 
 +If you're using Visual Studio 14 ([[https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History|a.k.a. Visual Studio 2015]])then before proceeding, backup your windows iconv.zip and rename iconv-winVS14-VS2015-plus.zip as the new iconv.zip, as below. (For details on which libiconv this uses and how it was modified to get it to work with VS14, refer [[http://trac.greenstone.org/browser/main/trunk/greenstone2/common-src/indexers/packages/windows/iconv/GS-README-VS14-VS2015-AND-LATER.txt|to this]].) 
 +<code> 
 +pushd gs2build\common-src\indexers\packages\windows\iconv 
 +move iconv.zip iconv_preVS14.zip 
 +move iconv-winVS14-VS2015-plus.zip iconv.zip 
 +rmdir /s /q iconv 
 +popd 
 +</code> 
 + 
 +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 71: Line 74:
  
   - Checkout greenstone2 from SVN:\\ <code> svn co http://svn.greenstone.org/main/trunk/greenstone3 gs3-svn</code>   - Checkout greenstone2 from SVN:\\ <code> svn co http://svn.greenstone.org/main/trunk/greenstone3 gs3-svn</code>
-  - **NOTE:** If you're using Visual Studio 14 ([[https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History|a.k.a. Visual Studio 2015]]), then before proceeding, backup your windows iconv.zip and rename gs-libiconv-winVS14-VS2015-plus.zip as the new iconv.zip, as below. (For details on which libiconv this uses and how it was modified to get it to work with VS14, refer [[http://trac.greenstone.org/browser/main/trunk/greenstone2/common-src/indexers/packages/windows/iconv/GS-README-VS14-VS2015-AND-LATER.txt|to this]].)\\ <code> +  - **NOTE:** If you're using Visual Studio 14 ([[https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History|a.k.a. Visual Studio 2015]]), then before proceeding, backup your windows iconv.zip and rename iconv-winVS14-VS2015-plus.zip as the new iconv.zip, as below. (For details on which libiconv this uses and how it was modified to get it to work with VS14, refer [[http://trac.greenstone.org/browser/main/trunk/greenstone2/common-src/indexers/packages/windows/iconv/GS-README-VS14-VS2015-AND-LATER.txt|to this]].)\\ <code> 
-cd gs2build\common-src\indexers\packages\windows\iconv+pushd common-src\indexers\packages\windows\iconv
 move iconv.zip iconv_preVS14.zip move iconv.zip iconv_preVS14.zip
-move gs-libiconv-winVS14-VS2015-plus.zip iconv.zip+move iconv-winVS14-VS2015-plus.zip iconv.zip 
 +rmdir /s /q iconv 
 +popd
 </code> </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>   - 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>
en/developer/windows_source_install.txt · Last modified: 2023/03/19 21:17 by kjdon