[Qt-interest] cyclic dependency - qmake configuration

Scott Aron Bloom Scott.Bloom at sabgroup.com
Thu Feb 5 06:28:09 CET 2009


Forget QMake for a second... How would you do it in a normal make env?

 

The solutions I have seen (and implemented) are

1)       A two pass make system, one that is similar to make depends..
Where all files that are generated and are needed outside the library
are generated.. Ie, .h files from a yacc or lex...  So you do two steps
make depends; make

2)       Create a 3 library, that creates all dependencies, and is built
first... 

 

With qmake, you have no choice ( to my knowledge) but to implement it
via the second method... 

 

So you will need a SiCore, a SiUtil and SiMath, where SiCore contains
the SiUtil files SiMath is dependent on + the SiMath file sSiUtil is
dependent on...

 

Scott

 

________________________________

From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of ami guru
Sent: 2009-02-04 21:01
To: qt-interest at trolltech.com
Subject: [Qt-interest] cyclic dependency - qmake configuration

 

Hello Forum,


I have compilation issue where the contents of the folder depend on each
while compiling 

On the upper hierarchy i have pro file i have removed the following
option:

CONFIG += ordered

But that is not solving the issue.

I have folders SiUtil and SiMath and a pro file that says to get into
each of the directory


The contents of SiUtil depends on SiMath while compiling and the same
does SiMath.

In  the both .pro file within the respective directories i have edited
the

INCLUDEPATH and DEPENDPATH that specifies the path of dependencies


But still i am having compilation error saying that "No such file or
directory"

Any hint to resolve that cyclic dependencies in the .pro file?

Regards
Sajjad




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090204/a870748a/attachment.html 


More information about the Qt-interest-old mailing list