[Interest] Qt5.15 from source on centOS 7
alexander_carot at gmx.net
Sat Jun 25 09:45:34 CEST 2022
Hej Mike, Thiago and Chris,
in fact the configure process does not recognize the new installed 1.1.1 version (see extract of config.log):
loaded result for library config.qtbase_network.libraries.openssl
Trying source 0 (type openssl) of library openssl ...
$OPENSSL_LIBS is not set.
=> source produced no result.
Trying source 1 (type inline) of library openssl ...
=> source failed condition 'config.win32'.
Trying source 2 (type inline) of library openssl ...
=> source failed condition 'config.msvc'.
Trying source 3 (type inline) of library openssl ...
=> source failed condition 'config.android'.
Trying source 4 (type inline) of library openssl ...
+ cd /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl && /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'QMAKE_USE += openssl' 'QMAKE_LIBS_OPENSSL = /usr/lib64/libssl.so' /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl
+ cd /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl && MAKEFLAGS= /opt/rh/devtoolset-10/root/usr/bin/gmake
> g++ -c -pipe -O2 -w -fPIC -I. -I/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-g++ -o main.o main.cpp
> main.cpp:5:4: error: #error OpenSSL >= 1.1.1 is required
> 5 | # error OpenSSL >= 1.1.1 is required
> | ^~~~~
Regarding Mike's email below I double checked and saw that all the required files are in place plus created the symbolic links in /usr/lib64/pkgconfig plus deleted the old 1.0.x-devel package.
Looks like there is a tiny last step to walk but I still wonder how to make it recognize / which variable to set etc.
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
> Gesendet: Mittwoch, 22. Juni 2022 um 19:31 Uhr
> Von: "Mike Rochefort" <mike at michaelrochefort.com>
> An: interest at qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
> On 6/22/22 12:43 PM, Thiago Macieira wrote:
> > See config.log and find out why "feature.ssl" failed.
> In addition to this, it's worth noting the OpenSSL availability on EL7.
> Only OpenSSL 1.0 is shipped by Red Hat and the rebuild distributions for
> development against (there is the compatibility openssl098e package, but
> it's only for runtime use). OpenSSL 1.1 is provided via EPEL.
> development resources:
> The build system is likely not seeing the "openssl11" content (double
> check you have the openssl11-devel package installed) and may need to be
> modified to find it properly rather than seeking "openssl". You could
> also make sure you have openssl-devel removed and symlink the *11.pc
> files to their counterparts and see if that helps pick things up.
> yum remove openssl-devel
> cd /usr/lib64/pkgconfig
> ln -s libcrypto11.pc libcrypto.pc
> ln -s libssl11.pc libssl.pc
> ln -s openssl11.pc openssl.pc
> Interest mailing list
> Interest at qt-project.org
More information about the Interest