Introduction

Before compiling Apache HTTPD on the Windows platform certain conversions to the source code need to be made. This guide details the steps required.

This conversion is only required if the httpd-2.x.x-win32-src.zip isn't available on your local mirror site.

Requirements

  1. Perl Interpreter

  2. MSVC6 or better

General Setup

The required unix tarballs can be found here:

The directory layout is as follows:

Directory

Source File

Required

c:\build\httpd-2.2.x\

httpd-2.2.x.tar.gz

Yes

c:\build\httpd-2.2.x\srclib\apr-iconv\

apr-iconv-1.1.x.tar.gz

Yes

c:\build\httpd-2.2.x\srclib\zlib\

zlib-1.2.x.tar.gz

No

c:\build\httpd-2.2.x\srclib\openssl\

openssl-0.9.x.tar.gz

No

Converting the source code

Open the MS-DOS command line utility (Start > Run > cmd) and cd to the main source directory (cd c:\build\httpd-2.2.x).

In that directory, execute: perl srclib\apr\build\lineends.pl

Once the script has completed, the source tree should match the httpd-2.x.x-win32-src.zip distribution.

It should compile fine on MSVC6 and better. Makefiles can be exported with MSVC6 so it compiles on MSVC5 also.

Generating Additional Makefiles

Open apache.dsp in MSVC6. Project -> Export Makefiles Make sure export dependencies is checked.

In the main source directory, execute: perl srclib/apr/build/fixwin32mak.pl

The makefiles should now be available.

Win32SourceConversion (last edited 2009-09-20 22:13:34 by localhost)