Re: building httpd 2.4 on windows x64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 27, 2015 at 12:43 PM, Andy Wang <awang@xxxxxxx> wrote:
I've given up trying to figure out how to do this with visual studio in a reproducible fashion and started looking at cmake.

Has anyone had any luck building
httpd (2.4.12 is what I'm using) with the following dependencies using cmake:
openssl
zlib
pcre
apr
and apr-util?

I'm able to build zlib, pcre, openssl, and apr and have them installed into C:\Apache24
but I'm stuck on apr-util.  It's looking for openssl but I don't know how to tell it to find the openssl that I've installed into C:\Apache24.

I've tried setting the OPENSSL_ROOT_DIR environment variable (it looks like Cmake is trying to use that) but no luck.  Anyone have any luck with this?

I need to use our own openssl build and can't depend on a third party build (which it looks like cmake wil attempt to find).

Thanks,
Andy

I need to update apr-util's README.cmake file with this blurb from httpd.  Does this fix your issue?

OpenSSL
-------

If you have a binary install of OpenSSL in a well-known directory (e.g.,
%HOME%\OpenSSL-Win64) and you wish to build httpd against a different
install of OpenSSL, the cmake build may unexpectedly select OpenSSL
libraries in the well-known directory even if the expected include files
are used.  Check the cmake output from your httpd build to confirm that
the expected OpenSSL libraries and include files are used.

The cmake FindOpenSSL module searches for OpenSSL libraries in a "VC"
subdirectory of the OpenSSL install with filenames that indicate the build
type (e.g., "<PREFIX>/lib/VC/ssleay32MD.lib"); defining CMAKE_PREFIX_PATH
or OPENSSL_ROOT_DIR or even OPENSSL_LIBRARIES does not circumvent finding
these libraries.

To work around this issue, rename the well-known OpenSSL directory while
building httpd.  Let us know if you find a better solution. 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Born in Roswell... married an alien...
http://emptyhammock.com/


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux