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

这一生的挚爱 提交于 2019-12-11 02:16:53

问题


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:

  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:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!