Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Mac deployment: Using Qt from a framework - QFactoryLoader anyway looks for plugins in a (non-Qt) app bundle
Forum Updated to NodeBB v4.3 + New Features

Mac deployment: Using Qt from a framework - QFactoryLoader anyway looks for plugins in a (non-Qt) app bundle

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 471 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,

    I want to use Qt internally in the Mac framework (dynamic library). A separate non-Qt app uses this framework through the exposed C API.

    macdeployqt seems correctly putting all the dependencies inside the framework bundle.

    When I run the app (with QT_DEBUG_PLUGINS=1):

    QFactoryLoader::QFactoryLoader() checking directory path "..../MyApp.app/Contents/MacOS/platforms" ...
    This application failed to start because it could not find or load the Qt platform plugin "cocoa"
    in "".

    So basically QFactoryLoader looks for the "cocoa" plugin inside the non-Qt app bundle.

    How to make it look inside the framework bundle which actually uses Qt?

    Thank you!

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

      Hi,

      There might be something to do with qt.conf.

      Hope it helps

      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

      • Login

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