Linux OpenSSL incompatibility issue v3 and v1
-
HI,
I was developing a cross platform application. In which I used several HTTPS APIs to call. I am using QT 6.6.3 it built with openssl v3x. In My linux runtime openssl is v1.1.1. while running the application apis are not working due to incompatibility in built library and runtime.
Then I started upgrade my runtime OpenSSL to v3x, unfortunatly it get affected my whole OS. after the upgrade several applications where not working, then i need to reinstall the OS again.
I feel the dynamic linking of openssl may affect the application due to incompatibility while distribution. most of the systems still working with openssl 1.1.1. I am stuck here, what approtch i need to take here?
-
Thank you So much @ChrisW67 its working. now its run perfectly on Ubuntu 20 , 22 and 24.
APPDIR=$(dirname "$(readlink -f "$0")") export PATH="${APPDIR}/usr/bin:${PATH}" #echo $PATH export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}" #export QT_PLUGIN_PATH= "${APPDIR}/plugin:${QT_PLUGIN_PATH}" check_wayland_display() { if [ -n "$WAYLAND_DISPLAY" ]; then return 0 # Wayland display active else return 1 # Wayland display not active fi } # Main script execution if check_wayland_display; then # Wayland display is active export QT_QPA_PLATFORM=wayland-egl echo "Wayland display detected. QT_QPA_PLATFORM set to 'wayland-egl'." else # Wayland display is not active export QT_QPA_PLATFORM=xcb echo "Wayland display not detected. QT_QPA_PLATFORM set to 'xcb'." fi #echo $LD_LIBRARY_PATH export QT_DEBUG_PLUGINS=1 && exec usr/bin/SysTray
-