You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Start a cmd.exe window ( Start -> Run -> cmd.exe )
120
-
* Create development directory and move into it
153
+
Start a cmd.exe window ( Start -> Run -> cmd.exe ) Create development
154
+
directory and move into it
121
155
122
-
```
123
-
> md c:\dev\cpp
124
-
> cd c:\dev\cpp
156
+
```
157
+
md c:\dev\cpp
158
+
cd c:\dev\cpp
125
159
```
126
160
127
-
* Check out sources from SVN
128
-
* For svn head:
129
-
```
130
-
svn co https://svn.qgis.org/repos/qgis/trunk/qgis
161
+
Check out sources from SVN For svn head:
162
+
```
163
+
svn co https://svn.qgis.org/repos/qgis/trunk/qgis
131
164
```
132
-
* For svn 0.8 branch
165
+
For svn 0.8 branch
133
166
```
134
-
* svn co https://svn.qgis.org/repos/qgis/branches/Release-0_8_0 qgis0.8
167
+
svn co https://svn.qgis.org/repos/qgis/branches/Release-0_8_0 qgis0.8
135
168
```
136
169
137
170
138
171
== Compiling: ==
139
172
140
-
As a background read http://wiki.qgis.org/qgiswiki/Building_with_CMake
173
+
As a background read the generic building with CMake notes at the end of
174
+
this document.
141
175
142
-
* Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have one already.
143
-
* Add paths to compiler and our MSYS environment:
176
+
Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have one
177
+
already. Add paths to compiler and our MSYS environment:
144
178
145
179
```
146
-
c:\Qt\4.3.0\bin\qtvars.bat
180
+
c:\Qt\4.3.0\bin\qtvars.bat
147
181
```
148
-
* For ease of use add c:\Qt\4.3.0\bin\ to your system path in system properties so you can just type qtvars.bat when you open the cmd console.
149
-
* Create build directory and set it as current directory:
150
182
151
-
```
152
-
cd c:\dev\cpp\qgis
153
-
md build
154
-
cd build
183
+
For ease of use add c:\Qt\4.3.0\bin\ to your system path in system
184
+
properties so you can just type qtvars.bat when you open the cmd console.
185
+
Create build directory and set it as current directory:
186
+
187
+
188
+
```
189
+
cd c:\dev\cpp\qgis
190
+
md build
191
+
cd build
155
192
```
156
193
157
194
== Configuration ==
158
195
159
196
```
160
-
cmakesetup ..
197
+
cmakesetup ..
161
198
```
162
199
163
-
/!\ NOTE: You must include the '..' above.
200
+
/!\ NOTE: You must include the '..' above.
164
201
165
-
* Click 'Configure' button.
166
-
* When asked, you should choose 'MinGW Makefiles' as generator.
167
-
168
-
There's a problem with MinGW Makefiles on Win2K. If you're compiling on this
169
-
platform, use 'MSYS Makefiles' generator instead.
202
+
Click 'Configure' button. When asked, you should choose 'MinGW Makefiles'
203
+
as generator.
170
204
171
-
All dependencies should be picked up automatically, if you have set
172
-
up the Paths correctly. The only thing you need to change is the
173
-
installation destination (CMAKE_INSTALL_PREFIX) and/or set 'Debug'.
174
-
175
-
For compatibility with NSIS packaging cripts I recommend to leave the install
176
-
prefix to its default c:\program files\
205
+
There's a problem with MinGW Makefiles on Win2K. If you're compiling on this
206
+
platform, use 'MSYS Makefiles' generator instead.
207
+
208
+
All dependencies should be picked up automatically, if you have set up the
209
+
Paths correctly. The only thing you need to change is the installation
210
+
destination (CMAKE_INSTALL_PREFIX) and/or set 'Debug'.
177
211
178
-
When configuration is done, click 'OK' to exit the setup utility.
212
+
For compatibility with NSIS packaging cripts I recommend to leave the
213
+
install prefix to its default c:\program files\
179
214
180
-
*) Compilation and installation
215
+
When configuration is done, click 'OK' to exit the setup utility.
216
+
217
+
== Compilation and installation ==
218
+
181
219
182
-
> make
183
-
> make install
220
+
```
221
+
make make install
222
+
```
184
223
185
-
*) Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
224
+
== Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX) ==
186
225
187
-
Make sure to copy all .dll:s needed to the same directory as the
188
-
qgis.exe binary is installed to, if not already done so, otherwise
189
-
QGIS will complain about missing libraries when started.
226
+
Make sure to copy all .dll:s needed to the same directory as the qgis.exe
227
+
binary is installed to, if not already done so, otherwise QGIS will complain
228
+
about missing libraries when started.
190
229
191
-
The best way to do this is to download both the QGIS current release installer package from http://qgis.org/uploadfiles/testbuilds/ and install it. Now copy the installation dir from C:\Program Files\Quantum GIS into c:\Program Files\qgis-0.8.1 (or whatever the current version is. The name should strictly match the version no. After making this copy you can uninstall the release version of QGIS from your c:\Program Files directory using the provided uninstaller. Double check that the Quantum GIS dir is completely gone under program files afterwards.
230
+
The best way to do this is to download both the QGIS current release installer
231
+
package from http://qgis.org/uploadfiles/testbuilds/ and install it. Now copy
232
+
the installation dir from C:\Program Files\Quantum GIS into c:\Program
233
+
Files\qgis-0.8.1 (or whatever the current version is. The name should strictly
234
+
match the version no.) After making this copy you can uninstall the release
235
+
version of QGIS from your c:\Program Files directory using the provided
236
+
uninstaller. Double check that the Quantum GIS dir is completely gone under
237
+
program files afterwards.
192
238
193
-
Another possibility is to run qgis.exe when your path contains
194
-
c:\msys\local\bin and c:\msys\local\lib directories, so the DLLs
195
-
will be used from that place.
239
+
Another possibility is to run qgis.exe when your path contains
240
+
c:\msys\local\bin and c:\msys\local\lib directories, so the DLLs will be
241
+
used from that place.
196
242
197
243
198
244
== Create the installation package: (optional) ==
199
245
200
246
Downlad and install NSIS from (http://nsis.sourceforge.net/Main_Page)
201
247
202
248
203
-
Now using windows explorer, enter the win_build directory in your QGIS source tree. Read the READMEfile there and follow the instructions. Next right
204
-
click on qgis.nsi and choose the option 'Compile NSIS Script'.
249
+
Now using windows explorer, enter the win_build directory in your QGIS source
250
+
tree. Read the READMEfile there and follow the instructions. Next right click
251
+
on qgis.nsi and choose the option 'Compile NSIS Script'.
252
+
253
+
254
+
255
+
= Building on Mac OSX using frameworks and cmake (QGIS > 0.8) =
256
+
257
+
258
+
In this approach I will try to avoid as much as possible building dependencies
259
+
from source and rather use frameworks wherever possible.
260
+
261
+
== Install XCODE ==
262
+
263
+
I recommend to get the latest xcode dmg from the Apple XDC Web site. Install
0 commit comments