[PATCH] Don't use "qmake-qt4" as qmake

Linus Torvalds torvalds at linux-foundation.org
Tue May 14 09:04:51 PDT 2013


On Tue, May 14, 2013 at 9:01 AM, Thiago Macieira <thiago at macieira.org> wrote:
>
> We need qmake to get QTBINDIR:
>
>         QTBINDIR = $(shell $(QMAKE) -query QT_INSTALL_BINS)

Oh, I think you're doing that wrong.

I think you should use pkg-config. Something like this:

  MOC=$(pkg-config --variable=moc_location QtCore)
  QTBINDIR=$(dirname "$MOC")

(ok, so that's shell syntax, not Makefile syntax, but you get the idea).

No?

             Linus


More information about the subsurface mailing list