I'm trying to build 64-bit httpd-2.4.29 on Windows with apr-util-1.6.1 and 
Visual Studio 2015 via command line nmake and I'm running into a problem with 
the expat unbundling from apr-util.
Building with apr-util-1.5.4 works fine, but would prefer to not build with an 
older apr and apr-util.

I downloaded the expat 2.2.0 source and copied into srclib\apr-util\xml\expat
I also have a build of libexpat.lib (libexpat.dll), but I have no idea how to 
set up the folder structure/file location to take advantage of that.

When building httpd, it is failing with 'xml.mak' not found:

        cd srclib\apr-util\xml\expat\lib
        "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.
exe" -nologo -f xml.mak             CFG="xml - Win32 Release" RECURSE=0
NMAKE : fatal error U1052: file 'xml.mak' not found
Stop.

I tried to sort this out by copying the xml.mak from a prior apache/apr-util 
release into srclib\apr-util\xml\expat\lib, the expat portion of the build 
seems to proceed successfully, but apr-util still fails with this error during 
the link step:

        rc.exe /l 0x409 /fo".\Release\libaprutil.res" /i "./include" /i "../apr/
include" /d "NDEBUG" /d "APU_VERSION_ONLY" .\libaprutil.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation.  All rights reserved.

        link.exe @C:\Users\build\AppData\Local\Temp\nm64F7.tmp
LINK : fatal error LNK1181: cannot open input file '.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\link.exe"' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

>From the apr-util changelog, there is this:

* The expat dependency of apr-util is no longer built with apr-util.
     Install expat (including development headers and libraries) first
     before building apr-util. [https://libexpat.github.io/]

For Linux, that makes sense, but it's not helpful for Windows since there isn't 
the same concept of installing development headers and libraries.

Is there documentation for the changes necessary for building on Windows with 
nmake?

Thanks in advance,
Steve Bush
steve.b...@3ds.com

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

Reply via email to