Thanks Peter - I copied apr.hw to apr.h as suggested above, and the
build process made progress, but didn't quite complete. Here's where
it failed:
cl.exe /nologo /MDd /W3 /Zi /Od /I "./include" /I "./include/arch"
/I ". /include/arch/win32" /I "./include/arch/unix" /D "_DEBUG" /D
"APR_DECLARE_EXPORT " /D "WIN32" /D "WINNT" /D "_WINDOWS"
/Fo".\Debug\\" /Fd".\Debug\libapr_src" /FD /EHsc /c
.\user\win32\userinfo.c userinfo.c rc.exe /l 0x409
/fo".\Debug\libapr.res" /i "./include" /d "_DEBUG" /d "A
PR_VERSION_ONLY" .\libapr.rc Microsoft (R) Windows (R) Resource
Compiler Version 6.1.7600.16385 Copyright (C) Microsoft Corporation.
All rights reserved.
link.exe @C:\Users\jon\AppData\Local\Temp\nmCA1.tmp Creating library
.\Debug\libapr-1.lib and object .\Debug\libapr-1.exp if exist
.\Debug\libapr-1.dll.manifest mt.exe -manifest .\Debug\libapr-1
.dll.manifest -outputresource:.\Debug\libapr-1.dll;2 echo Helper for
Post-build step > ".\Debug\postbld.dep" cd build "c:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" - nologo -f
apr_app.mak CFG="apr_app - Win32 Debug" RECURSE=0 NMAKE : fatal
error U1052: file 'apr_app.mak' not found Stop. NMAKE : fatal error
U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2' Stop.
c:\Users\jon\Desktop\apr-dist\apr-util>il
I can't find an apr_app.mak file anywhere, and I'm guessing it
shouldn't be looking for one. In any case, I haven't been able to
get past this error, and any help would be appreciated.
This is one of the reasons why I mentioned that the Windows make files
are broken in my experience -- I've encountered exactly the same
problems as you have and have documented the solution in the build notes
of my Lua/APR project:
The instructions about building APR on Windows don't work for me so
this is where things get sketchy: Open a Windows SDK command prompt
and navigate to the apr-util directory. Inside this directory
execute nmake -f Makefile.win buildall. This doesn't work for me out
of the box because of what's probably a bug in the APR-util makefile;
I needed to replace apr_app with aprapp on lines 176 and 177 of
Makefile.win. After this change nmake still exits with errors but
nevertheless seems to build libapr-1.dll and libaprutil-1.dll...
This is from https://github.com/xolox/lua-apr/blob/master/NOTES.md.
Together with the bootstrap script I linked to earlier this document
contains hints about compiling APR, APR-Util, APR-iconv and the
SQLite3 driver on Windows (XP) using the Windows Platform SDK.
- Peter