Opened 15 years ago

Closed 15 years ago

#5985 closed enhancement (wontfix)

Use QProcess in MythArchive to monitor process (main.cpp)?

Reported by: Jonathan Martens <jonathan@…> Owned by: paulh
Priority: minor Milestone: unknown
Component: mytharchive Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Would it be possible to use the QProcess class in MythArchive? to monitor and manage processes?

This would make it possible I think to get one step further with compiling MythArchive? on windows as it now errors out like this:

bash.exe"-3.1$ make cd mytharchive/ && u:/MSys/1.0/qt-win-opensource-src-4.4.3/bin/qmake.exe mytharc hive.pro -win32 QMAKE=U:/MSys/1.0/qt-win-opensource-src-4.4.3/bin/qmake -o Makef ile cd mytharchive/ && make -f Makefile make[1]: Entering directory `/u/mythtv/mythplugins/mytharchive' cd mytharchive/ && u:/MSys/1.0/qt-win-opensource-src-4.4.3/bin/qmake.exe mytharc hive.pro -win32 QMAKE=U:/MSys/1.0/qt-win-opensource-src-4.4.3/bin/qmake -o Makef ile cd mytharchive/ && make -f Makefile make[2]: Entering directory `/u/mythtv/mythplugins/mytharchive/mytharchive' g++ -c -march=k8 -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non -virtual-dtor -funit-at-a-time -DSTDC_CONSTANT_MACROS -g -frtti -fexceptions - mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DUSING_MINGW -D_GNU_SOURCE -DPR EFIX="U:/mythtv/build/" -DMMX -Di386 -DUSING_DIRECTX -D_FILE_OFFSET_BITS=64 -DQT _THREAD_SUPPORT -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB - DQT_GUI_LIB -DQT_CORE_LIB -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.3/in clude/QtCore' -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.3/include/QtCore ' -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.3/include/QtGui' -I'../../.. /../MSys/1.0/qt-win-opensource-src-4.4.3/include/QtGui' -I'../../../../MSys/1.0/ qt-win-opensource-src-4.4.3/include/QtOpenGL' -I'../../../../MSys/1.0/qt-win-ope nsource-src-4.4.3/include/QtOpenGL' -I'../../../../MSys/1.0/qt-win-opensource-sr c-4.4.3/include/QtXml' -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.3/inclu de/QtXml' -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.3/include/QtSql' -I' ../../../../MSys/1.0/qt-win-opensource-src-4.4.3/include/QtSql' -I'../../../../M Sys/1.0/qt-win-opensource-src-4.4.3/include' -I'../../../build/include' -I'../.. /../build/include' -I'../../../build/include/mythtv' -I'../../../build/include/m ythtv' -I'../../../build/include/mythtv/libmythtv' -I'u:/MSys/1.0/qt-win-opensou rce-src-4.4.3/include/ActiveQt' -I'.' -I'.' -I'../../../../MSys/1.0/qt-win-opens ource-src-4.4.3/mkspecs/win32-g++' -o main.o main.cpp main.cpp: In function `bool checkProcess(const QString&)': main.cpp:68: error: `kill' was not declared in this scope main.cpp:68: warning: unused variable 'kill' make[2]: * [main.o] Error 1 make[2]: Leaving directory `/u/mythtv/mythplugins/mytharchive/mytharchive' make[1]: * [sub-mytharchive-make_default] Error 2 make[1]: Leaving directory `/u/mythtv/mythplugins/mytharchive' make: * [sub-mytharchive-make_default] Error 2 bash.exe"-3.1$

Change History (2)

comment:1 Changed 15 years ago by Jonathan Martens <jonathan@…>

Here is the Trolltech documentation page on QProcess: http://doc.trolltech.com/4.4/qprocess.html

comment:2 Changed 15 years ago by paulh

Resolution: wontfix
Status: newclosed

That's not really possible because the script is started in the background and just left to run even if MythArchive? or the FE isn't running. I know a few people just run the script manually without using MythArchive? at all.

Isn't there a windows equivalent of kill()?

Note: See TracTickets for help on using tickets.