Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Create a Qt project composed by other project

    Installation and Deployment
    4
    9
    4833
    Loading More Posts
    • 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
      qwertyuiopearendil last edited by

      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 Reply Quote 0
      • D
        DenisKormalev last edited by

        Maybe SUBDIRS project will help you?

        1 Reply Last reply Reply Quote 0
        • Q
          qwertyuiopearendil last edited by

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

          1 Reply Last reply Reply Quote 0
          • D
            DenisKormalev last edited by

            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 Reply Quote 0
            • Q
              qwertyuiopearendil last edited by

              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 Reply Quote 0
              • G
                goetz last edited by

                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 Reply Quote 0
                • Q
                  qwertyuiopearendil last edited by

                  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 Reply Quote 0
                  • K
                    kalle last edited by

                    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 Reply Quote 0
                    • Q
                      qwertyuiopearendil last edited by

                      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 Reply Quote 0
                      • First post
                        Last post