Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot locate qmake in Qt5.5 in OS X

Tags:

macos

qt

I installed Qt5.5, but I am not able to locate the program qmake in Qt installation folder as well as in my user bin. I run a find command in terminal in search for qmake starting from the root directory, but getting no results. When I use the Qt IDE I can compile my source with option of qmake, so I am sure the program qmake is installed.

I would want to add qmake to my path so I can run qmake in command line. Does anyone know is Qt5.5 is hiding qmake somewhere?

like image 271
KMC Avatar asked Nov 10 '15 06:11

KMC


2 Answers

qmake is located into bin subfolder of your installed Qt; probably, that directory is not into your path (echo $PATH will show your actual path); if Qt is not present in your $PATH, you can include it; you should have installed Qt inside /usr/local (or /opt/local); add those lines to your .profile file:

PATH=/usr/local/Qt-x.x.x/bin:$PATH
export PATH

(filling the 'x' with your Qt version) and check again with echo $PATH

like image 83
gengisdave Avatar answered Oct 02 '22 01:10

gengisdave


Either in:

/usr/local/opt/qt5

Or:

/usr/local/opt/qt
like image 25
Tom Avatar answered Oct 02 '22 01:10

Tom