How to Build the Apache APR-Util v1.6.0 Library

3.5k views Asked by At

I am really struggling with this one. I have downloaded the latest version of each of the following Apache APR products for Windows:

I have extracted the zip files and renamed the directories according to the APR Windows build instructions. Then I opened the apr-util/apr-util.dsw solution within Visual Studio 2017 and performed the required upgrade. When I build, I'm getting a bunch of errors from the apr-util/xml/xml.vcxproj project about missing source files. I have verified that none of the files referenced by the xml project actually exist on disk (or within the zip archive). Those files also don't exist within the Linux source download. Further, all of those files exist in APR-util v1.5.4. In my mind, this leaves only three possibilities:

  1. The version I downloaded is corrupted
  2. Apache released a version that is missing files required to build
  3. There are additional build steps required for this version that are missing from the build instructions

I have verified my download of apr-util against the expected MD5 hash, and even tried downloading from other mirrors to eliminate #1 as a possibility.

This version of apr-util was released 2.5 months ago, so if #2 were the case I expect it would have been fixed by now. Has anyone else successfully built this version of Apache APR?

1

There are 1 answers

6
Jeff G On BEST ANSWER

Based on issue #61379 opened August 3, it appears Apache removed Expat source code from apr-util. There is now an undocumented, additional step to copy the Source/lib directory from the Expat installation to apr-util/xml/expat/lib prior to building.