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. QMAKE not found
Forum Updated to NodeBB v4.3 + New Features

QMAKE not found

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

    Dear readers,

    when I open my terminal on my Mac and I want to use qmake commands it tells me:

    -bash: qmake: command not found

    Can someone please tell me how to fix this?
    QT is installed at:

    /Devbizz/QtSDK/

    Devbizz is my computer name by the way :)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Just add it to path. Like this:
      @
      PATH="/Devbizz/QtSDK/Desktop/<your qt version>/<compiler, usually gcc>/bin:$PATH"
      @

      You can add this line to your .profile (although I think this file is called a bit different on Mac, you'll have to check that).

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KeithS
        wrote on last edited by
        #3

        You just need to edit your .bash_profile file (if it exists, else create it) and add:

        export QTDIR=/usr/local/Trolltech/Qt-4.8.0
        export PATH=$QTDIR/bin:$PATH

        Obviously set the path to your actual path to qmake...

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marcopavan
          wrote on last edited by
          #4

          On Mac OSX Lion that syntax is not correct.
          I had to add this line of code on .bash_profile:

          @PATH=$PATH:/Users/marco/QtSDK/Desktop/Qt/4.8.1/gcc/bin
          @
          Obviously "/Users/marco" is my home folder

          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