I spent almost a week creating Qt5.8.0 from OpenSSL on Ubuntu 16.04.1 x64.
First of all, I downloaded the OpenSSL v1.0.2k sources. Then I configured it with the command
./Configure --prefix=$PWD/dist -shared linux-x86_64
Then I run these commands one by one:
make depend
make
make install
So, I got Openssl installed in / home / user / openssl -OpenSSL_1.0.2k / dist
Then I downloaded Qt from the official site and installed it with the sources, so the sources are in / home / user / Qt 5.8.0 / 5.8 / Src. Then I tried to configure it using the command
OPENSSL_LIBS='-L/home/user/openssl-OpenSSL_1_0_2k/dist/lib -lssl -lcrypto' ./configure -prefix /home/user/qt5_static -opensource -confirm-license -release -nomake examples -nomake tests -static -openssl-linked -I /home/user/openssl-OpenSSL_1_0_2k/dist/include/openssl -L /home/user/openssl-OpenSSL_1_0_2k/dist/lib
But got these errors:
ERROR: the "openssl" function is enabled, but the precondition "! Features.securetransport && & test.openssl 'failed.
: 'openssl-linked', 'features.openssl && libs.openssl ' .
, ?
, .