Re: qmake incorrectly generates Makefile with instruction to build the moc tool
Originally Posted by paulocarvalho_br_2009
The generated Makefile seems to be correct. However it expects the moc tool to be in
$QTDIR/src/tools/moc (this path does not exist)
instead of
$QTDIR/bin/moc (where the moc binary is)
Thus the build fails because the generated Makefile instructs incorrectly.
Some things to check.
- Does the makefile literally say "$QTDIR/src/tools/moc" or is there an actual path,i.e "/someplace/else/src/tools/moc"?
- Where is qmake located?
- Are you setting QMAKESPEC?
- What's in 'qt.conf' for 'Prefix'?
Bookmarks