<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=RU link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Hi jaan,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>What SVN version are you using?
The latest SVN or 0.8.0 Release (<a
href="https://svn.qgis.org/repos/qgis/branches/Release-0_8_0/">https://svn.qgis.org/repos/qgis/branches/Release-0_8_0/</a>)?
If you were getting latest (unstable) SVN source then you have to use CMAKE
instead of QMAKE, of course latest SVN must be using CMAKE!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Also suggest to you
Martin&#8217;s advice too.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>&nbsp;&gt; Those two
files (and some more) are here:<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>&nbsp;&gt; <a
href="http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip">http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip</a><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>&nbsp;&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>&nbsp;&gt; It's mentioned
in the readme, please read it carefully.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>&nbsp;&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>&nbsp;&gt; Martin.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>P.S By the way I have two
versions of QGIS source codes (R 0.8.0 and latest SVN) and they are compiled well
in windows platform using Tim Sutton&#8217;s README_windows.txt (MinGW and
bundled MSYS package) and CMAKE.<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Best regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Byambaa Mendbayar<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
qgis-developer-bounces@lists.qgis.org [mailto:qgis-developer-bounces@lists.qgis.org]
<b><span style='font-weight:bold'>On Behalf Of </span></b>sijan ahamed<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, January 23, 2007
7:03 PM<br>
<b><span style='font-weight:bold'>To:</span></b> qgis-developer@lists.qgis.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Qgis-developer] Fwd:
windows build environment for QGIS</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<strong><b><font face="Times New Roman">Procedure for setup of a windows build
environment for QGIS</font></b></strong><b><span style='font-weight:bold'><br>
<strong><b><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Tim Sutton and Godofredo Contreras 2006</font></b></strong><br>
<strong><b><font face="Times New Roman">&nbsp; With thanks to Tisham Dhar for
preparing the initial msys environment</font></b></strong></span></b> <br>
---------------------------------------------------------------------------------<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>This
document describes the process you need to follow to get QGIS built directly<br>
under windows (rather than using a cross compiler under linux).Note: The
process for building under windows is still being sorted out so <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check this document regularly for updates.</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Msys:<br>
-----<br>
get this: </span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://qgis.org/uploadfiles/msys/msys.tar.bz2" target="_blank"><font
size=2><span style='font-size:10.0pt'>http://qgis.org/uploadfiles/msys/msys.tar.bz2</span></font></a><o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>and unpack to c:\msys</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>The file is compressed using bzip2 - you can get a free windows
application<br>
for creating and decompressing files here:</span></font><o:p></o:p></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://www.7-zip.org/" target="_blank"><font size=2><span
style='font-size:10.0pt'>http://www.7-zip.org/</span></font></a><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Qt4.2:<br>
------</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Download
qt4.2 opensource precompiled edition exe and install (including the <br>
download and install of mingw) from here:</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://www.trolltech.com/developer/downloads/qt/windows" target="_blank"><font
size=2><span style='font-size:10.0pt'>http://www.trolltech.com/developer/downloads/qt/windows</span></font></a>
<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Edit
C:\Qt\4.2.0\bin\qtvars.bat and add the following line (the second is only <br>
needed if you like vim in your shell):</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>set
PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib<br>
set PATH=%PATH%;&quot;c:\Program Files\Vim\vim70\</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>If you
plan to do some debugging, you'll need to complie debug version of Qt:<br>
C:\Qt\4.2.0\bin\qtvars.bat compile_debug</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2><span style='font-size:10.0pt'>QGIS:<br>
-----<br>
Check out to c:\dev\cpp\qgis:</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>cd
c:\dev\cpp<br>
svn co </span></font><a href="https://svn.qgis.org/repos/qgis/trunk/qgis"
target="_blank"><font size=2><span style='font-size:10.0pt'>https://svn.qgis.org/repos/qgis/trunk/qgis
</span></font></a><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Currently
you need to put it into that location in case you plan to create<br>
the NSIS installer because so far it contains hardcoded paths for this
location.</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2><span style='font-size:10.0pt'>Source changes:<br>
---------------</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Next you
need to shift some files around. For convenience we've made an archive<br>
that handles all the changes for you. Download it and unpack to qgis source
directory:</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip" target="_blank"><font
size=2><span style='font-size:10.0pt'>http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip</span></font></a><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>List of
what has been changed / added by this archive to enable compilation:</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>&nbsp;-
moved qgscsexception.h, qgsspatialrefsys* and qgscoordinatetransform* into core
dir from gui<br>
&nbsp;- moved qgspluginregistry.* from core to gui<br>
&nbsp;- qgsspatialrefsys.cpp - commented out SRS validation using projection
selector <br>
&nbsp;- qgsspatialrefsys.cpp - commented out lines using qgsproject as it
depends on gui stuff<br>
&nbsp;- qgsdistancearea.cpp - commented out lines using qgsproject as it
depends on <br>
&nbsp;&nbsp; gui stuff and moved to core<br>
&nbsp;- lexer and parser generated by genlexyacc.bat<br>
&nbsp;- added custom qgsconfig.h and qgssvnversion.h</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2><span style='font-size:10.0pt'>Building:<br>
---------</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Now open
the qt command shell (or start &quot;cmd&quot; and run
c:\Qt\4.2.0\bin\qtvars.bat)</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>cd
c:\dev\cpp\qgis<br>
qmake<br>
make</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>This will
compile both debug and release version. To make just a one of them<br>
use &quot;make debug&quot; or &quot;make release&quot; respectively.</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Note:
debug version uses debug version of Qt library thus if linking fails<br>
on not founding library QtSvgd4 (or similar), you need to compile them<br>
as described in section for Qt.</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Running:
(optional)<br>
--------</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>After
successfull make you can run QGIS directly from the directory<br>
where it has been built: qgis-debug and/or qgis-release in qgis root dir.<br>
You only need to add data files - we have provided an archive for convenience <br>
which you can just unpack there and run QGIS:</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://qgis.org/uploadfiles/msys/qgis_data.zip" target="_blank"><font
size=2><span style='font-size:10.0pt'>http://qgis.org/uploadfiles/msys/qgis_data.zip</span></font></a><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Then just
run qgis.exe</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>GDB:
(optional)<br>
----</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>If you
plan to do some debugging, download and install gdb-6.3.2.exe from </span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe?download"
target="_blank"><font size=2><span style='font-size:10.0pt'>http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe?download
</span></font></a><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>and
install to c:\msys\mingw</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2><span style='font-size:10.0pt'>Create the
installation package: (optional)<br>
--------------------------------</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Downlad
and install NSIS from (</span></font><a
href="http://nsis.sourceforge.net/Main_Page" target="_blank"><font size=2><span
style='font-size:10.0pt'>http://nsis.sourceforge.net/Main_Page </span></font></a><font
size=2><span style='font-size:10.0pt'>)</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Download
both the QGIS debug and release installer packages from </span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://qgis.org/uploadfiles/testbuilds/" target="_blank"><font size=2><span
style='font-size:10.0pt'>http://qgis.org/uploadfiles/testbuilds/</span></font></a><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>and
install them. Now copy the installation dirs from C:\Program Files\QGIS* into <br>
c:\dev\cpp\qgis\qgis-debug and c:\dev\cpp\qgis\qgis-release respectively. After<br>
making these copies uninstall the release and debug versions of QGIS from <br>
your c:\Program Files directories using the provided uninstaller. Double check<br>
that both dirs are complete gone under program files afterwards.</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Now using
windows explorer, enter the c:\dev\cpp\qgis\win_build directory and right <br>
click on qgis.nsi and choose the option 'Compile NSIS Script'. Do the same <br>
for qgis-debug.nsi. Congratulations you should have two installable qgis <br>
setup files in the win_build directory now..</span></font><o:p></o:p></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>&nbsp;</span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</span></font><font size=4 color="#cc0000"><span style='font-size:13.5pt;
color:#CC0000'>I FOLLOWED THIS METHOD TO SETUP WINDOWS BUILD ENVIRONMENT FOR
QGIS...BUT ENCOUNTERED WITH SOME PROBLEMS IN THE MIDDLE...</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color="#cc0000" face="Times New Roman"><span
style='font-size:13.5pt;color:#CC0000'>1.after runnng make---errors due to
missing of&quot;qgsconfig.h &amp;qgssvnversion.h&quot;</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color="#cc0000" face="Times New Roman"><span
style='font-size:13.5pt;color:#CC0000'>where i can get it????</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color="#cc0000" face="Times New Roman"><span
style='font-size:13.5pt;color:#CC0000'>&nbsp;</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color="#cc0000" face="Times New Roman"><span
style='font-size:13.5pt;color:#CC0000'>pls help me.......<br clear=all>
</span></font><br>
-- <br>
jaan <o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br clear=all>
<br>
-- <br>
jaan <o:p></o:p></span></font></p>

</div>

</body>

</html>