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. SOLVED: Failed to compile / run a Qt demo on Mac OSX
QtWS25 Last Chance

SOLVED: Failed to compile / run a Qt demo on Mac OSX

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 1.7k 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.
  • P Offline
    P Offline
    pmh4514
    wrote on last edited by
    #1

    I've been using Qt on the PC for a while, and now installed it on a Mac (I am not very familiar with Macs but am learning)

    I installed XCode 5 from the app store and command line tools, then installed Qt5.3.1 using the online installer.

    I restarted, opened QtCreator, selected the "DirView" example and tried to build it to run.
    It failed with what you see below. Any ideas what I've not setup right? (again, very much a Mac newbie)

    Starting /Users/me/Qt/Examples/Qt-5.3/widgets/itemviews/build-dirview-Desktop_Qt_5_3_clang_64bit-Release/dirview.app/Contents/MacOS/dirview...
    dyld: Library not loaded: /work/build/PADDING/lib/QtWidgets.framework/Versions/5/QtWidgets
    Referenced from: /Users/me/Qt/Examples/Qt-5.3/widgets/itemviews/build-dirview-Desktop_Qt_5_3_clang_64bit-Release/dirview.app/Contents/MacOS/dirview
    Reason: image not found
    The program has unexpectedly finished.
    /Users/me/Qt/Examples/Qt-5.3/widgets/itemviews/build-dirview-Desktop_Qt_5_3_clang_64bit-Release/dirview.app/Contents/MacOS/dirview crashed

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pmh4514
      wrote on last edited by
      #2

      .. actually I'm thinking Qt didn't fully install, as I don't see it in the applications list when I look to try to uninstall it.

      going to try downloading the complete installer and re-installing. will post back.

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

        Hi,

        Indeed, when you see this it means that the installation failed at some point. Check that you can access the command line tools properly

        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
        • P Offline
          P Offline
          pmh4514
          wrote on last edited by
          #4

          Hi,

          Yes, a reinstall did the trick!

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

            Good, then please update the thread title prepending [solved] so other forum users may know a solution as been found :)

            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
            • P Offline
              P Offline
              pmh4514
              wrote on last edited by
              #6

              beat ya to it :)

              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