PDA

View Full Version : cannot find mkspecs - osx



cablet
16th May 2011, 19:30
Hello,
I am trying to compile the simple hello project but keep getting an error when trying to compile. Anyone have any ideas to get around this?

:ls
hello.cpp

:qmake -project
:ls
hello.cpp
hello.pro

:qmake hello.pro

Could not find mkspecs for your QMAKESPEC(macx-g++) after trying:
/Users/cable/Programming/qt/Desktop/Qt/473/gcc//mkspecs
Error processing project file: hello.pro


Notice that in the mkspecs path it is using there are two slashes before mkspecs. This does not look right.

I have my ENV set to QMAKESPEC=macx-g++

This is driving me nuts. Any ideas why there are two slashes in the path or why this is happening?

Thanks.

Lykurg
16th May 2011, 21:47
What happens if you call the spec explicit?
qmake -spec macx-g++ hello.pro and what's the "ls" afterwards?

cablet
17th May 2011, 01:14
Entering 'qmake -spec macx-g++ hello.pro' I get the same error.
The Makefile is not created so:

:ls
hello.cpp
hello.pro

I am making progress in learning how qmake works. I learned that I can see the mkspecs and other variables by using 'qmake -query'. I really just need to figure out how to remove that extra slash but I can't find where this data is stored. It's got to be in a file somewhere.

Added after 1 44 minutes:

I reinstalled the entire qt package and this fixed the problem. I ran a different installer the first time and it installed in my home directory. The second install installed in the Developer directory. It now works.