PDA

View Full Version : qmake Problem on Mac



Furkan
20th February 2011, 18:48
Hi.
I just installed the latest version of the Nokia Qt SDK from forum.nokia.com
But there is no qmake in Qt in Path
I searched for qmake but couldn't find anything.
Please help me!
Thanks in advance.

snake
3rd March 2011, 14:17
have you tried:
/usr/bin/qmake
or
/usr/bin/qmake-4.7

Furkan
3rd March 2011, 18:22
I did. There is nothing there.

xb
10th January 2012, 16:21
Hi,
I have the same problem. No qmake in usr/bin/ and commands like qmake -spec macx-g++ always give me -bash: qmake: command not found. Should I install qmake from somewhere?? I'm using mac os Lion and latest Qt.
Thanks in advance.

Lykurg
10th January 2012, 17:03
Where do you have installed the SDK? In that folder you have Desktop/474/blabla/bin/qmake.

xb
11th January 2012, 12:35
SDK is located in the folder /Developer/SDKs and commands like make etc are located in /Developer/usr/bin, but no qmake there.
Edit: Indeed, qmake is in /Users/name/QtSDK/Desktop/Qt/474/gcc/bin/ but when I try to build and run a project in Qt creator, I get: "Error while building project (target: Desktop) When executing build step 'qmake'. And it gives me -qmake not found- when I try from the terminal.

marcopavan
8th June 2012, 09:44
I had the same problem on Mac OSX Lion,
and I solved it by adding 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.
The .bash_profile file is located in your home folder and the path you have to add is the path for qmake.

Naahmi
12th June 2012, 10:40
I had the same problem on Mac OSX Lion,
and I solved it by adding 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.
The .bash_profile file is located in your home folder and the path you have to add is the path for qmake.




Or use a symnlinks "ls -n /usr/bin /Users/marco/QtSDK/Desktop/Qt/4.8.1/gcc/bin" =)