From: William A. Rowe Jr
Apache can be built using the command line tools, or from
- within the Visual Studio IDE Workbench. the command line
- tools are configured with the vcvars32 batch file:
+ within the Visual Studio IDE Workbench. The command line
+ build requires the environment to reflect the PATH, INCLUDE,
+ LIB and other variables that can be configured with the
+ vcvars32 batch file:
"c:\Program Files\DevStudio\VC\Bin\vcvars32.bat"
@@ -51,16 +53,16 @@
- Visual C++ 5.0 need the updated Microsoft Windows Platform
- SDK to enable some Apache features. For command line
+ Visual C++ 5.0 builds require an updated Microsoft Windows
+ Platform SDK to enable some Apache features. For command line
builds, the Platform SDK environment is prepared by the
setenv batch file:
"c:\Program Files\Platform SDK\setenv.bat"
The Platform SDK files distributed with Visual C++ 6.0 and
- later are sufficient, so those users may skip this
- requirement.
+ later are sufficient, so users of later version may skip
+ this requirement.
Note that the Windows Platform SDK update
is required to enable all supported mod_isapi features.
@@ -73,21 +75,68 @@
-
- To install Apache within the build system, several files are
- modified using the awk utility. awk was chosen since it is a
- very small download (compared with Perl or WSH/VB) and
- accomplishes the task. Brian Kernighan's http://cm.bell-labs.com/cm/cs/who/bwk/
- site has a compiled native Win32 binary, http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe
- which you should name awk.exe rather than awk95.exe.
- Note that Developer Studio IDE will only find awk.exe from
- the Tools menu Options... Directories settings
- for the Executable files. Add the path for awk.exe to this
- list, as needed.
-
+
+ To install Apache within the build system, several files are
+ modified using the awk.exe utility. awk was chosen since it
+ is a very small download (compared with Perl or WSH/VB) and
+ accomplishes the task of generating files. Brian Kernighan's
+ http://cm.bell-labs.com/cm/cs/who/bwk/
+ site has a compiled native Win32 binary,
+ http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe which
+ you must save with the name awk.exe rather than awk95.exe.
+
+ Note that Developer Studio IDE will only find awk.exe from
+ the Tools menu Options... Directories tab list of
+ Executable file paths. Add the path for awk.exe to this list,
+ and your system PATH environment variable, as needed.
+
+
+
+ Caution: there are significant restrictions and
+ prohibitions on the use and distribution of strong cryptography
+ and patented intellectual property throughout the world.
+ OpenSSL includes strong cryptography controlled by both export
+ regulations and domestic law, as well as intellectual property
+ protected by patent, in the United States and elsewhere. Neither
+ the Apache Software Foundation nor the OpenSSL project can provide
+ legal advise regarding possession, use, or distribution of the code
+ provided by the OpenSSL project. Consult your own legal
+ counsel, you are responsible for your own actions.
+
+ OpenSSL must be installed into a srclib subdirectory named openssl,
+ obtained from http://www.openssl.org/source/, in order to compile mod_ssl
+ or the abs project (ab.exe with SSL support.) To prepare OpenSSL
+ for both release and debug builds of Apache, and disable the patent
+ protected features in 0.9.6c (as built by the ASF for binary
+ distribution from the United States), you might use the following
+ build commands;
+
+ perl util\mkfiles.pl >MINFO
+ perl util\mk1mf.pl dll no-asm no-mdc2 no-rc5 no-idea VC-WIN32 >makefile
+ perl util\mk1mf.pl dll debug no-asm no-mdc2 no-rc5 no-idea VC-WIN32 >makefile.dbg
+ perl util\mkdef.pl 32 libeay no-asm no-mdc2 no-rc5 no-idea >ms\libeay32.def
+ perl util\mkdef.pl 32 ssleay no-asm no-mdc2 no-rc5 no-idea >ms\ssleay32.def
+ nmake
+ nmake -f makefile.dbg
+
+
+ Zlib must be installed into a srclib subdirectory named zlib,
+ however those sources need not be compiled. The build system will
+ compile the compression sources directly into the mod_deflate
+ module. Zlib can be obtained from http://www.gzip.org/zlib/ -- mod_deflate is confirmed to
+ build correctly with version 1.1.4.
+
+ Command-Line
@@ -122,33 +171,41 @@
dependencies between the projects to assure that they are built
in the appropriate order.
Open the Apache.dsw workspace, and choose InstallBin +
Open the Apache.dsw workspace, and select InstallBin (Release or Debug build, as desired) as the Active Project. - InstallBin causes all related project to be build, and then + InstallBin causes all related project to be built, and then invokes Makefile.win to move the compiled executables and dlls. You may personalize the INSTDIR= choice by changing InstallBin's Settings, General tab, Build command line entry. - INSTDIR defaults to the /Apache2 directory.
+ INSTDIR defaults to the /Apache2 directory. If you only want + a test compile (without installing) you may build the BuildBin + project instead.The .dsp project files are distributed in Visual C++ 6.0 - format. Visual C++ 5.0 (97) will recognize them with the single - exception of the /ZI flag (which corresponds to the VC 5.0 /Zi - flag for debugging symbols.) To quickly prepare the .dsp files - for the Visual Studio 5.0 (97), you can run this command from - the top-level httpd-2.0 directory:
+ format. Visual C++ 5.0 (97) will recognize them. Visual C++ + 7.0 (.net) must convert Apache.dsw plus the .dsp files into an + .msproj format, be sure you reconvert the .msproj file if any + of the source .dsp files change! + +Exported .mak files pose a greater hassle, but they are + required for Visual C++ 5.0 and 7.0 users to build mod_ssl, ab + with SSL support or mod_deflate, since only VC 6.0 knows how + to invoke .dsp files directly. Build the entire project from + within the IDE, then export all makefiles. You must build the + projects in order to create all dynamic auto-generated targets, + so that dependencies can be parsed correctly. Run the following + command to fix the paths so they will build anywhere;
- perl srclib\apr\build\cvtdsp.pl -5 + perl srclib\apr\build\fixwin32mak.plYou must type this command from the top level - directory of the httpd source tree. Every VC6 .dsp project file - within the current directory and below will be listed as it is - converted. If you contribute back a patch that revises project - files, please convert them back with the the -6 option instead - of -5, which returns the project files to Visual Studio 6.0 - format.
srclib\apr-util\uri\gen_uri_delims.dsp
srclib\apr-util\xml\expat\lib\xml.dsp
srclib\apr-util\aprutil.dsp
srclib\apr-util\libaprutil.dsp
srclib\pcre\pcreposix.dsp
srclib\expat-lite\libexpat.dsp
server\gen_test_char.dsp
libhttpd.dsp
Apache.dsp
In addition, the os\win32
subdirectory contains
- project files for the optional modules.
modules\aaa\mod_auth_dbm.dsp
modules\aaa\mod_auth_anon.dsp
In addition, the modules\
subdirectory tree contains
+ project files for the majority of the modules.
modules\aaa\mod_auth_digest.dsp
modules\cache\mod_file_cache.dsp
modules\dav\fs\mod_dav_fs.dsp
modules\dav\main\mod_dav.dsp
modules\generators\mod_info.dsp
modules\generators\mod_status.dsp
modules\mappers\mod_rewrite.dsp
modules\mappers\mod_speling.dsp
modules\metadata\mod_usertrack.dsp
modules\metadata\mod_cern_meta.dsp
modules\metadata\mod_headers.dsp
modules\metadata\mod_expires.dsp
modules\ssl\mod_ssl.dsp
modules\tls\mod_tls.dsp
The support\
folder contains project files for
+
The support\
directory contains project files for
additional programs that are not part of the Apache runtime,
but are used by the administrator to test Apache and maintain
- password and log files.
support\win32\
directory.
support\ab.dsp
support\rotatelogs.dsp
support\win32\ApacheMonitor.dsp
support\win32\wintty.dsp
dir\bin\Apache.exe
- Apache
executabledir\bin\ApacheMonitor.exe
- Service
+ monitor taskbar icon utilitydir\bin\htdigest.exe
- Digest auth
password file utilitydir\bin\htdbm.exe
- SDBM auth
+ database password file utilitydir\bin\htpasswd.exe
- Basic auth
password file utilitydir\include
- C language header
filesdir\lib
- Static Link library
- filesdir\libexec
- DLL link library
- filesdir\lib
- Link library filesWarning about building Apache from the development tree
-Only the .dsp files are maintained between release builds. +
Note; only the .dsp files are maintained between release builds. The .mak files are NOT regenerated, due to the tremendous waste of reviewer's time. Therefore, you cannot rely on the NMAKE commands above to build revised .dsp project files unless you - then export all .mak files yourself from the project. This is + then export all .mak files yourself from the project. This is unnecessary if you build from within the Microsoft - DeveloperStudio environment.
- -