From d85a1cf11d31bbf7a91c406ba011e0235688c527 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 10 Aug 2019 23:19:55 +0200 Subject: nghttp3: required when ngtcp2 is used for QUIC - checked for by configure - updated docs/HTTP3.md - shown in the version string Closes #4210 --- docs/HTTP3.md | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/HTTP3.md b/docs/HTTP3.md index 98ffe2dcf..9e9b23c7d 100644 --- a/docs/HTTP3.md +++ b/docs/HTTP3.md @@ -31,12 +31,42 @@ in the master branch using pull-requests, just like ordinary changes. ## Build -1. clone ngtcp2 from git (the draft-22 branch) -2. build and install ngtcp2's custom OpenSSL version (the quic-draft-22 branch) -3. build and install nghttp3 -4. build and install ngtcp2 according to its instructions -5. configure curl with ngtcp2 support: `./configure --with-ngtcp2=` -6. build curl "normally" +Build (patched) OpenSSL + + % git clone --depth 1 -b quic-draft-22 https://github.com/tatsuhiro-t/openssl + % cd openssl + % ./config enable-tls1_3 --prefix= + % make + % make install_sw + +Build nghttp3 + + % cd .. + % git clone https://github.com/ngtcp2/nghttp3 + % cd nghttp3 + % autoreconf -i + % ./configure --prefix= --enable-lib-only + % make + % make install + +Build ngtcp2 + + % cd .. + % git clone -b draft-20 https://github.com/ngtcp2/ngtcp2 + % cd ngtcp2 + % autoreconf -i + % ./configure PKG_CONFIG_PATH=/lib/pkgconfig:/lib/pkgconfig LDFLAGS="-Wl,-rpath,/lib" --prefix== + % make + % make install + +Build curl + + % cd .. + % git clone https://github.com/curl/curl + % cd curl + % ./buildconf + % LDFLAGS="-Wl,-rpath,/lib" ./configure -with-ssl= --with-nghttp3= --with-ngtcp2= + % make ## Running -- cgit v1.2.3