On Wed, Aug 26, 2009 at 1:16 PM, Robert Caldecott <
[email protected]> wrote:

> You can do all of this using a 'subdirs' TEMPLATE in your .pro file -
> dependencies can be applied by controlling the build order with CONFIG
> += ordered.


That's just the build order, not the same thing no? If the 1st project has
changed, it won't necessarily be rebuilt when a later project is built.Am I
wrong?

Also Creator treats 'subdirs' as aggegate projects - you cannot build
individual projects, or set their project attributes. It applies a single
configuration to the whole lot etc.

>
> A search in this list for 'subdirs' would be worthwhile.  Also see the
> following:
>
> http://doc.trolltech.com/4.2/qmake-variable-reference.html
>
> http://stackoverflow.com/questions/1167573/qmake-subdirs-template-executing-a-target
>
> http://stackoverflow.com/questions/781494/how-do-a-specify-a-library-file-dependency-for-qmake-in-qt
>
> I agree with you about sessions - they aren't useful because they are
> user specific and not VCS friendly.  But the .pro format is actually
> very powerful and hand-crafting these files isn't hard.


Agreed and that's exactly what I've done. I'm very familiar with the format
now! But Creator doesn't give you ANY help in this task. You can't even
group source files into a .pri without doing it yourself. Now that I know
how to do it, it's not too hard. But it will limit uptake of this IDE. The
lack of logical grouping options is the first thing people notice.

Not only are the user files useless for source control, they often corrupt
my build settings, especially when taking projects in and out of sessions
and subdirs. QtCreator looses track of the executable and can't run it for
example - deleting the use file and re-importing the project fixes it. In
any case they need some reworking.


However, I would dearly love to see full support for the subdirs
> TEMPLATE added to Qt Creator as it would go a long way to addressing
> the 'solution' question.


Yes and using subdirs and .file variables, you can simulate 'logical'
grouping without having to reflect grouping on disk. However a lot of it is
undocumented.


> 2009/8/26 Danny Price <[email protected]>:
> > If I understand correctly, the only way to do this with Creator is via
> the
> > Sessions model - load your lib project and the client project than
> depends
> > on into a single session and then add the dependencies in the Project
> mode.
> > Creator *should* then build the lib if required.
> >
> > However I've come to realize that the whole 'sessions' thing is flawed,
> not
> > least because it cannot be used with source control and depends on the
> > .pro.user files which have caused me a lot of problems and setting
> > corruptions.
> >
> > Creator needs to have a solution system like MSVC. I've had similar
> problems
> > in XCode which is rediculously convoluted when it comes to setting up
> > dependencies, especially for target-specific dependencies (you have you
> wrap
> > the other projects with XCode projects and then import them as references
> > which only works if you have the source code!).
> >
> >
> > On Wed, Aug 26, 2009 at 11:44 AM, Vladimir <[email protected]> wrote:
> >>
> >> Hello everyone!
> >>
> >> I'm trying to use QtCreator for my project because it's fast and
> >> promising. I have .pro file for main project and I have a few .pro files
> >> for my libraries. I would like the ability to build main project and
> >> linked libraries should be building automatically by QtCreator.
> >> Is there such possibility? Currently I don't see any way to open
> >> propetries of main project and <<link>> lib projects. So I have to
> >> manually rebuild library projects.
> >> Is there some workaround or something?
> >> If not, please add possibility to link projects and automatically
> >> rebuild them is sources changed.
> >> My current IDE Eclipse can do this, and I think QtCreator also should
> >> can. That would be nice for me and other developers also :)
> >>
> >> -- Vladimir
> >> _______________________________________________
> >> Qt-creator mailing list
> >> [email protected]
> >> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
> >
> > _______________________________________________
> > Qt-creator mailing list
> > [email protected]
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
> >
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to