May 11, 2012

Devbizz Devbizz
Lab Rat
12 posts

QMAKE not found

 

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 :)

3 replies

May 11, 2012

sierdzio sierdzio
Area 51 Engineer
4729 posts

Just add it to path. Like this:

  1. 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).

 Signature 

(Z(:^

May 19, 2012

KeithS KeithS
Lab Rat
34 posts

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…

June 8, 2012

marcopavan marcopavan
Lab Rat
1 posts

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

  1. PATH=$PATH:/Users/marco/QtSDK/Desktop/Qt/4.8.1/gcc/bin

Obviously “/Users/marco” is my home folder

 
  ‹‹ Qt Installation      Using different tool chain than the one used to build Qt ››

You must log in to post a reply. Not a member yet? Register here!