Lars Gullik Bjønnes wrote:

> Georg Baum <[EMAIL PROTECTED]>
> writes:
> | I think so, but pkg-config does not give us moc and uic.
> 
> No, but does it have to?
> 
> We know that if qt-mt is installed, then moc and uic is there as well.
> They can only have a few valid names. (My guess is moc-qt3 or moc)

and moc3 on debian

> and when they exist they also must have the correct version.
> (and if we guess wrong you can always set the envir variable yourself
> MOC='xxx')

My demand is to guess the system installed qt correctly, and it looks like
this can be done with pkg-config. If somebody wants to use a qt installed
in some osbcure place he needs to set it manually.

> | Me too, but on suse moc3 and uic3 are not in the path. It seems that
> | this changes with qt4.
> 
> uic3 is something completely different.
> (at least on my qt4 setup, there it is a tool to convert qt3 version
> ui files to qt4 version)

I was wrong: the qt3 build uses /usr/lib/qt3/bin/moc
and /usr/lib/qt3/bin/uic, the qt4 build uses /ussr/bin/moc
and /usr/bin/uic.

> also easy enough to do a
> 
> QT3_PREFIX=`pgk-config --variable=prefix qt-mt`
> POSSIBLE_MOC=$(QT3_PREFIX)/bin/moc

That works.


Georg

Reply via email to