From: William A. Rowe Jr Date: Mon, 23 Jul 2001 17:24:47 +0000 (+0000) Subject: Lots o' changes to re-review. X-Git-Tag: 2.0.22~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4779d38dd2eaf1d164f31350d6efb726363447bc;p=thirdparty%2Fapache%2Fhttpd.git Lots o' changes to re-review. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89657 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/platform/win_compiling.html b/docs/manual/platform/win_compiling.html index 0f854bea25d..8fa23297e36 100644 --- a/docs/manual/platform/win_compiling.html +++ b/docs/manual/platform/win_compiling.html @@ -1,180 +1,223 @@ - - -Compiling Apache for Microsoft Windows - + + +Compiling Apache for Microsoft Windows + - -

Compiling Apache for Microsoft Windows

- -

There are many important points before you begin compiling Apache. - See Using Apache with Microsoft Windows - before you begin.

- -

Compiling Apache requires Microsoft Visual C++ 5.0 (or later) to be - properly installed. It is easiest to compile with the command-line tools - (nmake, etc...). Consult the VC++ manual to determine how to install - them. Be especially aware that the vcvars32.bat file from the - Program Files/DevStudio/VC/bin folder may be required to prepare the - command-line environment for command-line builds!

- -

First, unpack the Apache distribution into an appropriate - directory. Open a command-line prompt and cd to that directory.

- -

The master Apache makefile instructions are contained in the - Makefile.win file. To compile Apache on Windows, simply - use one of the following commands:

-

- -

These will both compile Apache. The latter will include debugging +

Compiling Apache for Microsoft Windows

+ +

There are many important points before you begin compiling Apache. + See Using Apache with Microsoft Windows + before you begin.

+ +

Requirements

+ +

Compiling Apache requires the following environment to be properly + installed; + +

+ +

Command-Line Build

+ +

First, unpack the Apache distribution into an appropriate + directory. Open a command-line prompt and cd to that directory.

+ +

The master Apache makefile instructions are contained in the + Makefile.win file. To compile Apache on Windows NT, simply + use one of the following commands to compiled the release or debug build, + respectively: +

+    nmake /f Makefile.win _apacher
+
+    nmake /f Makefile.win _apached
+
+ +

Either command will compile Apache. The latter will include debugging information in the resulting files, making it easier to find bugs and - track down problems.

+ track down problems.

+ +

Developer Studio Workspace IDE Build

-

Apache can also be compiled using VC++'s VisualStudio development +

Apache can also be compiled using VC++'s VisualStudio development environment. To simplify this process, a VisualStudio workspace, - Apache.dsw, is provided. This workspace exposes - the entire list of working .dsp projects that are required for the - complete Apache binary release. It includes dependencies between - the projects to assure that they are built in the appropriate order.

- -

Notice: The Apache/VisualStudio project files are distributed - in VisualStudio 6.0 (98) format. In fact you may build with - VisualStudio 5.0 (97) but you must first use the perl script command:

- -
-    cd srclib\apr\build
-    cvstodsp5.pl
-
- -

Without running the script you will be able to load and build Apache, - however VisualStudio 97 in particular will not recognize the /ZI flag - to the C compiler for the debugging mode. This script toggles the - new /ZI flag back to /Zi for Debug builds, among other adjustments. - The converse script in srclib\apr\build\dsp5tocvs.pl will - reverse the adjustments, and we ask you to do so before submitting - patches against any .dsp project files.

- -

The Apache.dsw workspace and makefile.win nmake script both build the - .dsp projects of the Apache server in the following sequence:

- -
    -
  1. srclib\apr\aprlib.dsp -
  2. srclib\apr\aprlibdll.dsp requires aprlib -
  3. srclib\pcre\dftables.dsp -
  4. srclib\pcre\pcre.dsp requires dftables -
  5. srclib\pcre\pcreposix.dsp requires dftables and pcre -
  6. srclib\expat-lite\xmltok.dsp -
  7. srclib\expat-lite\xmlparse.dsp requires xmltok -
  8. main\gen_uri_delims.dsp -
  9. main\gen_test_char.dsp -
  10. ApacheCore.dsp requires all of the above -
  11. Apache.dsp requires ApacheCore and aprlibdll -
- -

In addition, the os\win32 subdirectory contains + Apache.dsw, is provided. This workspace exposes the entire list of + working .dsp projects that are required for the complete Apache binary + release. It includes dependencies between the projects to assure that + they are built in the appropriate order.

+ +

Open the Apache.dsw workspace, and choose InstallBin (Release or Debug + build, as desired) as the Active Project. InstallBin causes all related + project to be build, 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.

+ +

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: +

+     perl srclib\apr\build\cvtdsp.pl -5
+
+ You 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.

+ +

Project Components

+ +

The Apache.dsw workspace and makefile.win nmake script both build the + .dsp projects of the Apache server in the following sequence:

+ +
    +
  1. srclib\apr\apr.dsp +
  2. srclib\apr\libapr.dsp +
  3. srclib\apr-util\uri\gen_uri_delims.dsp +
  4. srclib\apr-util\aprutil.dsp +
  5. srclib\apr-util\libaprutil.dsp +
  6. srclib\pcre\dftables.dsp +
  7. srclib\pcre\pcre.dsp +
  8. srclib\pcre\pcreposix.dsp +
  9. srclib\expat-lite\libexpat.dsp +
  10. server\gen_test_char.dsp +
  11. libhttpd.dsp +
  12. Apache.dsp +
+ +

In addition, the os\win32 subdirectory contains project files for the optional modules.

-
    -
  1. os\win32\ApacheModuleAuthAnon.dsp -
  2. os\win32\ApacheModuleAuthDigest.dsp -
  3. os\win32\ApacheModuleCERNMeta.dsp -
  4. os\win32\ApacheModuleExpires.dsp -
  5. os\win32\ApacheModuleFileCache.dsp -
  6. os\win32\ApacheModuleHeaders.dsp -
  7. os\win32\ApacheModuleInfo.dsp -
  8. os\win32\ApacheModuleRewrite.dsp -
  9. os\win32\ApacheModuleSpeling.dsp -
  10. os\win32\ApacheModuleStatus.dsp -
  11. os\win32\ApacheModuleUserTrack.dsp -
  12. modules\proxy\ApacheModuleProxy.dsp -
- -

The support\ folder 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.

- -
    -
  1. support\ab.dsp -
  2. support\htdigest.dsp -
  3. support\htpasswd.dsp -
  4. support\logresolve.dsp -
  5. support\rotatelogs.dsp -
- -

Once Apache has been compiled, it needs to be installed in its server - root directory. The default is the \Apache - directory, on the current hard drive.

- -

To build and install all the files into the desired folder dir - automatically, use one the following nmake commands:

- - - -

The dir argument to INSTDIR gives the installation directory; it - can be omitted if Apache is to be installed into \Apache.

- -

This will install the following:

- - - -

If you do not have nmake, or wish to install in a different directory, - be sure to use a similar naming scheme, or use the following shortcut.

- -

To simplify the process, dependencies between all projects - are defined in the Microsoft VisualStudio workspace file: - -

-   Apache.dsw
-
- -

This assures that lower-level sources are rebuilt from within - VisualStudio. The top level project is InstallBin, which invokes - Makefile.win to move the compiled executables and dlls. You may - personalize the INSTDIR= setting by changing the Settings for - InstallBin, Build command line entry under the General tab. - INSTDIR defaults to the same directory as the httpd source.

- -

Warning about building Apache from the development tree

- -

Only the .dsp files are distributed between release builds. The +

    +
  1. modules\aaa\mod_auth_dbm.dsp +
  2. modules\aaa\mod_auth_anon.dsp +
  3. modules\aaa\mod_auth_digest.dsp +
  4. modules\cache\mod_file_cache.dsp +
  5. modules\dav\fs\mod_dav_fs.dsp +
  6. modules\dav\main\mod_dav.dsp +
  7. modules\generators\mod_info.dsp +
  8. modules\generators\mod_status.dsp +
  9. modules\mappers\mod_rewrite.dsp +
  10. modules\mappers\mod_speling.dsp +
  11. modules\metadata\mod_usertrack.dsp +
  12. modules\metadata\mod_cern_meta.dsp +
  13. modules\metadata\mod_headers.dsp +
  14. modules\metadata\mod_expires.dsp +
  15. modules\ssl\mod_ssl.dsp +
  16. modules\tls\mod_tls.dsp +
+ +

The support\ folder 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.

+ +
    +
  1. support\ab.dsp +
  2. support\htdigest.dsp +
  3. support\htpasswd.dsp +
  4. support\logresolve.dsp +
  5. support\rotatelogs.dsp +
  6. support\win32\wintty.dsp +
+ +

Once Apache has been compiled, it needs to be installed in its server + root directory. The default is the \Apache2 + directory, of the same drive.

+ +

To build and install all the files into the desired folder dir + automatically, use one the following nmake commands: +

+    nmake /f Makefile.win installr INSTDIR=dir
+
+    nmake /f Makefile.win installd INSTDIR=dir
+
+ The dir argument to INSTDIR gives the installation directory; it + can be omitted if Apache is to be installed into \Apache2.

+ +

This will install the following:

+ + + +

Warning about building Apache from the development tree

+ +

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 unnecessary if - you build from within the Microsoft DeveloperStudio environment.

- -

Before running the server you must fill out the conf directory. - Copy the *.conf-dist-win from the distribution conf directory - and rename *.conf. Edit the @@ServerRoot@@ entries to your - actual server root (for example "C:\apache"). Copy over - the conf/magic and conf/mime.types files as well.

+ you build from within the Microsoft DeveloperStudio environment.

- - + +