Building Qt with OpenSSL on Ubuntu 16.04.1 Fails

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 ' .

, ?

, .

+4
1

openSSL :

1) openSSL

sudo apt-get update && sudo apt-get install libssl-dev

2) qt , -openssl-linked, :

/home/someuser/Qt/5.8/Src/configure -c++std c++11 -static -release -platform linux-g++-64 -prefix /home/someuser/Qt/StaticRelease58 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -qt-xcb -make libs -openssl-linked -nomake tools -nomake examples -nomake tests -opensource -confirm-license -skip qtwayland -skip qtwebview -skip qtwebengine -skip qtwebchannel -no-qml-debug

, QT , :

http://doc.qt.io/qt-5/linux-requirements.html

http://doc.qt.io/qt-5/linux-deployment.html

P.S. openSSL QT5.8 .

0

Source: https://habr.com/ru/post/1668561/


All Articles