curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl build doesn't recognize ZLIB and OpenSSL when specifying install directories

From: Patrick Monnerat via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 27 Nov 2017 13:10:55 +0100

On 11/27/2017 11:53 AM, Thomas van Hesteren via curl-library wrote:
>
> I'm trying to build Curl with support for: OpenSSL, ZLIB and NGHTTP2.
> Note that I'm building from Ubuntu to Windows (32-bit) host:
> |i686-w64-mingw32|.
>
> it comes back with the configuration menu which shows me that ZLIB and
> nghttp2 are not enabled. Besides that I also doubt wether curl is
> linked to the right openssl library that I specified in the
> |/opt/mingw64/Win32/openssl| directory.
>
> The overview:
>
> |curl version: 7.56.1 Host setup: i686-w64-mingw32 Install prefix:
> /opt/mingw64/Win32/curl Compiler: i686-w64-mingw32-gcc SSL support:
> enabled (OpenSSL) SSH support: no (--with-libssh2) zlib support: no
> (--with-zlib) GSS-API support: no (--with-gssapi) TLS-SRP support:
> enabled resolver: POSIX threaded IPv6 support: enabled Unix sockets
> support: no (--enable-unix-sockets) IDN support: no
> (--with-{libidn2,winidn}) Build libcurl: Shared=yes, Static=yes
> Built-in manual: enabled --libcurl option: enabled
> (--disable-libcurl-option) Verbose errors: enabled (--disable-verbose)
> SSPI support: no (--enable-sspi) ca cert bundle: no ca cert path: no
> ca fallback: no LDAP support: enabled (winldap) LDAPS support: enabled
> RTSP support: enabled RTMP support: no (--with-librtmp) metalink
> support: no (--with-libmetalink) PSL support: no (libpsl not found)
> HTTP2 support: disabled (--with-nghttp2) Protocols: DICT FILE FTP FTPS
> GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMB SMBS SMTP
> SMTPS TELNET TFTP |
>
> Why can't it find the nghttp2 and zlib library while I specify with
> the install directories (I think it takes the default library for my
> Ubuntu environment)?
>

I have no Ubuntu and/or mingw installed to test with, but it seems your
command:

|/configure --host=i686-w64-mingw32 --prefix=/opt/mingw64/Win32/curl
--with-ssl --with-zlib=/opt/mingw64/Win32/zlib/include
--with-nghttp2=/opt/mingw64/Win32/zlib --disable-ldap --disable-ldaps|

*//*should rather mention:

--with-ssl=/opt/mingw64/Win32/openssl
--with-zlib=/opt/mingw64/Win32/zlib
--with-nghttp2=/opt/mingw64/Win32/nghttp2

Check your configure logs for more details and/or proper includes and
lib selection.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-27