annotate docs/Compiling_on_Windows.txt @ 0:c84446dfb3f5

initial add
author paulo@localhost
date Fri, 13 Mar 2009 00:39:12 -0700
parents
children
rev   line source
paulo@0 1 ______________________________________________________________________
paulo@0 2
paulo@0 3 Guide to compiling LOCKJAW on Microsoft Windows
paulo@0 4 by Lardarse and tepples
paulo@0 5
paulo@0 6 You will need the following files:
paulo@0 7
paulo@0 8 * Dev-C++ 5.0 Beta
paulo@0 9 http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe
paulo@0 10 * devkitPro Updater
paulo@0 11 http://www.devkitpro.org/
paulo@0 12 * Allegro 4.2.0
paulo@0 13 http://www.pineight.com/lj/all420.zip
paulo@0 14 * Minimal DirectX 7 SDK for MinGW
paulo@0 15 http://alleg.sourceforge.net/files/dx70_mgw.zip
paulo@0 16 * libogg 1.1.3
paulo@0 17 http://www.pineight.com/lj/libogg-1.1.3.zip
paulo@0 18 * libvorbis 1.1.2
paulo@0 19 http://www.pineight.com/lj/libvorbis-1.1.2.zip
paulo@0 20 * DUMB 0.9.3
paulo@0 21 http://www.pineight.com/lj/dumb-0.9.3.zip
paulo@0 22 * JPGalleg 2.5
paulo@0 23 http://www.pineight.com/lj/jpgalleg-2.5.tar.gz
paulo@0 24
paulo@0 25 ______________________________________________________________________
paulo@0 26 Install MinGW
paulo@0 27
paulo@0 28 Put all of those files into a folder on your desktop. Run the Dev-C++
paulo@0 29 installer, installing into C:\Dev-Cpp, and using the default settings,
paulo@0 30 unless you have a reason for not wanting to associate C source file
paulo@0 31 types with Dev-C++.
paulo@0 32
paulo@0 33 ______________________________________________________________________
paulo@0 34 Install MSYS and devkitARM
paulo@0 35
paulo@0 36 Run the devkitPro Updater. It will ask you if you want to get a newer
paulo@0 37 version. Answer yes to this, and then install everything that it asks
paulo@0 38 to, except devkitPSP and devkitPPC. MSYS should be installed into
paulo@0 39 C:\devkitPro\msys, and just press Enter to all of the questions that
paulo@0 40 it asks when installing it. The other parts will install without user
paulo@0 41 intervention, unless the downloading is interrupted.
paulo@0 42
paulo@0 43 ______________________________________________________________________
paulo@0 44 Make MinGW and MSYS available
paulo@0 45
paulo@0 46 Right-click My Computer and go to Properties -> Advanced ->
paulo@0 47 Environment Variables. Add MINGDIR = C:\Dev-Cpp and make sure
paulo@0 48 that Path starts with C:\Dev-Cpp\Bin;c:\devkitPro\msys\bin;
paulo@0 49
paulo@0 50 Extract dx70_mgw.zip into C:\Dev-Cpp, over-writing files as
paulo@0 51 necessary. Extract the other 5 files that were downloaded earlier
paulo@0 52 into C:\, where each one will be in its own folder. Now open a
paulo@0 53 command prompt (Start -> Run -> cmd) and enter the following commands:
paulo@0 54
paulo@0 55 ______________________________________________________________________
paulo@0 56 Make and install required libraries
paulo@0 57
paulo@0 58 cd \
paulo@0 59 cd allegro
paulo@0 60 fix.bat mingw32
paulo@0 61 make
paulo@0 62 make install
paulo@0 63 cd \
paulo@0 64 cd libogg-1.1.3
paulo@0 65 sh configure --prefix=C:\Dev-Cpp --disable-shared
paulo@0 66 make
paulo@0 67 make install
paulo@0 68 cd \
paulo@0 69 cd libvorbis-1.1.2
paulo@0 70 sh configure --prefix=C:\Dev-Cpp --disable-shared
paulo@0 71 make
paulo@0 72 make install
paulo@0 73 cd \
paulo@0 74 cd dumb-0.9.3
paulo@0 75 make
paulo@0 76
paulo@0 77 This command will ask you 2 questions. Answer M to the first
paulo@0 78 and Y to the second.
paulo@0 79
paulo@0 80 make install
paulo@0 81 cd \
paulo@0 82 cd jpgalleg-2.5
paulo@0 83 fix.bat mingw32
paulo@0 84 make
paulo@0 85 make install
paulo@0 86
paulo@0 87 At this point you can now close this window.
paulo@0 88
paulo@0 89 Now open another command window and navigate to the folder where you
paulo@0 90 have Lockjaw installed. You may prefer to use a different folder
paulo@0 91 than your usual playing folder. If you are going to be compiling
paulo@0 92 a lot, and you are using Windows XP, then you may want to install
paulo@0 93 the Open Command Window Here powertoy:
paulo@0 94 http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
paulo@0 95
paulo@0 96 Once you are in the folder, just type in make, and within a few
paulo@0 97 seconds, it should be compiled. The lj.exe will be roughly twice the
paulo@0 98 size of that in the official distribution; you can fix this with UPX.
paulo@0 99 http://upx.sourceforge.net/
paulo@0 100
paulo@0 101 Now to try to do something intersting with it...
paulo@0 102
paulo@0 103 Now grab yourself a drink. You deserve it...