[Qt-creator] Qt Creator and generic projects
Bryce Schober
bryce.schober at gmail.com
Fri Mar 12 19:24:46 CET 2010
Actually, I've been debugging it myself, and not knowing the code better, it
seems pretty deeply rooted. The implementation of
Qt4BuildConfiguration::buildDirectory() does the same. The implementation of
CMakeBuildConfiguration::buildDirectory() looks different, but is
effectively the same, since cmakeTarget()->cmakeProject()->sourceDirectory()
also returns an abs-path.
I think a more ideal and generic solution would be to allow for relative
paths anchored on the project file. That could actually help satisfy many of
the complaints in this thread, I would think. This would probably require a
distinction between the user-entered build dir, with possible relative
paths, and the build dir used by project-building functionality, which
apparently is most happy with abs-paths for everything. If a new interface
(maybe userBuildDirectory() was used for re-initing the project fields
(GenericBuildSettingsWidget::init), but everything else used the existing
buildDirectory() interface, that seems like it would work fine. How this
would map to the other projectmanager implementations is beyond me.
2010/3/12 Thorbjørn Lindeijer <thorbjorn.lindeijer at nokia.com>
> On 03/12/2010 05:19 PM, ext Bryce Schober wrote:
> > OK, apparently none of you guys actually understood my initial question.
> > I'm trying to construct an external Makefile project. I'd be perfectly
> > happy with hacking around in a .pro file if that was actually an option,
> > but it isn't. Am I just stuck? All I really need is for Qt Creator to
> > explicitly support an empty builddir spec in the .creator.user format,
> > and make the abs-pathing internal and temporary (not saved back to the
> > file). That single fix will make me a very happy user.
>
> Right, thanks for getting back to your original issue. I'd have
> completely missed it with all the other stuff going on in this thread. :)
>
> The issue you're having with the build directory does not seem unfixable
> (it looks like a bug that Qt Creator changes the path to absolute and
> saves that back). I'll look into it on Monday.
>
> Regards,
> Bjørn
>
> --
> Thorbjørn Lindeijer
> Software Engineer
> Nokia, Qt Development Frameworks
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
--
Bryce Schober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100312/5c778037/attachment.html
More information about the Qt-creator-old
mailing list