en:developer:windows_source_install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:developer:windows_source_install [2017/02/20 05:13] – anupama | en:developer:windows_source_install [2023/03/13 01:46] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== Source Installation on Windows ====== | ====== Source Installation on Windows ====== | ||
======Current instructions====== | ======Current instructions====== | ||
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
Tested on Windows (Vista) 64 bit. | Tested on Windows (Vista) 64 bit. | ||
Line 10: | Line 12: | ||
* An SVN client installed, which can be downloaded from http:// | * An SVN client installed, which can be downloaded from http:// | ||
* Java JDK 6.x or later. For compiling on Windows 64 bit, need the 64 bit version of JDK. For compiling Greenstone 3.06 and onwards, need JDK 7.x or later. | * Java JDK 6.x or later. For compiling on Windows 64 bit, need the 64 bit version of JDK. For compiling Greenstone 3.06 and onwards, need JDK 7.x or later. | ||
- | * PERL (ActivePerl for Windows) | + | * PERL: we used to use ActivePerl for Windows. Now we provide our own modified version of [[http:// |
* **Visual Studio** 8 or later for compiling C++ code. (We haven' | * **Visual Studio** 8 or later for compiling C++ code. (We haven' | ||
* If you want to compile GS2 or GS3 with debugging on, you will also need Microsoft SDK | * If you want to compile GS2 or GS3 with debugging on, you will also need Microsoft SDK | ||
Line 20: | Line 22: | ||
< | < | ||
- | svn co http:// | + | svn co https:// |
cd gs3-svn | cd gs3-svn | ||
- | svn co http:// | + | svn co https:// |
</ | </ | ||
For the OS-bitness folder, you can at present choose from " | For the OS-bitness folder, you can at present choose from " | ||
- | Use a text editor to edit '' | + | Use a text editor to edit '' |
Then you're ready to proceed by running the // | Then you're ready to proceed by running the // | ||
Line 36: | Line 38: | ||
(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 '' |
+ | |||
+ | [ | ||
+ | If you're using Visual Studio 14 ([[https:// | ||
+ | < | ||
+ | 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 | ||
+ | </ | ||
+ | ] | ||
+ | |||
+ | 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: | ||
< | < | ||
gs3-devel.bat | gs3-devel.bat | ||
Line 44: | Line 59: | ||
**Note:** after compiling with the above steps, your terminal would be left in a state where running GLI would not be able to locate the Greenstone building scripts like '' | **Note:** after compiling with the above steps, your terminal would be left in a state where running GLI would not be able to locate the Greenstone building scripts like '' | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <!-- ######################################################################################## | + | On 64 bit windows, |
- | ############################################################################################## | + | |
- | ############################################################################################ | + | |
- | ######################################################################################### | + | |
- | <TAB> | + | |
- | On 64 bit windows, | + | |
- | The following instructions | + | Fixes to avoid the race conditions were made by introducing 2 scripts [[http:// |
**You need:** | **You need:** | ||
Line 62: | Line 72: | ||
* If you want to compile GS2 with debugging on, you will also need Microsoft SDK | * If you want to compile GS2 with debugging on, you will also need Microsoft SDK | ||
- | - Checkout greenstone2 from SVN:\\ < | + | - Checkout greenstone2 from SVN:\\ < |
+ | - **NOTE:** If you're using Visual Studio 14 ([[https:// | ||
+ | cd gs2-svn | ||
+ | pushd 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 | ||
+ | </ | ||
- Checkout the appropriate subfolder for your OS and bit architecture from http:// | - Checkout the appropriate subfolder for your OS and bit architecture from http:// | ||
- | | + | - On 64 bit Windows, edit '' |
- | | + | - Run the top level GS2's '' |
- | - Run when the top level GS2's '' | + | |
setup.bat</ | setup.bat</ | ||
- | - Finally, still from your top level GS2 folder, run\\ < | + | - Finally, still from your top level GS2 folder, run\\ < |
- | + | - Finally, check out and compile GLI:\\ < | |
- | + | svn co https:// | |
- | In GS2 SVN checkouts from before changeset [[http:// | + | cd gli |
+ | makegli.bat | ||
+ | makejar.bat | ||
+ | </ | ||
- | </TAB> | + | </tabbox> |
- | </ | + | |
======Old instructions====== | ======Old instructions====== | ||
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
**You NEED Visual Studio C++.** (We haven' | **You NEED Visual Studio C++.** (We haven' | ||
Line 180: | Line 198: | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <!-- ######################################################################################## | + | |
- | ############################################################################################## | + | |
- | ############################################################################################ | + | |
- | ######################################################################################### | + | |
- | <TAB> | + | |
You will need: | You will need: | ||
* Visual Studio, to use its compiling capabilities which work with the Windows makefiles of Greenstone | * Visual Studio, to use its compiling capabilities which work with the Windows makefiles of Greenstone | ||
Line 321: | Line 334: | ||
- | </TAB> | + | </tabbox> |
- | </ | + |
en/developer/windows_source_install.txt · Last modified: 2023/03/19 21:17 by kjdon