Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmake (or cmake): create a Mac framework bundle with an executable and a library (to re-use bundled Qt frameworks)

qmake (or cmake): create a Mac framework bundle with an executable and a library (to re-use bundled Qt frameworks)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.1k Views 2 Watching
  • 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.
  • Z Offline
    Z Offline
    zura
    wrote on last edited by zura
    #1

    Hello,

    Is it possible to generate a mac framework bundle (TEMPLATE = lib CONFIG += lib_bundle) but to also include an executable inside this bundle.

    Both, the lib (dylib) and the executable will use the bundled Qt frameworks (which is copied by macdeployqt utility). The lib will run the executable and they will communicate using Qt RemoteObjects (or other RPC).

    The lib itself will be used from another 3rd party app.

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, what you describe doesn't follow any of the bundle or framework definition.

      You can find an interesting description from CMake here.

      Can you give more details about what that framework is supposed to do ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zura
        wrote on last edited by zura
        #3

        I have a mac framework which uses Qt. So macdeployqt my.Framework correctly puts all the needed Qt frameworks and resources inside. This (my) framework (exposed by C API) is used from the non-Qt application.

        Now, there is a need to create another Qt app. This qt app and the mentioned framework (actually a dynamic library inside) will communicate through RPC or IPC between each other.

        I want to re-use the bundled Qt frameworks here - to not to have separate Qt libs for another app, but this should be self-contained. So I want to put both - the qt app and the dynamic library (also using qt) inside the one mac framework so they reuse the bundled Qt stuff.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zura
          wrote on last edited by zura
          #4

          Update: so the executable can be placed in Resources directory inside the framework - the main dylib will run it, not the user.

          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