logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: nghttp2.dll share Makefile.msvc ? Page Previous  1, 2
Author
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 06 Jul '16 19:25    Post subject: Reply with quote

Apache is only dependent on nghttp2 if you want mod_http2 and mod_proxy_http2. If nghttp2 is not present, it simply will not try to build these modules.

So far the best thing I've seen being used IMHO is Mozilla Build Tools and MSVC. I have not build it this way but at least one person has.

https://www.apachelounge.com/viewtopic.php?t=6740
Back to top
elav83



Joined: 10 Nov 2014
Posts: 17
Location: India

PostPosted: Thu 07 Jul '16 11:14    Post subject: Building libnghttp2 in windows x64 for Apache Reply with quote

@glsmith: Thanks for the response. Can you please share the compilation steps for building nghttp2 using Mozila Build Tools.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Thu 07 Jul '16 11:37    Post subject: Reply with quote

The only thing you need nowadays is a GNU make.exe that is accessible from within the VC14 command prompt environments.

1. Open the VS2015 x64 Native Tools Command Prompt
2. git clone https://github.com/nghttp2/nghttp2.git
3. cd nghttp2\lib
4. make -f Makefile.msvc
5. dir MSVC_obj

in the nghttp2\lib\MSVC_obj directory you will find a nghttp2.lib which links the nghttp2.dll. There will be a nghttp2-static.lib as well.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 07 Jul '16 20:49    Post subject: Reply with quote

Are you sure?

Code:
C:\buildN\nghttp2-1.12.0\lib>make -f makefile.msvc
'cut' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, cygpath -w C:/buildN/nghttp2-1.12.0/lib/MSVC_obj, ...) failed.
'Building NgHTTP (MSVC) ver. "..".'
sed < includes/nghttp2/nghttp2ver.h.in     \
             -e 's/@PACKAGE_VERSION@/../g' \
             -e 's/@PACKAGE_VERSION_NUM@/(( << 16) + ( << 8) + )/g' > includes/nghttp2/nghttp2ver.h
<< was unexpected at this time.
make: *** [includes/nghttp2/nghttp2ver.h] Error 255

cut, grep & sed are part of msys.
cygpath is part of cygwin obviously.
Still, none of these are native to windows or Visual Studio.

This is using the latest makefile.msvc in git

I have the same problem with cygpath in mozilla-build. This mozilla-build is a few years old however since I tossed the idea of ever supplying apr_crypto_nss-1.dll.

Code:
GLS@Goat /c/buildN/nghttp2-1.12.0/lib
$ make -f makefile.msvc
make: cygpath: Command not found
Building NgHTTP (MSVC) ver. "1.12.0".
sed < includes/nghttp2/nghttp2ver.h.in     \
             -e 's/@PACKAGE_VERSION@/1.12.0/g' \
             -e 's/@PACKAGE_VERSION_NUM@/((1 << 16) + (12 << 8) + 0)/g' > includes/nghttp2/nghttp2ve
r.h
touch --reference=includes/nghttp2/nghttp2ver.h.in includes/nghttp2/nghttp2ver.h
mkdir MSVC_obj
make: *** No rule to make target `MSVC_obj/r_nghttp2_pq.obj', needed by `MSVC_obj/nghttp2-static.lib
'.  Stop.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Thu 07 Jul '16 21:36    Post subject: Reply with quote

glsmith wrote:
Are you sure?

Apparently not. In my Visual command prompts cygwin is available in the path (with make, sed, cut and grep).
Back to top


Reply to topic   Topic: nghttp2.dll share Makefile.msvc ? View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads Page Previous  1, 2