Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create window service/daemon(in Linux) using Qt

How to create window service/daemon(in Linux) using Qt

Scheduled Pinned Locked Moved General and Desktop
6 Posts 5 Posters 15.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aashish.lg
    wrote on 31 Jan 2012, 11:16 last edited by
    #1

    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

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on 31 Jan 2012, 11:30 last edited by
      #2

      "QtService":http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtservice

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aashish.lg
        wrote on 31 Jan 2012, 16:03 last edited by
        #3

        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

        1 Reply Last reply
        0
        • A Offline
          A Offline
          azarubkin
          wrote on 30 Jun 2012, 13:05 last edited by
          #4

          Have you installed the service first? (you should run the exe with '-i' key)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            simonCpp
            wrote on 17 Jan 2013, 09:48 last edited by
            #5

            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

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Cholineus
              wrote on 18 Jan 2013, 00:45 last edited by
              #6

              Hey, just open cmd as admin and execute exe with -i at frist, at second with -s.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved