# [ANNOUNCE] qgit2.1rc1_win.exe

4 messages from 2007-12-24 to 2007-12-26. Participants: Marco Costalba, Peter Klavins.
Thread: https://gitlist.dev/t/11398

## Marco Costalba, 2007-12-24 09:13

Subject: [ANNOUNCE] qgit2.1rc1_win.exe
Message-ID: <e5bfff550712240113y4acdaa11y3483705172a5980e@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550712240113y4acdaa11y3483705172a5980e%40mail.gmail.com

```
Here

http://digilander.libero.it/mcostalba/qgit2.1rc1_win.exe

You can find an auto-extract zip file with a version of qgit built for
Windows (Vista).

Requires msysgit (http://code.google.com/p/msysgit/)

Is  not a real installation, no registry or other Windows resources
touched, just decompress in a directory, read the README and have fun.

Marco

```

## Peter Klavins, 2007-12-26 21:22

Subject: Re: [ANNOUNCE] qgit2.1rc1_win.exe
Message-ID: <fkugn8$d2s$1@ger.gmane.org>
URL: https://gitlist.dev/e/fkugn8%24d2s%241%40ger.gmane.org
In-Reply-To: <e5bfff550712240113y4acdaa11y3483705172a5980e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

```

> You can find an auto-extract zip file with a version of qgit built for
> Windows (Vista).

I found it a bit obscure as to how to rebuild qgit from scratch on Vista, so 
just for the record:

# Set up VS2008
1. Install Visual Studio 2008

# Set up Qt4
2. Download qt-win-opensource-src-4.3.3.zip from 
http://trolltech.com/developer/downloads/qt/windows and unzip into directory 
(e.g.,) C:\qt-win-opensource-src-4.3.3
3. cd C:\qt-win-opensource-src-4.3.3
4. configure                 (takes significant time, around 10 minutes from 
memory)
5. nmake                     (takes over an hour on a Core 2 Duo 2 GHz, 
consumes 2 GByte of disk)

# Install git and use it to get qgit4 source
6. Download Git-1.5.4-rc1-preview20071221-corrected.exe from 
http://code.google.com/p/msysgit/downloads/ and install (default directory 
C:\Program Files\Git is fine)
7. Open Git Bash from Start menu, set up Src directory (e.g., mkdir Src, cd 
Src)
8. git clone git://git.kernel.org/pub/scm/qgit/qgit4.git        (to get qgit 
sources into Src/qgit4)
9. Exit Git Bash shell

# Build and run qgit
10. Open VS2008 command prompt, ensuring that VS tools are on the PATH by 
test invoking 'nmake'
11. Add qmake to path with PATH=C:\qt-win-opensource-src-4.3.3\bin;%PATH%
12. Add git to path with PATH=C:\Program Files\Git\bin;%PATH%
13. Navigate to qgit4 directory (e.g., cd C:\Users\<you>\Src\qgit4)
14. qmake              (to preprocess with Qt4)
15. nmake              (to build debug version)
16. bin\qgit             (to run qgit to browse qgit4's own repository!)

------------------------------------------------------------------------
 Peter Klavins 

```

## Marco Costalba, 2007-12-26 23:23

Subject: Re: [ANNOUNCE] qgit2.1rc1_win.exe
Message-ID: <e5bfff550712261523g7aab6e76nd37257e7b21d1653@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550712261523g7aab6e76nd37257e7b21d1653%40mail.gmail.com
In-Reply-To: <fkugn8$d2s$1@ger.gmane.org>

```

On Dec 26, 2007 10:22 PM, Peter Klavins <klavins-ooduxAEi7gXtt0EhB6fy4g@public.gmane.org> wrote:
>
> 4. configure                 (takes significant time, around 10 minutes from
> memory)

configure -fast -no-qt3support -static -release -no-qmake

Takes much less (about one minute)

> 5. nmake                     (takes over an hour on a Core 2 Duo 2 GHz,
> consumes 2 GByte of disk)
>

2GBytes because default configure is -debug, but giving -release
instead the needed space is much less because debug symbols are not
built.

Also use:

nmake sub-src

30minutes on my Core Duo 1.5Ghz. It just compiles the Qt libraries
under src directory, not Qt tools like designer, assistant and
expecially the Qt examples.

Note: first you need to run nmake to build makefile then, just after
the makefile in main directory is built (few seconds) you can stop it
and run nmake sub-src.

> 16. bin\qgit             (to run qgit to browse qgit4's own repository!)
>

msysgit must be in PATH, both Git\cmd and Git\bin. Or you can use the
launch script start_qgit.bat that just adds msysgit to the PATH for
you before to call qgit.exe



> ------------------------------------------------------------------------
>  Peter Klavins
>

Thanks Peter,

Just a question. How about using the auto-extract zip I advertise in
this thread? With this both Qt and qgit are already compiled and
should be ready to go.


Marco

```

## Peter Klavins, 2007-12-26 23:37

Subject: Re: [ANNOUNCE] qgit2.1rc1_win.exe
Message-ID: <fkuoko$1vg$1@ger.gmane.org>
URL: https://gitlist.dev/e/fkuoko%241vg%241%40ger.gmane.org
In-Reply-To: <e5bfff550712261523g7aab6e76nd37257e7b21d1653-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

```

> Just a question. How about using the auto-extract zip I advertise in
> this thread? With this both Qt and qgit are already compiled and
> should be ready to go.

I did use your auto-extract utility, and it worked as advertised, thanks. 
Just as an aside, I think it would be better for it to also package git 
(msysgit version), so there's no need to search for git and pre-download it.

But being and old engineer at heart, I had to understand how to build qgit 
from scratch, and not being at all familiar with Qt, it was difficult to get 
it working, thus I wrote the note just in case others were having similar 
difficulties. I appreciate your clarification of the build steps.

Do you think it's worthwhile adding this info into your README?

------------------------------------------------------------------------
 Peter Klavins 

```
