October 26, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
61 posts

Create a Qt project composed by other project

 

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.

8 replies

October 26, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1607 posts

Maybe SUBDIRS project will help you?

October 26, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
61 posts

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

October 26, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1607 posts

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.

October 27, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
61 posts

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.

October 27, 2010

Volker Volker
Ant Farmer
5331 posts

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?

October 27, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
61 posts

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.

October 27, 2010

kalle kalle
Lab Rat
42 posts

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

October 30, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
61 posts

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.

 
  ‹‹ Does Qt 4.6 or 4.7 support postgresSQL 9.0 ? please help      Include files ››

You must log in to post a reply. Not a member yet? Register here!