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. Making Qt visible from Mac OS X command line
QtWS25 Last Chance

Making Qt visible from Mac OS X command line

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 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.
  • Mark92630M Offline
    Mark92630M Offline
    Mark92630
    wrote on last edited by Mark92630
    #1

    Installed 5.6.1 on Mac OS X 10.11.5.

    Purpose is to be able to compile someone else's program, that lists Qt as a requirement.

    I can run Qt Creator by double-clicking in Finder on /Users/<myusername>/Qt/Qt Creator

    But, if I launch Terminal and enter:

    $ qmake

    I get an error message:

    -bash: qmake: command not found

    How should I make Qt visible from the command line?

    TIA,

    Mark

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

      Hi and welcome to devnet,

      You can simply use the full path to qmake e.g. ~/Qt/5.6.1/clang_64/bin/qmake or you can edit your .profile file and add the path to the binaries folder to PATH there.

      I'd recommend number 1 so you always know which version of Qt you call, especially if you are using several builds of it.

      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
      1

      • Login

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