[Qt-interest] Keeping up-to-date with git
Stephen Chu
stephen at ju-ju.com
Tue May 25 04:23:51 CEST 2010
In article <201005250828.49629.rohan.mcgovern at nokia.com>,
Rohan McGovern <rohan.mcgovern at nokia.com> wrote:
> On Tuesday 25 May 2010, ext Stephen Chu wrote:
> > I finally managed to grab Qt from git and build it on my Mac. Now
> > I am not quite sure what I should do to keep my copy up to date.
> > I am not making any changes to the source. Just want to build
> > from the latest code.
> >
> > I know I need to do a 'git fetch' to get the new commits. Then
> > should I just do a 'make' then a 'make install' or should I run
> > 'configure' again before that?
> >
>
> Note that a `git fetch' isn't sufficient, that won't update the
> working tree. `git pull' is the most commonly used command to keep
> a git tree up to date with some upstream.
>
>
> As for building: if you need the build to work every time then you
> need to clean out the entire build tree and start from scratch
> every time (e.g. with the `git clean' command).
>
> If you're willing to trade correctness for speed you can do:
>
> make && make install
>
> if that fails:
> ./config.status && make && make install
>
> if that fails:
> git clean -dqffx && ./configure <args> && make && make install
Thanks. That's very helpful hints.
>
> if that fails:
> report bug
Ha-ha. Thanks.
More information about the Qt-interest-old
mailing list