diff docs/Compiling_on_Windows.txt @ 0:c84446dfb3f5

initial add
author paulo@localhost
date Fri, 13 Mar 2009 00:39:12 -0700
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docs/Compiling_on_Windows.txt	Fri Mar 13 00:39:12 2009 -0700
     1.3 @@ -0,0 +1,103 @@
     1.4 +______________________________________________________________________
     1.5 +
     1.6 +Guide to compiling LOCKJAW on Microsoft Windows
     1.7 +by Lardarse and tepples
     1.8 +
     1.9 +You will need the following files:
    1.10 +
    1.11 +* Dev-C++ 5.0 Beta
    1.12 +  http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe
    1.13 +* devkitPro Updater
    1.14 +  http://www.devkitpro.org/
    1.15 +* Allegro 4.2.0
    1.16 +  http://www.pineight.com/lj/all420.zip
    1.17 +* Minimal DirectX 7 SDK for MinGW
    1.18 +  http://alleg.sourceforge.net/files/dx70_mgw.zip
    1.19 +* libogg 1.1.3
    1.20 +  http://www.pineight.com/lj/libogg-1.1.3.zip
    1.21 +* libvorbis 1.1.2
    1.22 +  http://www.pineight.com/lj/libvorbis-1.1.2.zip
    1.23 +* DUMB 0.9.3
    1.24 +  http://www.pineight.com/lj/dumb-0.9.3.zip
    1.25 +* JPGalleg 2.5
    1.26 +  http://www.pineight.com/lj/jpgalleg-2.5.tar.gz
    1.27 +
    1.28 +______________________________________________________________________
    1.29 +Install MinGW
    1.30 +
    1.31 +Put all of those files into a folder on your desktop. Run the Dev-C++
    1.32 +installer, installing into C:\Dev-Cpp, and using the default settings,
    1.33 +unless you have a reason for not wanting to associate C source file
    1.34 +types with Dev-C++.
    1.35 +
    1.36 +______________________________________________________________________
    1.37 +Install MSYS and devkitARM
    1.38 +
    1.39 +Run the devkitPro Updater. It will ask you if you want to get a newer
    1.40 +version.  Answer yes to this, and then install everything that it asks
    1.41 +to, except devkitPSP and devkitPPC.  MSYS should be installed into
    1.42 +C:\devkitPro\msys, and just press Enter to all of the questions that
    1.43 +it asks when installing it.  The other parts will install without user
    1.44 +intervention, unless the downloading is interrupted.
    1.45 +
    1.46 +______________________________________________________________________
    1.47 +Make MinGW and MSYS available
    1.48 +
    1.49 +Right-click My Computer and go to Properties -> Advanced ->
    1.50 +Environment Variables.  Add MINGDIR = C:\Dev-Cpp and make sure
    1.51 +that Path starts with C:\Dev-Cpp\Bin;c:\devkitPro\msys\bin;
    1.52 +
    1.53 +Extract dx70_mgw.zip into C:\Dev-Cpp, over-writing files as
    1.54 +necessary.  Extract the other 5 files that were downloaded earlier
    1.55 +into C:\, where each one will be in its own folder.  Now open a
    1.56 +command prompt (Start -> Run -> cmd) and enter the following commands:
    1.57 +
    1.58 +______________________________________________________________________
    1.59 +Make and install required libraries
    1.60 +
    1.61 +cd \
    1.62 +cd allegro
    1.63 +fix.bat mingw32
    1.64 +make
    1.65 +make install
    1.66 +cd \
    1.67 +cd libogg-1.1.3
    1.68 +sh configure --prefix=C:\Dev-Cpp --disable-shared
    1.69 +make
    1.70 +make install
    1.71 +cd \
    1.72 +cd libvorbis-1.1.2
    1.73 +sh configure --prefix=C:\Dev-Cpp --disable-shared
    1.74 +make
    1.75 +make install
    1.76 +cd \
    1.77 +cd dumb-0.9.3
    1.78 +make
    1.79 +
    1.80 +This command will ask you 2 questions.  Answer M to the first
    1.81 +and Y to the second.
    1.82 +
    1.83 +make install
    1.84 +cd \
    1.85 +cd jpgalleg-2.5
    1.86 +fix.bat mingw32
    1.87 +make
    1.88 +make install
    1.89 +
    1.90 +At this point you can now close this window.
    1.91 +
    1.92 +Now open another command window and navigate to the folder where you
    1.93 +have Lockjaw installed.  You may prefer to use a different folder
    1.94 +than your usual playing folder.  If you are going to be compiling
    1.95 +a lot, and you are using Windows XP, then you may want to install
    1.96 +the Open Command Window Here powertoy:
    1.97 +http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
    1.98 +
    1.99 +Once you are in the folder, just type in make, and within a few
   1.100 +seconds, it should be compiled.  The lj.exe will be roughly twice the
   1.101 +size of that in the official distribution; you can fix this with UPX.
   1.102 +http://upx.sourceforge.net/
   1.103 +
   1.104 +Now to try to do something intersting with it...
   1.105 +
   1.106 +Now grab yourself a drink. You deserve it...