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. Forced lib linkage for its resources
QtWS25 Last Chance

Forced lib linkage for its resources

Scheduled Pinned Locked Moved Solved General and Desktop
librabrieslinkingresource
3 Posts 2 Posters 412 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.
  • 0 Offline
    0 Offline
    0...-5
    wrote on last edited by 0...-5
    #1

    I have a shared lib which binary stores some compiled-in resources in order to share it with apps. The problem is if my app doesn't import any library symbols library would not be actually linked, and in that case its resources are not available (even if I use target_link_libraries in my project). I can import a dummy symbol, but I don't think it is a perfect solution, Are there any built-in qt one?

    Christian EhrlicherC 1 Reply Last reply
    0
    • 0 0...-5

      I have a shared lib which binary stores some compiled-in resources in order to share it with apps. The problem is if my app doesn't import any library symbols library would not be actually linked, and in that case its resources are not available (even if I use target_link_libraries in my project). I can import a dummy symbol, but I don't think it is a perfect solution, Are there any built-in qt one?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @0-5 said in Forced lib linkage for its resources:

      I can import a dummy symbol

      correct

      Are there any built-in qt one?

      No, not a Qt issue

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      0 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @0-5 said in Forced lib linkage for its resources:

        I can import a dummy symbol

        correct

        Are there any built-in qt one?

        No, not a Qt issue

        0 Offline
        0 Offline
        0...-5
        wrote on last edited by
        #3

        @Christian-Ehrlicher many thanks for fast response

        1 Reply Last reply
        0

        • Login

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