| 1 |
How to compile PennMUSH 1.8.x under Windows (MSVC++/MS VS.NET) |
|---|
| 2 |
---------------------------------------------- |
|---|
| 3 |
by Nick Gammon <nick@gammon.com.au> and Javelin and Luuk de Waard |
|---|
| 4 |
Updated by Ervin Hearn <ehearn@pennmush.org> |
|---|
| 5 |
|
|---|
| 6 |
Last update: Saturday, 11 November 2006 |
|---|
| 7 |
|
|---|
| 8 |
1. From the top-level pennmush directory, |
|---|
| 9 |
Copy the following files to: |
|---|
| 10 |
|
|---|
| 11 |
For MSVC++ 6: |
|---|
| 12 |
win32/msvc6/pennmush.dsw pennmush.dsw |
|---|
| 13 |
win32/msvc6/pennmush.dsp pennmush.dsp |
|---|
| 14 |
win32/config.h config.h |
|---|
| 15 |
win32/confmagic.h confmagic.h |
|---|
| 16 |
win32/options.h options.h |
|---|
| 17 |
win32/cmds.h hdrs/cmds.h |
|---|
| 18 |
win32/funs.h hdrs/funs.h |
|---|
| 19 |
win32/patches.h hdrs/patches.h |
|---|
| 20 |
src/cmdlocal.dst src/cmdlocal.c |
|---|
| 21 |
src/flaglocal.dst src/flaglocal.c |
|---|
| 22 |
src/funlocal.dst src/funlocal.c |
|---|
| 23 |
src/local.dst src/local.c |
|---|
| 24 |
game/mushcnf.dst game/mush.cnf |
|---|
| 25 |
game/aliascnf.dst game/alias.cnf |
|---|
| 26 |
game/namescnf.dst game/names.cnf |
|---|
| 27 |
game/restrictcnf.dst game/restrict.cnf |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
For MS VS.NET: |
|---|
| 31 |
win32/msvc.net/pennmush.vcproj pennmush.vcproj |
|---|
| 32 |
win32/msvc.net/pennmush.sln pennmush.sln |
|---|
| 33 |
|
|---|
| 34 |
VS.NET has been configured to copy the .dst files automatically if they |
|---|
| 35 |
do not exist, and the header files each time the project is compiled. This |
|---|
| 36 |
can be disabled or changed by going to Project -> pennmush Properties -> |
|---|
| 37 |
Configuration Properties -> Build Events -> Pre-Build Event and Post-Build |
|---|
| 38 |
Event. |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
If you've already got src/*local.c files that you've modified, |
|---|
| 42 |
you'll just have to make sure that there are no new functions |
|---|
| 43 |
in src/*local.dst that are missing in your src/*local.c files |
|---|
| 44 |
|
|---|
| 45 |
2. Use supplied project files in the top-level pennmush directory. |
|---|
| 46 |
|
|---|
| 47 |
3. Compile |
|---|
| 48 |
|
|---|
| 49 |
4. From the top-level pennmush directory, the binary is: game/pennmush.exe |
|---|
| 50 |
|
|---|
| 51 |
*** Note: Windows defaults to a stack size of 1 MB. The supplied project files |
|---|
| 52 |
set the stack size to 8MB to match the default environment on Linux systems and |
|---|
| 53 |
resolve several issues of early code termination on Windows. This setting can |
|---|
| 54 |
also be changed on the precompiled executable by using the 'editbin.exe' tool |
|---|
| 55 |
supplied by Microsoft in the Visual Studio installation, including the free |
|---|
| 56 |
Express version. To set the stack size (in KB) run the following from a |
|---|
| 57 |
command prompt in the game directory: editbin /STACK:<size> pennmush.exe |
|---|