How to create window service/daemon(in Linux) using Qt
-
wrote on 31 Jan 2012, 11:16 last edited by
Hi,
I have written an executable using Qt that loads a dll and calls the function in dll at some conditions.
How can I convert this exe into Windows service(daemon in Linux).Any help will be greatly appreciated!!!
Regards
Ashish -
wrote on 31 Jan 2012, 11:30 last edited by
-
wrote on 31 Jan 2012, 16:03 last edited by
Hi,
I tried to download the code and compile the projects, but when trying to execute the exe of example(Interactive), it failed to execute , prints the error as "The service Qt Interactive service could not start".
I placed the generated binary QtSolutions_Service-2.6.dll in the same folder where exe resides also.
Tried to put in System32, and bin directory where all other qt libraries resides , neverthless no luck!!!Please advice what is the correct way to use that
Regards
Ashish -
wrote on 30 Jun 2012, 13:05 last edited by
Have you installed the service first? (you should run the exe with '-i' key)
-
wrote on 17 Jan 2013, 09:48 last edited by
Hey, I got the same issue, I installed the service, the installation was ok.
But when I try to start the service I got the same error message :
“The service Qt Interactive service could not start”.I read at "this post":http://lists.trolltech.com/qt-interest/2004-10/thread00104-0.html
bq. The problem, of course, was that qt-mt333.dll was not installed in an area
where the service could find it. As soon as I copied it into c:
\windows\system32, I was able to start up the service as expected. This is
because the program required the qt.dll and when running as a service, was
unable to find it. bq.But I didn't found the qt-mt333.dll file.
I'm using Qt 4.7.3 on win xp sp3
-
wrote on 18 Jan 2013, 00:45 last edited by
Hey, just open cmd as admin and execute exe with -i at frist, at second with -s.