1 | initial version |
Hi everyone!
I was having exactly the same issue reported by mjepson and tvdev. It seems there's a small configuration problem with Qt 4.7.4 (my QtCreator's about window says it's 4.7.4, but the version I installed was 4.8.1, though!) and gcc on the new Mac OS X 10.8 Mountain Lion. I've also installed OpenCV 2.4.2 using MacPorts.
So, all you have to do is:
(1) find the right conf file for g++ on mac in your QtSDK folder. I mean, remember there are multiple Qt versions for the multiple targets (desktop, simulator, harmattan are some) under your QtSDK folder. You should find change the file located under "Desktop" in QtSDK folder. So, in my case, here's the file path:
[YourQtSDKFolder]/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-macx.conf
(2) change the following lines in this file:
QMAKE_CFLAGS_X86_64 += -Xarch_x86_64 -mmacosx-version-min=10.5
QMAKE_CFLAGS_PPC_64 += -Xarch_ppc64 -mmacosx-version-min=10.5
to
QMAKE_CFLAGS_X86_64 += -Xarch_x86_64 -mmacosx-version-min=10.7
QMAKE_CFLAGS_PPC_64 += -Xarch_ppc64 -mmacosx-version-min=10.7
And voilĂ ! This works flawlessly for me.