I'm trying to build an app for Windows that's statically linked and is OpenSSL enabled.
I installed OpenSSL from here (and other posts around the Internet seem to suggest this is the best one to use for this rather than self-compiling):
http://www.slproweb.com/products/Win32OpenSSL.html
I compile QT I'm using this command (with more irrelevant flags omitted):
configure -static -release -openssl-linked -I /c/OpenSSL/include -L /c/OpenSSL/lib/MinGW -platform win32-g++
When I don't make the paths to the libraries correct, the compile of QT dies with an error that it couldn't find them. However, with that command, the compile appears to be completing successfully.
However, when I build the official QT HTTP example app, it dies with:
ld.exe: cannot find -lssleay32
I fixed this issue by copying libeay32.lib and ssleay32.lib into my qt/lib directory. The compile of the HTTP example application then finishes, but attempting to launch the application fails with the message:
The program can't start because LIBEAY32.dll is missing from your computer.
So even though the QT compile finished, it had actually silently failed to execute the -openssl-linked command. Can anyone help me with this? I've tried all sorts of things I've found from around the Internet, from moving around the .lib and .a files to renaming them to modifying the make files, but none of them have worked, and each time I try something it's taking almost an hour to recompile QT.
Bookmarks