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. How do I make my shared library backward-compatible with Qt5Core?
QtWS25 Last Chance

How do I make my shared library backward-compatible with Qt5Core?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 120 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.
  • M Offline
    M Offline
    mhamid3d
    wrote on last edited by
    #1

    I'm building a shared library that is linking with libQt5Core.so v5.12, but when I try to use this shared library in a program that its own libQt5Core.so v5.6 I get an error that it can't find Qt_5.12. According to the strings result of the qt5core lib, it has all versions way back to 5.0 listed, so what do I have to do in my CMake to ensure that it is cross compatible?

    By the way I am not using a find_package functions in my CMake, I'm just pointing to the location where libQt5Core.so is in target_link_libraries and linking it that way.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by sierdzio
      #2

      Compile and link your library with Qt 5.6.

      (Z(:^

      1 Reply Last reply
      3

      • Login

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