Boost logo

Boost-Build :

Subject: [Boost-build] boost-build moc action in tools/qt5.jam broken?
From: Steve Lorimer (steve.lorimer_at_[hidden])
Date: 2015-06-29 14:32:07

I am trying to get the Qt Calculator Form
<> example
compiling using boost-build

This is my Jamfile:

using qt5 : /sdk/Qt5.4.0/5.4/gcc_64 : : <link>shared ;

exe calculator_form
: [ glob *.cpp *.ui calculatorform.h ]

This results in the following moc command being issued:

/sdk/Qt5.4.0/5.4/gcc_64/bin/moc -f calculatorform.h -o

*This call will hang indefinitely*.

It seems the issue is *due to the -f flag*. If I edit the moc action in
qt5.jam to remove the -f, then it works

That is, I edit this:

actions moc
    $(.BINPREFIX[-1])/moc -f $(>) -o $(<) @"@($(<).rsp:E=-D$(DEFINES)$(.nl)

so it looks like this (note missing -f):

actions moc
    $(.BINPREFIX[-1])/moc $(>) -o $(<) @"@($(<).rsp:E=-D$(DEFINES)$(.nl)

Related issues:

Is this a bug in boost-build, or am I doing something incorrectly?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at