如何./configure -enable-openssl for libircclient?

时间:2016-03-06 16:41:29

标签: openssl mingw msys

我正在尝试使用OpenSSL配置libircclient但是失败了。使用MinGW msys:

X@X-PC /c/deps/libircclient
$ ./configure -enable-openssl
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
.......................etc etc
checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: OpenSSL not found

我已经添加了这些行但是失败了:

CPPFLAGS="-I/c/deps/openssl-1.0.1l/include
LDFLAGS="-L/c/deps/openssl-1.0.1l

结果是:

checking For MinGW32... no
checking for CRYPTO_new_ex_data in -lcrypto... yes
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL not found

所以-lcrypto没问题,但是-lssl ...没有

问题和解决方案是什么?

使用以下命令从源代码构建的OpenSSL:

cd /c/deps/
tar xvfz openssl-1.0.1l.tar.gz
cd openssl-1.0.1l
./Configure no-zlib no-shared no-dso no-krb5 no-camellia no-capieng no-cast no-cms \
  no-dtls1 no-gost no-gmp no-heartbeats no-idea no-jpake no-md2 no-mdc2 no-rc5 \
  no-rdrand no-rfc3779 no-rsax no-sctp no-seed no-sha0 no-static_engine no-whirlpool \
  no-rc2 no-rc4 no-ssl2 no-ssl3 mingw64
make

1 个答案:

答案 0 :(得分:0)

你自己编译过OpenSSL吗?

如果你有,我会仔细检查OpenSSL是否已正确编译,并确保lib位于root openssl目录中(例如,不是/c/deps/openssl-1.0.1l/lib)。