Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linux OpenSSL incompatibility issue v3 and v1
Forum Updated to NodeBB v4.3 + New Features

Linux OpenSSL incompatibility issue v3 and v1

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 340 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aswin
    wrote on last edited by
    #1

    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?

    C 1 Reply Last reply
    0
    • A Aswin

      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?

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @Aswin Deploy the OpenSSL 3 libraries with your application and use a startup script to put them on LD_LIBRARY_PATH

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Aswin
        wrote on last edited by Aswin
        #3

        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
        
        1 Reply Last reply
        0
        • A Aswin has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved