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