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. Build and Run two Qt project from a single . pro file

Build and Run two Qt project from a single . pro file

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 1.3k 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.
  • D Offline
    D Offline
    danielgeorgy
    wrote on last edited by
    #1

    Hi,
    I have developed two separate applications a client and a server, which are build separately as they were separate projects, Now i want to build and run them together, so i created a folder and copied the two projects in the folder and created a .pro file which contains the following lines

    TEMPLATE = subdirs

    SUBDIRS += server client

    CONFIG += ordered

    when i build and run, two projects are build successfully, but only one project is run,
    I want both application to run together.

    Please suggest a solution.

    Thanks,
    Georgy Daniel

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What about adding this in client.pro:
      @
      QMAKE_POST_LINK=./../server/your/build/dir/server
      @

      (Z(:^

      1 Reply Last reply
      0
      • D Offline
        D Offline
        danielgeorgy
        wrote on last edited by
        #3

        It is not working as expected, this will invoke the application mentioned in the 'QMAKE_POST_LINK' only for a clean build and run, and the second application is run only when the first app is closed manually.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Then I think you need a separate script for that, or start the applications manually.

          (Z(:^

          1 Reply Last reply
          0
          • D Offline
            D Offline
            danielgeorgy
            wrote on last edited by
            #5

            Thanks, but I saw a project (pretty huge project) which does invoke two applications,
            and in the application output log window of QT creator, it seems like only one application is invoked, I thought the first application is invoking the other, but i could not find any reference to second app in the first app.

            any ways thanks for you help.

            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