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. Create a Qt project composed by other project

Create a Qt project composed by other project

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 4 Posters 5.4k 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.
  • Q Offline
    Q Offline
    qwertyuiopearendil
    wrote on last edited by
    #1

    Hi all,
    for application that i'm developping I should create a staticlib, I'll use it after in my application, composed by some little Qt project.
    My question is: How can I create a project that it's composed by other project?
    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Maybe SUBDIRS project will help you?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qwertyuiopearendil
        wrote on last edited by
        #3

        But i need to have only one .a file like output.
        SUBDIR can do it, if yes, how?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Then I didn't understand your question clearly. As I understood you have library project (that generates .a after building) and another project that uses this library.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qwertyuiopearendil
            wrote on last edited by
            #5

            What I'd like to do is:
            Have a Project (static lib) named "ABC", this project don't have file .h or cpp inside but have other 3 project: "A" "B" "C".
            I hope to have done clear.
            Thanks.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              So your static lib project collects all the object files of the three projects A, B and C and combines them to one static lib?

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • Q Offline
                Q Offline
                qwertyuiopearendil
                wrote on last edited by
                #7

                Yes, this because i can have also the need to have only one lib, for example "libA.a", even to have all "libABC.a". I'd like to have the possibility to compile or a different solution "A" "B" etc... or a single solution "ABC".
                Thanks.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kalle
                  wrote on last edited by
                  #8

                  You'll need different configuration switches in QMake then, like this:

                  !altogether:SUBDIRS=A B C
                  altogether:SUBDIRS=A

                  and in the altogether case have A.pro also compile and link the files from B and C

                  then run qmake with CONFIG+=altogether or CONFIG-=altogether

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qwertyuiopearendil
                    wrote on last edited by
                    #9

                    I'm not able to understand, could you please send me an example or post a link with it.
                    My email address is cervelli.leonardo@gmail.com
                    Thanks and sorry.

                    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