From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2003-09-19 04:00:02
> Pedro Ferreira wrote:
> > Hi all,
> > can someone please tell me how to use the moc compiler.
> > What should I add to the sources? Looking at qt.jam, line 51, I'd expect
> > add a .h file, but that won't work.
> That's really strange. When I go to examples-v2/qt and run "bjam", I get:
> gcc.compile.c++ bin/gcc/debug/threading-multi/main-target-t7/main.o
> gcc.compile.c++ bin/gcc/debug/threading-multi/main-target-t7/lcdrange.o
> qt.moc bin/gcc/debug/threading-multi/main-target-t7/moc_lcdrange.cpp
> gcc.link bin/gcc/debug/threading-multi/main-target-t7/t7
> As you see, the 'h' file is mocced and moc's output is compiled. Could you
> that example? It will allow us to differentiate to problem specific to
> installation and problem specific to your Jamfile.
> As a quick check: are you use you have <library>qt in requirements? That
> enable the moc generator.
That's the rub...
Since we were building a static lib, I didn't want to link with qt, so I
removed the <library>qt and added a <include>path-to-qt.
That, of course, didn't inherit <allow>qt...
That reminds me of another issue that I have run into a few times before but
I'll post that separately.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk