Skip to content

Commit 4c9f885

Browse files
author
wonder
committed
Updated instructions for building QGIS with MSYS environment.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6117 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 74d27a1 commit 4c9f885

File tree

1 file changed

+62
-35
lines changed

1 file changed

+62
-35
lines changed

README_windows.txt

+62-35
Original file line numberDiff line numberDiff line change
@@ -10,77 +10,104 @@ Note: The process for building under windows is still being sorted out so
1010
check this document regularly for updates.
1111

1212
Msys:
13-
-------------
14-
get this :
13+
-----
14+
get this:
1515

16-
http://qgis.org/uploadfiles/msys/msys.zip
16+
http://qgis.org/uploadfiles/msys/msys.tar.bz2
1717

1818
and unpack to c:\msys
1919

20-
The file is compressed using zip - you can get a free windows application for creating and decompressing zip files here:
20+
The file is compressed using bzip2 - you can get a free windows application
21+
for creating and decompressing files here:
2122

22-
http://www.filzip.com/
23+
http://www.7-zip.org/
2324

2425
Qt4.2:
25-
-------------
26+
------
2627
Download qt4.2 opensource precompiled edition exe and install (including the
27-
download and install of mingw).
28+
download and install of mingw) from here:
29+
30+
http://www.trolltech.com/developer/downloads/qt/windows
2831

2932
Edit C:\Qt\4.2.0\bin\qtvars.bat and add the following line (the second is only
3033
needed if you like vim in your shell):
3134

32-
set PATH=%PATH%;C:\msys\local\bin
35+
set PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib
3336
set PATH=%PATH%;"c:\Program Files\Vim\vim70\
3437

3538

36-
NSIS:
37-
-------------
38-
Downlad and install NSIS from (http://nsis.sourceforge.net/Main_Page)
39+
QGIS:
40+
-----
41+
Check out to c:\dev\cpp\qgis:
3942

40-
GDB:
41-
-------------
42-
Download and install gdb-6.3.2.exe from
43+
cd c:\dev\cpp
44+
svn co https://svn.qgis.org/repos/qgis/trunk/qgis
4345

44-
http://sourceforge.net/project/showfiles.php?group_id=2435
46+
Currently you need to put it into that location in case you plan to create
47+
the NSIS installer because so far it contains hardcoded paths for this location.
4548

46-
and install into c:\mingw
4749

50+
Source changes:
51+
---------------
4852

49-
QGIS:
50-
-------------
51-
Check out to c:\dev\cpp\qgis
52-
Currently you need to put it into that location I think - if you try to build
53-
somewhere else you *may* run into problems - particularly with the NSIS installer
54-
as I havent checked all paths are relative yet.
53+
Next you need to shift some files around. For convenience we've made an archive
54+
that handles all the changes for you. Download it and unpack to qgis source directory:
5555

56-
Next you need to shift some files around. Note I expect this requirement to go away
57-
once the windows build process is refined a bit.
56+
http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip
5857

58+
List of what has been changed / added by this archive to enable compilation:
5959

60-
Core:
61-
-------------
62-
- moved qgsspatialrefsys* and qgscoordinatetransform* into core dir from gui
60+
- moved qgscsexception.h, qgsspatialrefsys* and qgscoordinatetransform* into core dir from gui
61+
- moved qgspluginregistry.* from core to gui
62+
- qgsspatialrefsys.cpp - commented out SRS validation using projection selector
6363
- qgsspatialrefsys.cpp - commented out lines using qgsproject as it depends on gui stuff
6464
- qgsdistancearea.cpp - commented out lines using qgsproject as it depends on
6565
gui stuff and moved to core
66-
- qgscsexception.h into core from gui (only tested on mac)
67-
68-
I have created a small archive which includes the above changes, which I will make available.
69-
66+
- lexer and parser generated by genlexyacc.bat
67+
- added custom qgsconfig.h and qgssvnversion.h
7068

7169

7270
Building:
73-
-------------
71+
---------
7472

75-
Now open the qt command shell
73+
Now open the qt command shell (or start "cmd" and run c:\Qt\4.2.0\qtvars.bat)
7674

7775
cd c:\dev\cpp\qgis
7876
qmake
7977
make
8078

79+
This will compile both debug and release version. To make just a one of them
80+
use "make debug" or "make release" respectively.
81+
82+
Note: debug version uses debug version of Qt library thus if linking fails
83+
on not founding library QtSvgd4 (or similar), you need to install them.
84+
85+
Running: (optional)
86+
--------
87+
88+
After successfull make you can run QGIS directly from the directory
89+
where it has been built: qgis-debug and/or qgis-release in qgis root dir.
90+
You only need to add data files - we have provided an archive for convenience
91+
which you can just unpack there and run QGIS:
8192

82-
Create the installation package:
83-
---------------------------------
93+
http://qgis.org/uploadfiles/msys/qgis_data.zip
94+
95+
Then just run qgis.exe
96+
97+
GDB: (optional)
98+
----
99+
100+
If you plan to do some debugging, download and install gdb-6.3.2.exe from
101+
102+
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe?download
103+
104+
and install to c:\msys\mingw
105+
106+
107+
Create the installation package: (optional)
108+
--------------------------------
109+
110+
Downlad and install NSIS from (http://nsis.sourceforge.net/Main_Page)
84111

85112
Download both the QGIS debug and release installer packages from
86113

0 commit comments

Comments
 (0)