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 408 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 17 Jan 2022, 09:27 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?

    C 1 Reply Last reply 17 Jan 2022, 09:30
    0
    • 0 0...-5
      17 Jan 2022, 09:27

      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?

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 17 Jan 2022, 09:30 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 17 Jan 2022, 09:32
      1
      • C Christian Ehrlicher
        17 Jan 2022, 09:30

        @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 17 Jan 2022, 09:32 last edited by
        #3

        @Christian-Ehrlicher many thanks for fast response

        1 Reply Last reply
        0

        2/3

        17 Jan 2022, 09:30

        • Login

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