Op 28-4-2013 22:02, Ashley Shan schreef:
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...
Aren't you now mixing up Qt5 and Qt4 ? That's not a good idea.
Moreover, I don't know how much LyX is tested on Mac with Qt5 ..
Vincent