|
|
Line 11: |
Line 11: |
|
|
|
|
|
|
|
|
|
==Setting up mingw== |
|
==Setting up MinGW and MSYS== |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">(Warning! For the first 3 steps, all install directories must be the exact same. Do not use spaces or capitals for the installation directory. For this guide, we will use the default c:\mingw)</td></tr></table> |
|
|
:*Download and install [http://downloads.sourceforge.net/mingw/MinGW-5.1.3.exe MinGW-5.1.3.exe] into the directory c:\mingw (lower case) and select the MinGW base tools and GCC base tools packages only during the installation selection process |
|
:*Download and install [http://downloads.sourceforge.net/mingw/MinGW-5.1.3.exe MinGW-5.1.3.exe] into the directory c:\mingw (lower case) and select the MinGW base tools and GCC base tools packages only during the installation selection process |
|
:*Next, download and install [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe MSYS-1.0.10.exe] in the same directory as MinGW (c:\mingw). At the end of the installation, it will ask you if you want to continue with the post-install. Select yes, and yes again when it ask if you have mingw installed. When it ask you to indicate the directory where it is installed, type in c:/mingw (yes, with a forward slash as the program prefers it that way). |
|
:*And, download and install [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe MSYS-1.0.10.exe] into the directory c:\msys\1.0\ (lower case). At the end of the installation, it will ask you if you want to continue with the post-install. Select yes, and yes again when it ask if you have mingw installed. When it ask you to indicate the directory where it is installed, type in c:/mingw (yes, with a forward slash as the program prefers it that way). |
|
:*And lastly, download and install [http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe msysDTK-1.0.1.exe] in the same directory as mingw and msys (c:\mingw) |
|
<!-- :*And lastly, download and install [http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe msysDTK-1.0.1.exe] in the same directory as msys (c:\msys\1.0\) --> |
|
|
|
|
|
|
|
|
|
==Compiling Prerequisites== |
|
==Compiling Prerequisites== |
|
:*Download [http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_required_libs_mingw-2.tar.bz2 glob2_required_libs_mingw-2.tar.bz2] and put it in the home directory of mingw (c:\mingw\home\XXX\ where XXX is the username) |
|
:*Download [http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_required_libs_mingw-2.tar.bz2 glob2_required_libs_mingw-2.tar.bz2] and put it in the home directory of mingw (c:\msys\1.0\home\XXX\ where XXX is the username) |
|
:*Double click the MSYS icon that has been placed on your desktop during MSYS's installation. |
|
:*Double click the MSYS icon that has been placed on your desktop during MSYS's installation. |
|
:*Go in the directory where you put the mingw_required_libs.tar.bz2 (for example cd ~) and untar the libraries using the command below. This process could take a while: |
|
:*Go in the directory where you put the glob2_required_libs_mingw-2.tar.bz2 (for example cd ~) and untar the libraries using the command below. This process could take a while: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_required_libs_mingw-2.tar.bz2 -C /</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_required_libs_mingw-2.tar.bz2 -C /</td></tr></table> |
|
|
|
|
Line 28: |
Line 27: |
|
===Step 1: Preparing for a compile=== |
|
===Step 1: Preparing for a compile=== |
|
====Compiling from Released source code==== |
|
====Compiling from Released source code==== |
|
:*Download and extract the release to c:\mingw\home\XXX\ (where XXX is the username), then run (changing the version numbers): |
|
:*Download and extract the release to c:\msys\1.0\home\XXX\ (where XXX is the username), then run (changing the version numbers): |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">mv glob2-x.x.xx glob2_source</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">mv glob2-x.x.xx glob2_source</td></tr></table> |
|
====Compiling from Mercurial source files==== |
|
====Compiling from Mercurial source files==== |
Line 53: |
Line 52: |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">wget http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_windows_runtime-2.tar.bz2</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">wget http://dl.sv.nongnu.org/releases/glob2/mingw/glob2_windows_runtime-2.tar.bz2</td></tr></table> |
|
:*Extract it with : |
|
:*Extract it with : |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_windows_runtime.tar.bz2</td></tr></table> |
|
::<table width="90%"><tr valign="top"><td style="border: 1px dashed #FFFFFF; padding: .3em .9em .3em; color: #FFFFFF; background-color: #114700">tar jxf glob2_windows_runtime-2.tar.bz2</td></tr></table> |
|
:*Copy the folders data/, maps/, and campaigns/ and the files AUTHORS and COPYING to glob2_runtime/, overwriting any existing files |
|
:*Copy the folders data/, maps/, and campaigns/ and the files AUTHORS and COPYING to glob2_runtime/, overwriting any existing files |
|
:*Copy glob2.exe which is in the src directory (glob2/src/) to glob2_runtime/ |
|
:*Copy glob2.exe which is in the src directory (glob2/src/) to glob2_runtime/ |