threads / announce / 11398

[ANNOUNCE] qgit2.1rc1_win.exe

Subject: [ANNOUNCE] qgit2.1rc1_win.exe

## tl;dr

4 messages between Dec 24, 2007 and Dec 26, 2007.

replies: 3people: 3as markdown or json

Marco Costalba· Dec 24, 2007, 09:13 UTC · lore
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· Dec 26, 2007, 21:22 UTC · lore

Re: [ANNOUNCE] qgit2.1rc1_win.exe

> 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· Dec 26, 2007, 23:23 UTC · re: Peter Klavins · lore

Re: [ANNOUNCE] qgit2.1rc1_win.exe

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· Dec 26, 2007, 23:37 UTC · lore

Re: [ANNOUNCE] qgit2.1rc1_win.exe

> 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 

← back to recent threads