curl-library
Curl with http2 support configure error
Date: Wed, 20 Jul 2016 19:43:32 +0800
Hi,
I'm cross compiling curl for ARM on my Ubuntu 12.02 machine and want
to include http2 support into it. I've already cross compiled nghttp2
for this. While running ./configure in curl if I specify the option as
below
PATH=<tool_chain_path>:$PATH ./configure
--prefix=<install_dir>/curl_cross_compile --host=arm-linux-gnueabihf
--with-ssl=<cross_compiled_openssl_path>
--with-nghttp2=<cross_compiled_nghttp2_path>
I get the error
checking for arm-linux-gnueabihf-pkg-config... (cached)
<tool_chain_path>/bin/arm-linux-gnueabihf-pkg-config
checking for libnghttp2 options with pkg-config... no
configure: error: --with-nghttp2 was specified but could not find
libnghttp2 pkg-config file
However if the configure script is run with the PKG_CONFIG_PATH
environment variable set as below the configure succeeds.
PKG_CONFIG_PATH=<cross_compiled_nghttp2_path>/lib/pkgconfig:$PKG_CONFIG_PATH
PATH=<tool_chain_path>:$PATH ./configure
--prefix=<install_dir>/curl_cross_compile --host=arm-linux-gnueabihf
--with-ssl=<cross_compiled_openssl_path>
--with-nghttp2=<cross_compiled_nghttp2_path>
Shouldn't the path specified in --with-nghttp2 be sufficient?
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-20