I am using Windows 7 (64-bit), Visual Studio 2013 Ultimate. I tried compile Apache 2.4.41 with OpenSSL 1.1.1e on my computer.
The source package I use is:
The software that I use:
I followed this tutorial on Apache Lounge: Building Apache 2.4.x for Windows x64 using CMake
However, the guide is outdated, it doesn't have the build guide apr-iconv and I got this error when building apr-util (error at nmake step):
[ 1%] Linking C shared library libaprutil-1.dll
LINK Pass 1: command "C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMak
eFiles\libaprutil-1.dir\objects1.rsp /out:libaprutil-1.dll /implib:libaprutil-1.
lib /pdb:C:\Development\Apache24\build\apr-util\libaprutil-1.pdb /dll /version:0
.0 /machine:x64 /debug /INCREMENTAL C:\Apache24\lib\libapr-1.lib kernel32.lib us
er32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comd
lg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\libaprutil-1.dir/interm
ediate.manifest CMakeFiles\libaprutil-1.dir/manifest.res" failed (exit code 1120
) with the following output:
Creating library libaprutil-1.lib and object libaprutil-1.exp
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_ParserCreate refer
enced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetEntityDeclHandl
er referenced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetElementHandler
referenced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetCharacterDataHa
ndler referenced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetUserData refere
nced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_Parse referenced i
n function do_parse
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_StopParser referen
ced in function entity_declaration
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_GetErrorCode refer
enced in function do_parse
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_ParserFree referen
ced in function cleanup_parser
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_ErrorString refere
nced in function apr_xml_parser_geterror
libaprutil-1.dll : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return cod
e '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
I tried to find a newer tutorial, here it is: How to Build Apache on Windows
However, I had to downgrade APR and Expat versions like in the tutorial. I followed the instructions but at the "Apache Build
" step I followed the instructions but still encountered 19 errors as in the image:
My goal is to build Apache 2.4.41 with OpenSSL 1.1.1e on both Windows x86 (32-bit) and x64 (64-bit) with all the latest packages. Can anyone give me a complete guide? I would appreciate your instructions.
Thanks!
User contributions licensed under CC BY-SA 3.0