[Qt-interest] Bad moc path from qmake on Msys/Mingw

Andrew Bell andrew.bell.ia at gmail.com
Tue Dec 16 14:49:29 CET 2008


Hi,

When I run qmake -unix -makefile <projectfile> on msys, it generates
output that sometimes uses slashes and sometimes backslashes when
referring to the moc executable:

C:/Qt/4.4.3/bin/moc.exe:
    (cd $(QTDIR)/src/tools/moc && $(MAKE))

mocs/moc_IndicatorBarWidget.cpp: ../../../Common/Widgets/IndicatorBarWidget.h \
        ../../../../Qt/4.4.3/bin/moc.exe
    C:\Qt\4.4.3\bin/moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32
../../../Common/Widgets/IndicatorBarWidget.h -o
mocs/moc_IndicatorBarWidget.cpp

In the second rules, the shell eats the backslashes in the executable
path and the makefile fails.  I have looked around for the code that
generates these statements, but have yet to track it down.  Can
someone help me pinpoint it or provide some other suggestion for
fixing the problem?

Thanks,

-- 
Andrew Bell
andrew.bell.ia at gmail.com



More information about the Qt-interest-old mailing list