Hi Stephen, thank you for replying. Here's what I did. Kornel said maybe I didn't install the development tool, so I checked:
I checked the installation log of my Qt 5.0.2, I searched for "moc", "uic", and "rcc", and it seems I did have installed them: Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/* rcc*" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*rcc*" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*rcc*, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt, frameworkId: , frameworks: ,orginalBuildDir: ) Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/* uic*" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*uic*" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*uic*, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) I ran CMake again and it said uic, moc, and rcc not found. So I installed Macports, installed qt4-mac (I tried to install qt4-mac-devel, but it said "this port has been temporarily replaced by 'qt4-mac'; it will be updated to 5.0 beta or a release candidate hopefully soon." So I typed in "sudo port install qt4-mac" and it seemed to be installed. I ran QCreator and ran CMake and it still said moc, uic and rcc not found. Kornel suggests me to take a look at FindQt4.cmake but I didn't dare to insert anything because I'm worried about what if I changed something important the entire program would crash... Thank you! Ashley ------------------------------------ *Xueqing Shan* Vanderbilt University, '16 On Sun, Apr 28, 2013 at 11:11 AM, Stephan Witt <[email protected]> wrote: > Am 28.04.2013 um 17:53 schrieb Stephan Witt <[email protected]>: > > > Am 26.04.2013 um 19:21 schrieb Kornel Benko <[email protected]>: > > > >> Am Freitag, 26. April 2013 um 12:00:17, schrieb Ashley Shan < > [email protected]> > >>> > >>> I ran CMake again and it said uic, moc, and rcc not found. So I > installed > >>> Macports, installed qt4-mac (I tried to install qt4-mac-devel, but it > said > >>> "this port has been temporarily replaced by 'qt4-mac'; it will be > updated > >>> to 5.0 beta or a release candidate hopefully soon." So I typed in "sudo > >>> port install qt4-mac" and it seemed to be installed. I ran QCreator > and ran > >>> CMake and it still said moc, uic and rcc not found. I'm so confused... > >>> > >>> Ashley > >>> > >> > >> Me too. I fear, we have to wait for someone (Stephan Witt? < > [email protected]>) for more help. > >> > > > > Hi Ashley, > > > > sorry, I really don't got what you did. > > > > Can you please describe how you tried to get the thing going? > > I think Cmake tries to execute Qt's moc to detect the version. > I have it in /usr/bin: > $ ls -l /usr/bin/moc* > lrwxr-xr-x 1 root wheel 7 13 Jan 22:13 /usr/bin/moc -> moc-4.8 > -rwxrwxr-x 1 root wheel 1508072 26 Nov 02:03 /usr/bin/moc-4.8 > $ moc -version > Qt Meta Object Compiler version 63 (Qt 4.8.4) > $ > > I think this utility was installed there by the Qt-Package-Installer. > > What's the situation at your site? > > Stephan >
