win_compiling.xml revision 70ce08850895485160d91d333b5a487ee2f80fbc
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner<?xml-stylesheet type="text/xsl" href="/style/manual.en.xsl"?>
ad001203f4a69f0fcb5220ee6c867d733e095e9fChristian Maeder<!-- $Revision$ -->
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski Copyright 2002-2004 The Apache Software Foundation
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski Licensed under the Apache License, Version 2.0 (the "License");
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski you may not use this file except in compliance with the License.
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski You may obtain a copy of the License at
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski Unless required by applicable law or agreed to in writing, software
8eaac95b9e100d28405995171da0e1110f47055cChristian Maeder distributed under the License is distributed on an "AS IS" BASIS,
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski See the License for the specific language governing permissions and
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski limitations under the License.
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski<manualpage metafile="win_compiling.xml.meta">
92454b97e1cb66cfb8622cf38efdac493d2b2b2dTill Mossakowski <parentdocument href="./">Platform Specific Notes</parentdocument>
7857a35e3af533dfbd0f0e18638ebd211e6358a0Christian Maeder <title>Compiling Apache for Microsoft Windows</title>
2b6e94fde08a2fa9ed3d245ca91130d7a301663bChristian Maeder <p>There are many important points before you begin compiling
7857a35e3af533dfbd0f0e18638ebd211e6358a0Christian Maeder Apache. See <a href="windows.html">Using Apache with Microsoft
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski <p>Compiling Apache requires the following environment to be
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski properly installed:</p>
7857a35e3af533dfbd0f0e18638ebd211e6358a0Christian Maeder <p>Make sure you have at least 50 MB of free disk space
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski available. After installation Apache requires approximately
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski 10 MB of disk space, plus space for log and cache files,
a65c6747c9acbbebc93baba7bae94d2e3d8cdafbTill Mossakowski which can grow rapidly. The actual disk space requirements
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski will vary considerably based on your chosen configuration and
b1e41bda40d523db7a6debd7f452fa8eb4e357bbFlorian Mossakowski any third-party modules or libraries.</p>
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski <p>Apache can be built using the command line tools, or from
f8538e4caa6ad25272f6d2f4a6fff53a15e7926cChristian Maeder within the Visual Studio IDE Workbench. The command line
cd6e5706893519bfcf24539afa252fcbed5097ddKlaus Luettich build requires the environment to reflect the <code>PATH</code>,
fbf1cdad9a9775bd7332e85f01b6a307d7dbb1cfChristian Maeder <code>INCLUDE</code>, <code>LIB</code> and other variables
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski that can be configured with the <code>vcvars32</code> batch file:</p>
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski "c:\Program Files\DevStudio\VC\Bin\vcvars32.bat"
92454b97e1cb66cfb8622cf38efdac493d2b2b2dTill Mossakowski <p>Visual C++ 5.0 builds require an updated Microsoft Windows
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski Platform SDK to enable some Apache features. For command line
92454b97e1cb66cfb8622cf38efdac493d2b2b2dTill Mossakowski builds, the Platform SDK environment is prepared by the
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski "c:\Program Files\Platform SDK\setenv.bat"
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski <p>The Platform SDK files distributed with Visual C++ 6.0 and
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski later are sufficient, so users of later version may skip
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski this requirement.</p>
7857a35e3af533dfbd0f0e18638ebd211e6358a0Christian Maeder <note>Note that the Windows Platform SDK update is required
eca4db63ed0bdbd93b62678feea6e3eb80aa47bbChristian Maeder to enable all supported <module>mod_isapi</module> features.
a7be28e157e9ceeec73a8fd0e642c36ea29d4218Christian Maeder Without a recent update, Apache will issue warnings under
a7be28e157e9ceeec73a8fd0e642c36ea29d4218Christian Maeder MSVC++ 5.0 that some <module>mod_isapi</module> features
a7be28e157e9ceeec73a8fd0e642c36ea29d4218Christian Maeder will be disabled. Look for the update at <a
a7be28e157e9ceeec73a8fd0e642c36ea29d4218Christian Maeder href="http://msdn.microsoft.com/downloads/sdks/platform/platform.asp"
fbf1cdad9a9775bd7332e85f01b6a307d7dbb1cfChristian Maeder >http://msdn.microsoft.com/downloads/sdks/platform/platform.asp</a>.</note>
f8538e4caa6ad25272f6d2f4a6fff53a15e7926cChristian Maeder <p>The awk utility (awk, gawk or similar).</p>
f8538e4caa6ad25272f6d2f4a6fff53a15e7926cChristian Maeder <p>To install Apache within the build system, several files are
f8538e4caa6ad25272f6d2f4a6fff53a15e7926cChristian Maeder modified using the <code>awk.exe</code> utility. awk was chosen since it
f8538e4caa6ad25272f6d2f4a6fff53a15e7926cChristian Maeder is a very small download (compared with Perl or WSH/VB) and
f8538e4caa6ad25272f6d2f4a6fff53a15e7926cChristian Maeder accomplishes the task of generating files. Brian Kernighan's
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski <a href="http://cm.bell-labs.com/cm/cs/who/bwk/"
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder >http://cm.bell-labs.com/cm/cs/who/bwk/</a>
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder site has a compiled native Win32 binary,
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder <a href="http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe"
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski >http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe</a> which
92454b97e1cb66cfb8622cf38efdac493d2b2b2dTill Mossakowski you must save with the name <code>awk.exe</code> rather than
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski <note>Note that Developer Studio IDE will only find
03136b84a0c70d877e227444f0875e209506b9e4Christian Maeder <code>awk.exe</code> from the Tools menu Options... Directories
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder tab (the Projects - VC++ Directories pane in Developer Studio 7.0)
2eeec5240b424984e3ee26296da1eeab6c6d739eChristian Maeder listing Executable file paths. Add the path for <code>awk.exe</code>
nmake -f makefile.dbg
nmake /f Makefile.win _apacher
nmake /f Makefile.win _apached
perl srclib\apr\build\fixwin32mak.pl