Difference between revisions of "Compiling using MSYS"
From OdaWiki
(→Cygwin) |
|||
Line 1: | Line 1: | ||
{{Cleanup}} | {{Cleanup}} | ||
− | |||
− | |||
− | |||
− | |||
− | = | + | ==MinGW and MSYS== |
− | + | ===Ensure you have the proper files=== | |
− | + | Get the following <b>MinGW</b> files: | |
− | + | ||
− | = | + | |
− | + | ||
* [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz] | * [http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz?download gcc-core-3.4.2-20040916-1.tar.gz] | ||
− | |||
* [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz] | * [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz] | ||
− | |||
* [http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz?download mingw-runtime-3.9.tar.gz] | * [http://prdownloads.sf.net/mingw/mingw-runtime-3.9.tar.gz?download mingw-runtime-3.9.tar.gz] | ||
− | |||
* [http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz?download w32api-3.6.tar.gz] | * [http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz?download w32api-3.6.tar.gz] | ||
− | |||
* [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz] | * [http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download binutils-2.15.91-20040904-1.tar.gz] | ||
− | |||
* [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe] | * [http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download mingw32-make-3.80.0-3.exe] | ||
− | |||
* [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe] | * [http://prdownloads.sf.net/mingw/gdb-5.2.1-1.exe?download gdb-5.2.1-1.exe] | ||
<BR> | <BR> | ||
+ | In addition, you will need the latest version of MSYS: | ||
+ | * [http://prdownloads.sourceforge.net/mingw/MSYS-1.0.10.exe?download MSYS-1.0.10.exe] | ||
<b><u>NOTE:</u></b> Use a program like 7-zip to extract tar.gz files. | <b><u>NOTE:</u></b> Use a program like 7-zip to extract tar.gz files. | ||
− | =Unpack Files= | + | ===Unpack Files=== |
- Untar <b>ALL MinGW</b> files from the archives you just downloaded into a single directory, then right click on <i>My Computer->Properties->Go to Advanced Tab->Environment Variables->System Variables</i> and scroll down till you find the Path variable, click edit and add the following line:<BR> | - Untar <b>ALL MinGW</b> files from the archives you just downloaded into a single directory, then right click on <i>My Computer->Properties->Go to Advanced Tab->Environment Variables->System Variables</i> and scroll down till you find the Path variable, click edit and add the following line:<BR> | ||
<BR> | <BR> | ||
Line 40: | Line 29: | ||
<b><u>NOTE:</u></b> In your mingw/bin dir, you should see a file named <b>i386-mingw32-msvc-sdl-config</b>, rename this to <b>sdl-config</b>. | <b><u>NOTE:</u></b> In your mingw/bin dir, you should see a file named <b>i386-mingw32-msvc-sdl-config</b>, rename this to <b>sdl-config</b>. | ||
− | =Download SDL Packages= | + | ===Download SDL Packages=== |
- Download the following SDL packages and untar/zip them to your MinGW dir. | - Download the following SDL packages and untar/zip them to your MinGW dir. | ||
Line 48: | Line 37: | ||
* [http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.6-VC6.zip SDL_mixer-devel-1.2.6-VC6.zip] | * [http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.6-VC6.zip SDL_mixer-devel-1.2.6-VC6.zip] | ||
− | =Download MSYS= | + | ===Download MSYS=== |
- You will need [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS.] You will need to add an environment variable to point to its bin dir aswell. | - You will need [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS.] You will need to add an environment variable to point to its bin dir aswell. | ||
Line 54: | Line 43: | ||
<b><u>NOTE:</u></b> You need MSYS, because gnu make and windows mkdir don't get on well together, not because you need sdl-config. | <b><u>NOTE:</u></b> You need MSYS, because gnu make and windows mkdir don't get on well together, not because you need sdl-config. | ||
− | =Create a Directory for Code= | + | ===Create a Directory for Code=== |
- Create a new dir somewhere, right click inside it and click <b>SVN Checkout</b>, type in <b>svn://odamex.net:2000/</b> in the url field and click OK, wait until it says <b>Completed</b> in the Action column of the window. | - Create a new dir somewhere, right click inside it and click <b>SVN Checkout</b>, type in <b>svn://odamex.net:2000/</b> in the url field and click OK, wait until it says <b>Completed</b> in the Action column of the window. | ||
− | =Compile with Makefile= | + | ===Compile with Makefile=== |
- Open a command prompt and go to your odamex trunk dir and type: <b>make -f Makefile.win all</b> | - Open a command prompt and go to your odamex trunk dir and type: <b>make -f Makefile.win all</b> | ||
Line 64: | Line 53: | ||
<b><u>HINT:</u></b> To get help on the makefile, type <b>make -f Makefile.win help</b> | <b><u>HINT:</u></b> To get help on the makefile, type <b>make -f Makefile.win help</b> | ||
− | =Result= | + | ===Result=== |
- If all steps were followed correctly, Code::Blocks should output a binary into the /Bin dir of your odamex svn folder. | - If all steps were followed correctly, Code::Blocks should output a binary into the /Bin dir of your odamex svn folder. |