Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. dynamiclibrary

    Log in to post
    • All categories
    • D

      Unsolved Mac, Static lib, Dynamic lib Lost signals!
      General and Desktop • static staticlibrary dynamic dynamiclibrary mac • • Dariusz

      13
      0
      Votes
      13
      Posts
      484
      Views

      SGaist

      Libraries that are shared between plugins and executable shall be shared and not static. Otherwise you will end up with multiple definition of the static meta object of your QObject based classes which is not good.

    • Y

      Solved what is wrong in script of application bundle for IOs application?
      3rd Party Software • 3rd party dynamiclibrary mac-os macdeployqt bundle • • Yash001

      8
      0
      Votes
      8
      Posts
      1517
      Views

      Y

      Hi,

      With help of our senior Engineer. I am able to solve this issue. He change the binary path of libSquidStateLibrary.1.dylib into libChargeDischarge1.dylib and .app file.

      Inside the bundle my library location at _Squidstate.app/squidstatelibrary/libSquidStateLibrary.1.dylib

      //change Binary path in Plugin

      install_name_tool -change libSquidStateLibrary.1.dylib @executable_path/squidstatelibrary/libSquidStateLibrary.1.dylib ./../../out/Release/_SquidStat/_SquidStat.app/Contents/MacOS/prebuilt/libChargeDischarge1.dylib

      // change binary path in app

      install_name_tool -change libSquidStateLibrary.1.dylib @executable_path/squidstatelibrary/libSquidStateLibrary.1.dylib ./../../out/Release/_SquidStat/_SquidStat.app/Contents/MacOS/_SquidStat

      solution may be helpful to novice programmer like me.
      Thank you.

    • A

      Solved qbs: DynamicLibrary under MacOS
      Installation and Deployment • qbs macosx librabries dynamiclibrary • • Andreas_Scholz

      4
      0
      Votes
      4
      Posts
      1455
      Views

      ?

      Great! Thanks for sharing your solution!