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. MacOS X - Framework executable VS libraries
Forum Update on Monday, May 27th 2025

MacOS X - Framework executable VS libraries

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.2k 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.
  • G Offline
    G Offline
    goocreations
    wrote on last edited by
    #1

    I've built Qt from source on a Mac. I'm doing all the installation and packaging manually. I've managed to compile and run everything in Linux and Windows without a problem, but Mac is hell. So here is my question:

    I want to create a standalone app. In Windows and Linux I can simply copy the libraries (.dll or .so) to my project after compilation and set the PATH according to the copied libraries. I've compile Qt on Mac (-no-framework) and tried to simply copy the .dylib files to my installation, but I get the following error

    @Qt internal error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework/Versions/Current/Resources/ or in the resources directory of your application bundle.@

    So I decided to build the framework again (without -no-framework). I then copied the qt_menu.nib and the QtCore and QtGui executable to my project and then everything worked. However, copying the .dylib and the .nib files does not work.

    So I was wondering what exactly the difference between the framework and the dynamic library Qt compilation was. Normally it is not good to rely on external executable (rather on libraries), so is it fine if I use the Qt executable instead of the libraries? Any pros and cons to this?

    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