问题
I am really struggling with this one. I have downloaded the latest version of each of the following Apache APR products for Windows:
- APR v1.6.2
- APR-util v1.6.0
- APR-iconv v1.2.1
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:
- The version I downloaded is corrupted
- Apache released a version that is missing files required to build
- 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:
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.
来源:https://stackoverflow.com/questions/45969401/how-to-build-the-apache-apr-util-v1-6-0-library