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 512 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 12 Sept 2023, 02:31 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!

    J 1 Reply Last reply 12 Sept 2023, 07:12
    0
    • R rjmx
      12 Sept 2023, 02:31

      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!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Sept 2023, 07:12 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 15 Sept 2023, 14:36 last edited by
        #3

        @jsulm Thanks!

        1 Reply Last reply
        0

        1/3

        12 Sept 2023, 02:31

        • Login

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