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. MacOS: Program built, but can't find Qt5 framework
Forum Updated to NodeBB v4.3 + New Features

MacOS: Program built, but can't find Qt5 framework

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 548 Views 1 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.
  • R Offline
    R Offline
    rjmx
    wrote on last edited by
    #1

    Finally I've managed to get my (originally Linux) program running on MacOS (thanks, folks, for the help). At least, it runs from Qt Creator, but won't run from the command line, complaining that it can't find Qt5Core:

    Reason: tried: '/Users/ron/Wombat/chronicles/chronicles/src/Chronicles.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/Users/ron/Wombat/chronicles/chronicles/src/Chronicles.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/System/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file, not in dyld cache)
    

    Now, the QtCore.framework is in /opt/local/libexec/qt5/lib/QtCore.framework/Versions/5/QtCore, but I don't know how to add that path to the operating system. How do I do that?

    Thanks!

    jsulmJ 1 Reply Last reply
    0
    • R rjmx

      Finally I've managed to get my (originally Linux) program running on MacOS (thanks, folks, for the help). At least, it runs from Qt Creator, but won't run from the command line, complaining that it can't find Qt5Core:

      Reason: tried: '/Users/ron/Wombat/chronicles/chronicles/src/Chronicles.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/Users/ron/Wombat/chronicles/chronicles/src/Chronicles.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/System/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file, not in dyld cache)
      

      Now, the QtCore.framework is in /opt/local/libexec/qt5/lib/QtCore.framework/Versions/5/QtCore, but I don't know how to add that path to the operating system. How do I do that?

      Thanks!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @rjmx Take a look at https://doc.qt.io/qt-6/macos-deployment.html "Linking the Application to Qt as Frameworks" chapter

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rjmx
        wrote on last edited by
        #3

        @jsulm Thanks!

        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