On Friday 13 July 2007, Ralf Habacker wrote: > Christian Ehrlicher schrieb: > > Jarosław Staniek schrieb: > >> Hello, > >> On windows (msvc) kde4automoc executes moc in new window for a > >> quarter of second or so (closes as soon as moc finishes). Have > >> anybody encountered the same for kdelibs updated yesterday? > > > > moc is a console app -> QProcess spawns a new moc process and the new > > window appears. Don't know how to tell QProcess to not open the console. > > Maybe the moc output should be redirected to the current console > > window (at least for 'make VERBOSE=1') > > Maybe QProcess::detached ?
Ah, now I understand - I thought it was kde4automoc that was doing wrong... cmake -E cmake_echo_color ... is started with QProcess::startDetached. The moc processes are started with QProcess::start. The problem with starting moc detached is that kde4automoc may not finish before the moc processes are done. This is how moc is executed: QProcess *mocProc = new QProcess; mocProc->setProcessChannelMode(QProcess::ForwardedChannels); mocProc->start(mocExe, args, QIODevice::NotOpen); -- ________________________________________________________ Matthias Kretz (Germany) <>< http://Vir.homelinux.org/ [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
pgpxI0KodI1sW.pgp
Description: PGP signature
_______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
