Difference between revisions of "Compiling using MSYS"

From OdaWiki
Line 18: Line 18:
 
Download all of them and extract them to C:\mingw.  If you're using Windows and don't have an archiver capable of handling tar.gz files, stop living in the stone age and download [http://www.7-zip.org/ 7-Zip].  If you are compiling ODAMEX for the purpose of debugging, grab gdb as well.
 
Download all of them and extract them to C:\mingw.  If you're using Windows and don't have an archiver capable of handling tar.gz files, stop living in the stone age and download [http://www.7-zip.org/ 7-Zip].  If you are compiling ODAMEX for the purpose of debugging, grab gdb as well.
  
==Step 3: Unpack Files==
+
==Step 3: Required Libraries==
 +
For ODAMEX to successfully compile, you must obtain some libraries for it, which are:
 +
 
 +
*[http://www.libsdl.org/download-1.2.php SDL Development Libraries]
 +
*[http://www.libsdl.org/projects/SDL_mixer/ SDL_mixer Development Libraries]
 +
 
 +
Copy the include and lib folders from the archives and paste them into your C:\MinGW directory.
 +
 
 +
==Step 4: 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 28: Line 36:
 
<b><u>NOTE:</u></b> Include the semi-colon at the start, or else it won't work.
 
<b><u>NOTE:</u></b> Include the semi-colon at the start, or else it won't work.
 
<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>.
 
==Step 4: Download SDL Packages==
 
 
- Download the following SDL packages and untar/zip them to your MinGW dir.
 
 
* [http://www.libsdl.org/release/SDL-devel-1.2.9-mingw32.tar.gz SDL-devel-1.2.9-mingw32.tar.gz]
 
 
* [http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.6-VC6.zip SDL_mixer-devel-1.2.6-VC6.zip]
 
  
 
===Create a Directory for Code===
 
===Create a Directory for Code===

Revision as of 04:11, 19 January 2007