Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problems with QtService in Qt4
Forum Updated to NodeBB v4.3 + New Features

Problems with QtService in Qt4

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 2.8k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    marlon.cabrera
    wrote on last edited by
    #1

    Im new in the qt world and im working in a project that still use this version. My work right now is take the project compiled in VS2008 and runing in Unix Systems in Qt 4.8.2. My first attemp is with kdevelop, GCC, cmake and OpenSuse as operating systems. So far everything is going fine except for this error in the linking phase:
    Undefined reference to QtServiceController.
    In the VS2008 projects i put as additionals dependencies the file QtServiced.lib to work with this Class but in cmake i dont know how do that or what file or module i need to add to make this work fine. I hope that you can help me with this, im sure that the solution will be very easy but i just can´t find.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you referring to "that":http://doc.qt.digia.com/solutions/4/qtservice/qtservice.html class ? If so you first have to compile the corresponding module by hand before adding it to your project

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marlon.cabrera
        wrote on last edited by
        #3

        But how i do that, what do i need? There is something like a step by step to do this?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Clone "this repository":https://qt.gitorious.org/qt-solutions/qt-solutions/ the instruction for the rest can be found in it

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            marlon.cabrera
            wrote on last edited by
            #5

            Hi again, and congratulations for the new year, i already have done all the instructions that i find in the doc of the repository, i already have the file libQtSolutions_Service-head.so.1.0.0 and 3 symbolic links for that file, I just I don´t know what is the next thing to do or how i am going to include this in my Cmakelists.txt file for a correctly linking. Thanks for all the help i hope that with your help i finish soon this task

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You have to add the include path as well as lib path to your CMakelists.txt and add the resulting library to the list of libraries you are linking your application to.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                marlon.cabrera
                wrote on last edited by
                #7

                The problem is that all i have is a .so file, and i think that what i need to include in my CMakeLists.txt is a .a file. That way i could make a static linking independent of OS. And also i don´t know if the way to include that i need to use is:
                1- include(<path to my libQtSolutions_Service-head.so.1.0.0 >)
                or
                2-target_link_libraries(QtSolutions_Service)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Static linking doesn't mean you're OS independent it means that you should be able to run your application on any computer using a similar OS e.g. Win7/Win8/WinVista. You can't run a Linux build application on Windows or OS X.

                  The include path is to find QtSolutions headers not libraries, that second one is a link path

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    marlon.cabrera
                    wrote on last edited by
                    #9

                    Yes, i don´t express very well, i mean in similar OS without worry about if is installed the QtSolutions Library, anyway, what i need to do next? Because i still have the same problem.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Then the first thing you have to do is build Qt and QtSolutions statically

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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