[Fedora-packaging] Re: moc, moc-qt4?
rdieter at math.unl.edu
Thu Jun 26 15:50:14 UTC 2008
Enrico Scholz wrote:
> Chris Spencer <spencercw at googlemail.com> writes:
>> The configure script checks for the program 'moc' and fails if it
>> doesn't find it. I have installed the qt-devel package, but for some
>> reason it installs moc as moc-qt4, no symlink or anything. Can anyone
>> explain to me why this is, and possibly suggest a suitable workaround?
> | PKG_CHECK_MODULES(QT, Qt)
> | QT4_BINDIR=`$PKG_CONFIG Qt --variable bindir`
> | AC_CHECK_TOOLS(MOC, [moc],, [$QT4_BINDIR:$PATH])
> This gives most flexibility by using proper defaults while allowing
> users to override detected tool by setting $MOC environment/autoconf
Be warned, however, that the Qt.pc file as distributed in fedora, is not yet
upstreamed and is fedora-specific. Hope to rectify that soonish.
More information about the Fedora-packaging