Boost logo

Boost-Build :

Subject: Re: [Boost-build] boost-build moc action in tools/qt5.jam broken?
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-06-29 14:35:49


On 6/29/2015 9:32 PM, Steve Lorimer wrote:

> This results in the following moc command being issued:
>
> /sdk/Qt5.4.0/5.4/gcc_64/bin/moc -f calculatorform.h -o
> bin/gcc-4.9.2/debug/threading-multi/moc_calculatorform.cpp
> @"bin/gcc-4.9.2/debug/threading-multi/moc_calculatorform.cpp.rsp"
>
>
> *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) -I$(INCLUDES:T)$(.nl))"
> }
>
>
> so it looks like this (note missing -f):
>
> actions moc
> {
> $(.BINPREFIX[-1])/moc $(>) -o $(<) @"@($(<).rsp:E=-D$(DEFINES)$(.nl) -I$(INCLUDES:T)$(.nl))"
> }

Hi Steve,

could it be that you have old version of Boost.Build. Looking at the current version, I don't see -f option:

        https://github.com/boostorg/build/blob/develop/src/tools/qt5.jam#L713

Thanks,
Volodya


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