Ubuntu 22.04 with Qt 6.3.0 and OpenSSL
-
On Ubuntu 22.04 OpenSSL installed version is 3, that is not compatible with pre-built Qt binaries. I have installed OpenSSL 1.1 with Qt installer. But I have question: how can I say Qt to load OpenSSL from custom directory?
-
LD_LIBRARY_PATH solves the problem.
-
I have installed OpenSSL 1.1 with Qt Maintenance Tool, but I don't find which path has to be added to LD_LIBRARY_PATH. @imironchik can you be more explicit?
-
I have installed OpenSSL 1.1 with Qt Maintenance Tool, but I don't find which path has to be added to LD_LIBRARY_PATH. @imironchik can you be more explicit?
-
I've tried with:
export LD_LIBRARY_PATH=/home/my_user/Documents/Qt/Tools/OpenSSL/
checked with:
echo $LD_LIBRARY_PATH
start qtcreator, rebuild and run, but not working yet.I've tried too with:
export LD_LIBRARY_PATH=/home/my_user/Documents/Qt/Tools/OpenSSL/src/
export LD_LIBRARY_PATH=/home/my_user/Documents/Qt/Tools/OpenSSL/src/ssl/
even with:
sudo ldconfig
after every export, but not working yet.[edit]
the opposite way:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libssl.so.3
doesn’t work either. -
I've tried with:
export LD_LIBRARY_PATH=/home/my_user/Documents/Qt/Tools/OpenSSL/
checked with:
echo $LD_LIBRARY_PATH
start qtcreator, rebuild and run, but not working yet.I've tried too with:
export LD_LIBRARY_PATH=/home/my_user/Documents/Qt/Tools/OpenSSL/src/
export LD_LIBRARY_PATH=/home/my_user/Documents/Qt/Tools/OpenSSL/src/ssl/
even with:
sudo ldconfig
after every export, but not working yet.[edit]
the opposite way:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libssl.so.3
doesn’t work either. -
- After installing OpenSSL 1.1, I have SSL libraries at /usr/local/lib/libssl.so
(the original system ones (ssl3) are at /usr/lib/x86_64-linux-gnu/libssl.so) - The error, among others, when running the app from qtcreator is:
"qt.tlsbackend.ossl: Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)" - So I need to update Run configuration of the project, but I don't understand how. I've tried with "Environment", adding LD_LIBRARY_PATH=usr/local/lib/libssl.so, with no results.
- After installing OpenSSL 1.1, I have SSL libraries at /usr/local/lib/libssl.so
-
- After installing OpenSSL 1.1, I have SSL libraries at /usr/local/lib/libssl.so
(the original system ones (ssl3) are at /usr/lib/x86_64-linux-gnu/libssl.so) - The error, among others, when running the app from qtcreator is:
"qt.tlsbackend.ossl: Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)" - So I need to update Run configuration of the project, but I don't understand how. I've tried with "Environment", adding LD_LIBRARY_PATH=usr/local/lib/libssl.so, with no results.
@XaviP said in Ubuntu 22.04 with Qt 6.3.0 and OpenSSL:
LD_LIBRARY_PATH=usr/local/lib/libssl.so, with no results.
This is wrong - you add folders to that path (and you also forgot / at the beginning of the path):
LD_LIBRARY_PATH=/usr/local/lib
- After installing OpenSSL 1.1, I have SSL libraries at /usr/local/lib/libssl.so
-
@XaviP This worked for me...
Download libssl1.1_1.1.1f-1ubuntu2_amd64.deb from official repository:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.debInstall it:
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb -
@XaviP This worked for me...
Download libssl1.1_1.1.1f-1ubuntu2_amd64.deb from official repository:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.debInstall it:
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb@PatG thanks, This helped me