[Qt-creator] build settings for cross platform? multiple svn checkouts on each development computer
Danny Price
deepblue842 at googlemail.com
Mon Apr 19 10:16:02 CEST 2010
The .pro file is all you need. Compiler settings, include paths, build
steps, versioning and more can all be specified here. You also MUST use the
pro file to specify library link and project dependencies. It's not possible
to do this via the Project screen (the dependency settings merely sets the
build order - an application dependant on a library in the same session will
NOT be linked to it).
I actually prefer having these settings inside the readable .pro text file.
It's better than the MSVC solution that requires hunting through dozens of
tiny model dialogs.
Up until now I've found the pro.user file to be totally expendable. In fact
it has occasionally broken my projects (Creator not being able to find the
executable to run for example, or problems building).
However, I've noticed that the latest snapshots turn on the shadow build
feature by default. This is a problem because it overrides the build paths
specified in the .pro file. And if I turn off the feature it will be turned
on again the next time the .pro.user is generated (ie. when someone checks
out my code). I hope Nokia revert this to the previous behavior (turn off
shadow builds by default).
On Mon, Apr 19, 2010 at 4:18 AM, Coda Highland <coda at bobandgeorge.com>wrote:
> The makefile is generated directly from the .pro file. This is where
> everything needs to go, especially if you want your project to work if
> you're building it at the command line instead of from within Creator.
>
> The .pro.user file is really just intended for short-term,
> system-specific, non-general details that aren't intended to be shared
> with other users of the source code.
>
> The only thing that's "broken" is that it's not clear from the way
> Creator's UI is laid out that this is the case, and it has to be
> explained like this.
>
> Basically, what you need to keep in mind is that Creator is first and
> foremost a tool for writing code and creating software, not for
> managing projects.
>
> /s/ Adam
>
> On Sun, Apr 18, 2010 at 9:35 PM, nobodyhere <pem.accounts.spam at gmail.com>
> wrote:
> > This makes Qt Creator sound broken? I mean, what's the point of having
> it generate your make files for you (in the .pro.user file), if you have to
> then rewrite them manually anyway (in the .pro file)?
> >
> > regards
> >
> > ----- Original Message -----
> > From: "Coda Highland" <coda at bobandgeorge.com>
> > To: qt-creator at trolltech.com
> > Sent: Sunday, April 18, 2010 8:45:29 PM GMT -06:00 US/Canada Central
> > Subject: Re: [Qt-creator] build settings for cross platform? multiple svn
> checkouts on each development computer
> >
> > No, we mean the .pro file. qmake's file format supports a lot of logic
> > there, including platform detection (scopes like win32, unix, and
> > macx). Never edit the .pro.user file and avoid using Creator's
> > built-in tools for changing the build settings -- do all the work
> > directly in the .pro file except for things that are SPECIFICALLY
> > relevant to only the checkout you're working on.
> >
> > /s/ Adam
> >
> > On Sun, Apr 18, 2010 at 7:32 PM, nobodyhere <pem.accounts.spam at gmail.com>
> wrote:
> >> You mean edit and (svn commit) the project's ".pro.user" file? (Not the
> project's ".pro" file?)
> >>
> >> And the .pro file has hardcoded / absolute paths in it, so how does this
> let me do a simple (svn checkout and build that just works, with the exact
> same .pro.user file) for (multiple computers) and (multiple checkouts on the
> same computer)?
> >>
> >> Is it required to manually edit the .pro.user XML file's text?
> >>
> >> thank you for any leads
> >>
> >> ----- Original Message -----
> >> From: "Danny Price" <deepblue842 at googlemail.com>
> >> To: qt-creator at trolltech.com
> >> Sent: Sunday, April 18, 2010 9:21:30 AM GMT -06:00 US/Canada Central
> >> Subject: Re: [Qt-creator] build settings for cross platform? multiple
> svn checkouts on each development computer
> >>
> >> Set you build settings, project directories and platform-specific
> configs in the .pro file.
> >>
> >> On 18 Apr 2010, at 09:26, nobodyhere wrote:
> >>
> >>> Is there information on how to (svn commit) cross platform (Windows,
> Mac, Linux) build settings for a Qt Creator project, that doesn't have any
> absolute paths?
> >>>
> >>> I created a new project on Windows, then (svn commit) it. Then I did
> (svn checkout) of the project on Mac OS. Unfortunately, I had to create a
> new set of build settings to get it to build / compile? But it seems to be
> storing this build settings stuff in the [project].pro.user file, with
> absolute paths?
> >>>
> >>> How can I fix it so that I can simplify for anyone to do multiple fresh
> (svn checkout)'s of the project on each machine (regardless of OS), and have
> the build / compile just work (for Windows, Mac, Linux builds) (with
> multiple checkouts per machine, using relative paths)?
> >>>
> >>> Why are there absolute paths in this [project].user.pro file (for
> example, the buildDirectory has an absolute path)?
> >>>
> >>> thank you for any leads
> >>> _______________________________________________
> >>> Qt-creator mailing list
> >>> Qt-creator at trolltech.com
> >>> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >>
> >>
> >> _______________________________________________
> >> Qt-creator mailing list
> >> Qt-creator at trolltech.com
> >> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >> _______________________________________________
> >> Qt-creator mailing list
> >> Qt-creator at trolltech.com
> >> http://lists.trolltech.com/mailman/listinfo/qt-creator
> >>
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100419/9727c04e/attachment.html
More information about the Qt-creator-old
mailing list