Changeset 35624


Ignore:
Timestamp:
2021-10-16T14:36:03+13:00 (3 years ago)
Author:
davidb
Message:

Updated versions, having been tested working in conjunction with the Release Kit code

Location:
local/greenstone3/windows-32bit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • local/greenstone3/windows-32bit/README.txt

    r35465 r35624  
    1 
     1#----
     2# Supporting command-line tools to compile up Greenstone3 as 32-bit binaries
     3# (32-bit binaries will run on a 64-bit Windows OS, but will need a 32-bit JDK installed)
    24
    35
    46# JDK8 32-bit
    57
    6   wget https://cdn.azul.com/zulu/bin/zulu8.56.0.21-ca-jdk8.0.302-win_i686.zip
    78  unzip zulu8.56.0.21-ca-jdk8.0.302-win_i686.zip
    8   mv zulu8.56.0.21-ca-jdk8.0.302-win_i686 zulu-jdk8
     9  mv zulu8.56.0.21-ca-jdk8.0.302-win_i686 zulu-jdk8-32bit
    910
    10 # Strawberry Perl 32-bit
     11# Perl5 -- This zip does not provide a top-level folder, so use '-d' on uzip
     12
     13  unzip -d strawberry-perl5-32bit strawberry-perl-5.18.4.1-32bit-portable.zip
     14 
     15# Ant              -- This is already unzipped and checked in
     16
     17# VisualStudio     -- This is assumed to be installed in your System area
     18
     19# Subversion (svn) -- This is assumed to already be on our PATH
     20
     21
     22# Running gs3-devel.bat sets PATH and other relevant environment variables
     23# appropriately
     24
     25.\gs3-devel.bat
     26cd ..
     27
     28# Then compile Greenstone3 in the ususal way
     29
     30  ant
     31  ant prepare
     32  ant install
     33  # ...
     34
     35#----
     36
     37
     38####
     39# Notes on where resources came from ...
     40####
     41
     42##
     43# JDK8 32-bit
     44##
     45
     46# The JDK zip file came from Azul
     47
     48  firefox "https://www.azul.com/downloads/
     49
     50# => download zip
     51
     52# At time of writing, that was:
     53
     54  wget "https://cdn.azul.com/zulu/bin/zulu8.56.0.21-ca-jdk8.0.302-win_i686.zip"
     55
     56
     57##
     58# Perl
     59##
     60
     61# The Perl zip file came from Strawberry Perl
    1162
    1263  wget https://strawberryperl.com/download/5.18.4.1/strawberry-perl-5.18.4.1-32bit-portable.zip
    1364
    14 # ** Doesn't come with Top-level folder => use 7Zip or Right-click Windows unzip, and rename:
    15   mv strawberry-perl-5.18.4.1-32bit-portable strawberry-perl5
    16 
    17 # ** OR
    18   unzip -d strawberry-perl5 strawberry-perl-5.18.4.1-32bit-portable.zip
    19 
    20 
    21 
    22 
    23 ====
    24 ## 64-bit (UNUSED)
    25 
    26 
    27 
    28 ##https://www.azul.com/downloads/?version=java-11-lts&os=windows&architecture=x86-64-bit&package=jdk
    29 ##https://cdn.azul.com/zulu/bin/zulu11.50.19-ca-jdk11.0.12-win_x64.zip
    30 
    31 ##unzip zulu11.50.19-ca-jdk11.0.12-win_x64.zip
    32 ##mv zulu11.50.19-ca-jdk11.0.12-win_x64 zulu-jdk11
    33 
    34 # JDK8
    35 #unzip zulu8.56.0.21-ca-jdk8.0.302-win_x64.zip
    36 #mv zulu8.56.0.21-ca-jdk8.0.302-win_x64 zulu-jdk8
    37 
    38 
    39 
    40 ## wget https://strawberryperl.com/download/5.18.4.1/strawberry-perl-5.18.4.1-64bit-portable.zip
    41 ## mv strawberry-perl-5.18.4.1-64bit-portable strawberry-perl5
    42 
  • local/greenstone3/windows-32bit/gs3-devel.bat

    r35465 r35624  
    11@echo off
    22
    3 ::rem pushd "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC"
    4 ::pushd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC"
    5 ::call vcvarsall.bat amd64
    6 ::popd
     3::::
     4:: Visual Studio
     5::::
    76
    8 ::/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat
    9 
     7:: The Start-Menu way to get a VisualStudio terminal open is:
     8::
     9::   %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
     10::
     11:: where cwd is:
     12::   "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\"
     13::
     14:: To work within an existing terminal window, use 'call' instead:
     15::
    1016pushd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\"
    11 :: ::%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
    12 ::call "VC\Auxiliary\Build\vcvars64.bat"
    1317call "VC\Auxiliary\Build\vcvars32.bat"
    1418popd
    1519
     20echo Environment for Visual Studio 32-bit Compiler setup
    1621
    17 echo Environment for Visual Studio set up
     22::::
     23:: Ant (run as a developer)
     24::::
    1825
    19 rem For ant prepare to work, now need wget (along with wgetrc file) on PATH
    20 rem These are just the GS3 wget
    21 echo "Adding wget with its wgetrc to PATH for devel"
     26:: For 'ant prepare' to work, now need wget (along with wgetrc file) on PATH
     27:: In 'local/bin' folder there is an appropriate binary for this (actually
     28:: an external SVN reference to Greenstone's winbin support tools area)
     29
     30echo Adding wget with its wgetrc to PATH for devel
    2231pushd bin
    2332set PATH=%CD%;%PATH%
  • local/greenstone3/windows-32bit/gs3-setup.bat

    r35465 r35624  
    22
    33::set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_45
    4 ::set JAVA_HOME=C:\PROGRA~1\Java\JDK18~1.0_4
    5 ::set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_55
    6 ::set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_20
    7 set JAVA_HOME=%CD%\zulu-jdk8
    8 ::set JAVA_HOME=%CD%\zulu-jdk11
     4set JAVA_HOME=%CD%\zulu-jdk8-32bit
     5::set JAVA_HOME=%CD%\zulu-jdk11-32bit
     6
    97if not exist "%JAVA_HOME%" (
    10 echo %JAVA_HOME% not found. Exiting...
    11 goto done
     8   echo %JAVA_HOME% not found. Exiting...
     9   goto done
    1210)
    1311set PATH=%JAVA_HOME%\bin;%PATH%
     12echo + Set JAVA_HOME=%JAVA_HOME% and updated PATH
    1413
    15 echo + Set JAVA_HOME=%JAVA_HOME% and updated PATH
    16 ::set PERL_HOME=C:\strawberry-perl32no64\perl
    17 set PERL_HOME=%CD%\strawberry-perl5\perl
     14
     15::set PERL_HOME=C:\strawberry-perl-32bit\perl
     16set PERL_HOME=%CD%\strawberry-perl5-32bit\perl
     17set PATH=%PERL_HOME%\bin;%PATH%
     18echo + Set PERL_HOME=%PERL_HOME% and updated PATH
     19
    1820
    1921::set ANT_HOME=%CD%\ant-1.8.3
    2022set ANT_HOME=%CD%\apache-ant-1.9.5
    21 
    22 set PATH=%PERL_HOME%\bin;%ANT_HOME%\bin;%PATH%
    23 
     23set PATH=%ANT_HOME%\bin;%PATH%
    2424echo + Set ANT_HOME=%ANT_HOME% and updated PATH
    25 
    26 echo + Set PERL_HOME=%PERL_HOME% and updated PATH
    27 
    28 :: Already done in gs3-devel.bat
    29 rem pushd "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC"
    30 :: pushd "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC"
    31 ::call vcvarsall.bat"" amd64
    32 rem call vcvarsall.bat amd64
    33 rem popd
    34 
    35 
    3625
    3726
Note: See TracChangeset for help on using the changeset viewer.