Re: Unexpected behaviour of kde4automoc
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 ? Ralf ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: Unexpected behaviour of kde4automoc
On Friday 13 July 2007, Jarosław Staniek wrote: 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? Do you need to add WIN32 to add_executable in kdelibs/cmake/automoc/CMakeLists.txt? -- Matthias Kretz (Germany) http://Vir.homelinux.org/ [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] pgpBZCgHGxwOD.pgp Description: PGP signature ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Unexpected behaviour of kde4automoc
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? -- regards / pozdrawiam, Jaroslaw Staniek Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on Kexi KOffice: http://www.kexi.pl/en, http://www.koffice.org KDE3 KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: Unexpected behaviour of kde4automoc
Matthias Kretz said the following, On 2007-07-13 10:25: On Friday 13 July 2007, Jarosław Staniek wrote: 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? Do you need to add WIN32 to add_executable in kdelibs/cmake/automoc/CMakeLists.txt? This did not help. -- regards / pozdrawiam, Jaroslaw Staniek Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on Kexi KOffice: http://www.kexi.pl/en, http://www.koffice.org KDE3 KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: Unexpected behaviour of kde4automoc
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 Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: Unexpected behaviour of kde4automoc
Matthias Kretz schrieb: It must be the startDetached that is opening the new console. Please try the attached patch. looks fine Christian signature.asc Description: OpenPGP digital signature ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem