@@ -10,77 +10,104 @@ Note: The process for building under windows is still being sorted out so
10
10
check this document regularly for updates.
11
11
12
12
Msys:
13
- -------------
14
- get this :
13
+ -----
14
+ get this:
15
15
16
- http://qgis.org/uploadfiles/msys/msys.zip
16
+ http://qgis.org/uploadfiles/msys/msys.tar.bz2
17
17
18
18
and unpack to c:\msys
19
19
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:
21
22
22
- http://www.filzip.com /
23
+ http://www.7-zip.org /
23
24
24
25
Qt4.2:
25
- -------------
26
+ ------
26
27
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
28
31
29
32
Edit C:\Qt\4.2.0\bin\qtvars.bat and add the following line (the second is only
30
33
needed if you like vim in your shell):
31
34
32
- set PATH=%PATH%;C:\msys\local\bin
35
+ set PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib
33
36
set PATH=%PATH%;"c:\Program Files\Vim\vim70\
34
37
35
38
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:
39
42
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
43
45
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.
45
48
46
- and install into c:\mingw
47
49
50
+ Source changes:
51
+ ---------------
48
52
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:
55
55
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
58
57
58
+ List of what has been changed / added by this archive to enable compilation:
59
59
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
63
63
- qgsspatialrefsys.cpp - commented out lines using qgsproject as it depends on gui stuff
64
64
- qgsdistancearea.cpp - commented out lines using qgsproject as it depends on
65
65
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
70
68
71
69
72
70
Building:
73
- -------------
71
+ ---------
74
72
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)
76
74
77
75
cd c:\dev\cpp\qgis
78
76
qmake
79
77
make
80
78
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:
81
92
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)
84
111
85
112
Download both the QGIS debug and release installer packages from
86
113
0 commit comments