Skip to content

Commit b7e8022

Browse files
author
timlinux
committedNov 10, 2007
Moved some MSVC notes I had made whtih are still in draft form
to lower down in the document and added a note to say it is a draft. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7365 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+243
-228
lines changed

2 files changed

+243
-228
lines changed
 

‎INSTALL

Lines changed: 199 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -5,84 +5,84 @@
55

66
1. Introduction
77
2. General Build Note
8-
3. Building under Windows using MSVC Express
9-
3.1. System preparation
10-
3.2. Install Visual Studio Express 2005
11-
4. Building under windows using msys
12-
4.1. MSYS:
13-
4.2. Qt4.3
14-
4.3. Flex and Bison
15-
4.4. Python stuff: (optional)
16-
4.4.1. Download and install Python - use Windows installer
17-
4.4.2. Download SIP and PyQt4 sources
18-
4.4.3. Compile SIP
19-
4.4.4. Compile PyQt
20-
4.4.5. Final python notes
21-
4.5. Subversion:
22-
4.6. CMake:
23-
4.7. QGIS:
24-
4.8. Compiling:
25-
4.9. Configuration
26-
4.10. Compilation and installation
27-
4.11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
28-
4.12. Create the installation package: (optional)
29-
5. Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
30-
5.1. Install XCODE
31-
5.2. Install Qt4 from .dmg
32-
5.3. Install development frameworks for QGIS dependencies
33-
5.3.1. Additional Dependencies : GSL
34-
5.3.2. Additional Dependencies : Expat
35-
5.3.3. Additional Dependencies : SIP
36-
5.3.4. Additional Dependencies : PyQt
37-
5.3.5. Additional Dependencies : Bison
38-
5.4. Install CMAKE for OSX
39-
5.5. Install subversion for OSX
40-
5.6. Check out QGIS from SVN
41-
5.7. Configure the build
42-
5.8. GEOS Issues
43-
5.9. Building
44-
6. Building on GNU/Linux
45-
6.1. Building QGIS with Qt4.x
46-
6.2. Prepare apt
47-
6.3. Install Qt4
48-
6.4. Install additional software dependencies required by QGIS
49-
6.5. GRASS Specific Steps
50-
6.6. Setup ccache (Optional)
51-
6.7. Prepare your development environment
52-
6.8. Check out the QGIS Source Code
53-
6.9. Starting the compile
54-
6.10. Running QGIS
55-
7. Creation of MSYS environment for compilation of Quantum GIS
56-
7.1. Initial setup
57-
7.1.1. MSYS
58-
7.1.2. MinGW
59-
7.1.3. Flex and Bison
60-
7.2. Installing dependencies
61-
7.2.1. Getting ready
62-
7.2.2. GDAL level one
63-
7.2.3. GRASS
64-
7.2.4. GDAL level two
8+
3. Building under windows using msys
9+
3.1. MSYS:
10+
3.2. Qt4.3
11+
3.3. Flex and Bison
12+
3.4. Python stuff: (optional)
13+
3.4.1. Download and install Python - use Windows installer
14+
3.4.2. Download SIP and PyQt4 sources
15+
3.4.3. Compile SIP
16+
3.4.4. Compile PyQt
17+
3.4.5. Final python notes
18+
3.5. Subversion:
19+
3.6. CMake:
20+
3.7. QGIS:
21+
3.8. Compiling:
22+
3.9. Configuration
23+
3.10. Compilation and installation
24+
3.11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
25+
3.12. Create the installation package: (optional)
26+
4. Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
27+
4.1. Install XCODE
28+
4.2. Install Qt4 from .dmg
29+
4.3. Install development frameworks for QGIS dependencies
30+
4.3.1. Additional Dependencies : GSL
31+
4.3.2. Additional Dependencies : Expat
32+
4.3.3. Additional Dependencies : SIP
33+
4.3.4. Additional Dependencies : PyQt
34+
4.3.5. Additional Dependencies : Bison
35+
4.4. Install CMAKE for OSX
36+
4.5. Install subversion for OSX
37+
4.6. Check out QGIS from SVN
38+
4.7. Configure the build
39+
4.8. GEOS Issues
40+
4.9. Building
41+
5. Building on GNU/Linux
42+
5.1. Building QGIS with Qt4.x
43+
5.2. Prepare apt
44+
5.3. Install Qt4
45+
5.4. Install additional software dependencies required by QGIS
46+
5.5. GRASS Specific Steps
47+
5.6. Setup ccache (Optional)
48+
5.7. Prepare your development environment
49+
5.8. Check out the QGIS Source Code
50+
5.9. Starting the compile
51+
5.10. Running QGIS
52+
6. Creation of MSYS environment for compilation of Quantum GIS
53+
6.1. Initial setup
54+
6.1.1. MSYS
55+
6.1.2. MinGW
56+
6.1.3. Flex and Bison
57+
6.2. Installing dependencies
58+
6.2.1. Getting ready
59+
6.2.2. GDAL level one
60+
6.2.3. GRASS
61+
6.2.4. GDAL level two
62+
6.2.5. GEOS
63+
6.2.6. SQLITE
64+
6.2.7. GSL
65+
6.2.8. EXPAT
66+
6.2.9. POSTGRES
67+
6.3. Cleanup
68+
7. Building with MS Visual Studio
69+
7.1. Setup Visual Studio
70+
7.1.1. Express Edition
71+
7.1.2. All Editions
72+
7.2. Download/Install Dependencies
73+
7.2.1. Flex and Bison
74+
7.2.2. Qt
75+
7.2.3. Proj.4
76+
7.2.4. GSL
6577
7.2.5. GEOS
66-
7.2.6. SQLITE
67-
7.2.7. GSL
68-
7.2.8. EXPAT
69-
7.2.9. POSTGRES
70-
7.3. Cleanup
71-
8. Building with MS Visual Studio
72-
8.1. Setup Visual Studio
73-
8.1.1. Express Edition
74-
8.1.2. All Editions
75-
8.2. Download/Install Dependencies
76-
8.2.1. Flex and Bison
77-
8.2.2. Qt
78-
8.2.3. Proj.4
79-
8.2.4. GSL
80-
8.2.5. GEOS
81-
8.2.6. GDAL
82-
8.2.7. PostGIS
83-
8.2.8. Expat
84-
8.2.9. CMake
85-
8.3. Building QGIS with CMAKE
78+
7.2.6. GDAL
79+
7.2.7. PostGIS
80+
7.2.8. Expat
81+
7.2.9. CMake
82+
7.3. Building QGIS with CMAKE
83+
8. Building under Windows using MSVC Express
84+
8.1. System preparation
85+
8.2. Install Visual Studio Express 2005
8686
9. Authors and Acknowledgments
8787

8888

@@ -141,51 +141,11 @@ For complete information, see the wiki at:
141141
http://wiki.qgis.org/qgiswiki/Building_with_CMake
142142

143143

144-
3. Building under Windows using MSVC Express
145-
============================================
146-
147-
/!\ Note: Building under MSVC is still a work in progress. In particular the
148-
following dont work yet: python, grass, postgis connections.
149-
150-
151-
3.1. System preparation
152-
=======================
153-
154-
I started with a clean XP install with Service Pack 2 and all patches applied.
155-
I have already compiled all the dependencies you need for gdal, expat etc,
156-
so this tutorial wont cover compiling those from source too. Since compiling
157-
these dependencies was a somewhat painful task I hope my precompiled libs
158-
will be adequate. If not I suggest you consult the individual projects for
159-
specific build documentation and support. Lets go over the process in a nutshell
160-
before we begin:
161-
162-
* Install XP (I used a Parallels virtual machine)
163-
* Install Visual Studio Express 2005 sp1
164-
* Install the Microsoft Platform SDK
165-
* Install command line subversion client
166-
* Install library dependencies bundle
167-
* Install Qt 4.3.2
168-
* Check out QGIS sources
169-
* Compile QGIS
170-
* Create setup.exe installer for QGIS
171-
172-
173-
3.2. Install Visual Studio Express 2005
174-
=======================================
175-
176-
Get this Visual Studio Express 2005 sp1 for C++ here:
177-
178-
http://msdn2.microsoft.com/en-us/express/aa975050.aspx
179-
180-
The above page is confusing as it has lots of other stuff on it - just scroll
181-
down until you find a link labelled "Download Visual C++ 2005 Express SP1 �"
182-
183-
184-
4. Building under windows using msys
144+
3. Building under windows using msys
185145
====================================
186146

187147

188-
4.1. MSYS:
148+
3.1. MSYS:
189149
==========
190150

191151
MSYS provides a unix style build environment under windows. We have created a
@@ -202,7 +162,7 @@ our pre-made one, detailed instructions are provided elsewhere in this
202162
document.
203163

204164

205-
4.2. Qt4.3
165+
3.2. Qt4.3
206166
==========
207167

208168
Download qt4.3 opensource precompiled edition exe and install (including the
@@ -238,7 +198,7 @@ following command:
238198

239199

240200

241-
4.3. Flex and Bison
201+
3.3. Flex and Bison
242202
===================
243203

244204
*** Note I think this section can be removed as it should be installed int the
@@ -249,23 +209,23 @@ http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16424
249209
(the zip bin) and extract it into c:\msys\mingw\bin
250210

251211

252-
4.4. Python stuff: (optional)
212+
3.4. Python stuff: (optional)
253213
=============================
254214

255215
Follow this section in case you would like to use Python bindings for QGIS. To
256216
be able to compile bindings, you need to compile SIP and PyQt4 from sources as
257217
their installer doesn't include some development files which are necessary.
258218

259219

260-
4.4.1. Download and install Python - use Windows installer
220+
3.4.1. Download and install Python - use Windows installer
261221
==========================================================
262222

263223
(It doesn't matter to what folder you'll install it)
264224

265225
http://python.org/download/
266226

267227

268-
4.4.2. Download SIP and PyQt4 sources
228+
3.4.2. Download SIP and PyQt4 sources
269229
=====================================
270230

271231
http://www.riverbankcomputing.com/Downloads/sip4/
@@ -275,7 +235,7 @@ Extract each of the above zip files in a temporary directory. Make sure
275235
to get versions that match your current Qt installed version.
276236

277237

278-
4.4.3. Compile SIP
238+
3.4.3. Compile SIP
279239
==================
280240

281241

@@ -286,7 +246,7 @@ to get versions that match your current Qt installed version.
286246

287247

288248

289-
4.4.4. Compile PyQt
249+
3.4.4. Compile PyQt
290250
===================
291251

292252

@@ -297,14 +257,14 @@ to get versions that match your current Qt installed version.
297257

298258

299259

300-
4.4.5. Final python notes
260+
3.4.5. Final python notes
301261
=========================
302262

303263
/!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
304264
successfull install, they're not needed anymore.
305265

306266

307-
4.5. Subversion:
267+
3.5. Subversion:
308268
================
309269

310270
In order to check out QGIS sources from the repository, you need Subversion
@@ -313,15 +273,15 @@ client. This installer should work fine:
313273
http://subversion.tigris.org/files/documents/15/36797/svn-1.4.3-setup.exe
314274

315275

316-
4.6. CMake:
276+
3.6. CMake:
317277
===========
318278

319279
CMake is build system used by Quantum GIS. Download it from here:
320280

321281
http://www.cmake.org/files/v2.4/cmake-2.4.6-win32-x86.exe
322282

323283

324-
4.7. QGIS:
284+
3.7. QGIS:
325285
==========
326286

327287
Start a cmd.exe window ( Start -> Run -> cmd.exe ) Create development
@@ -344,7 +304,7 @@ For svn 0.8 branch
344304

345305

346306

347-
4.8. Compiling:
307+
3.8. Compiling:
348308
===============
349309

350310
As a background read the generic building with CMake notes at the end of
@@ -368,7 +328,7 @@ Create build directory and set it as current directory:
368328

369329

370330

371-
4.9. Configuration
331+
3.9. Configuration
372332
==================
373333

374334

@@ -393,15 +353,15 @@ install prefix to its default c:\program files\
393353
When configuration is done, click 'OK' to exit the setup utility.
394354

395355

396-
4.10. Compilation and installation
356+
3.10. Compilation and installation
397357
==================================
398358

399359

400360
make make install
401361

402362

403363

404-
4.11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
364+
3.11. Run qgis.exe from the directory where it's installed (CMAKE_INSTALL_PREFIX)
405365
=================================================================================
406366

407367
Make sure to copy all .dll:s needed to the same directory as the qgis.exe
@@ -422,7 +382,7 @@ c:\msys\local\bin and c:\msys\local\lib directories, so the DLLs will be
422382
used from that place.
423383

424384

425-
4.12. Create the installation package: (optional)
385+
3.12. Create the installation package: (optional)
426386
=================================================
427387

428388
Downlad and install NSIS from (http://nsis.sourceforge.net/Main_Page)
@@ -432,21 +392,21 @@ tree. Read the READMEfile there and follow the instructions. Next right click
432392
on qgis.nsi and choose the option 'Compile NSIS Script'.
433393

434394

435-
5. Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
395+
4. Building on Mac OSX using frameworks and cmake (QGIS > 0.8)
436396
==============================================================
437397

438398
In this approach I will try to avoid as much as possible building dependencies
439399
from source and rather use frameworks wherever possible.
440400

441401

442-
5.1. Install XCODE
402+
4.1. Install XCODE
443403
==================
444404

445405
I recommend to get the latest xcode dmg from the Apple XDC Web site. Install
446406
XCODE after the ~941mb download is complete.
447407

448408

449-
5.2. Install Qt4 from .dmg
409+
4.2. Install Qt4 from .dmg
450410
==========================
451411

452412
You need a minimum of Qt4.2. I suggest getting the latest (at time of writing).
@@ -482,7 +442,7 @@ Second change the default mkspec symlink so that it points to macx-g++:
482442

483443

484444

485-
5.3. Install development frameworks for QGIS dependencies
445+
4.3. Install development frameworks for QGIS dependencies
486446
=========================================================
487447

488448
Download William Kyngesburye's excellent all in one framework that includes
@@ -505,7 +465,7 @@ There are some additional dependencies that at the time of writing are not
505465
provided as frameworks so we will need to build these from source.
506466

507467

508-
5.3.1. Additional Dependencies : GSL
468+
4.3.1. Additional Dependencies : GSL
509469
====================================
510470

511471
Retrieve the Gnu Scientific Library from
@@ -526,7 +486,7 @@ Then extract it and build it to a prefix of /usr/local:
526486

527487

528488

529-
5.3.2. Additional Dependencies : Expat
489+
4.3.2. Additional Dependencies : Expat
530490
======================================
531491

532492
Get the expat sources:
@@ -545,7 +505,7 @@ Get the expat sources:
545505

546506

547507

548-
5.3.3. Additional Dependencies : SIP
508+
4.3.3. Additional Dependencies : SIP
549509
====================================
550510

551511
Retrieve the python bindings toolkit SIP from
@@ -566,7 +526,7 @@ Then extract and build it to a prefix of /usr/local:
566526

567527

568528

569-
5.3.4. Additional Dependencies : PyQt
529+
4.3.4. Additional Dependencies : PyQt
570530
=====================================
571531

572532
Make sure you have the latest python fom
@@ -602,7 +562,7 @@ Then extract and build it to a prefix of /usr/local:
602562

603563

604564

605-
5.3.5. Additional Dependencies : Bison
565+
4.3.5. Additional Dependencies : Bison
606566
======================================
607567

608568
The version of bison available by default on Mac OSX is too old so you need to
@@ -624,7 +584,7 @@ Now build and install it to a prefix of /usr/local :
624584

625585

626586

627-
5.4. Install CMAKE for OSX
587+
4.4. Install CMAKE for OSX
628588
==========================
629589

630590
Get the latest release from here:
@@ -642,7 +602,7 @@ At the time of writing the file I grabbed was:
642602
Once downloaded open the dmg and run the installer
643603

644604

645-
5.5. Install subversion for OSX
605+
4.5. Install subversion for OSX
646606
===============================
647607

648608
The http://sourceforge.net/projects/macsvn/ (MacSVN) project has a downloadable
@@ -685,7 +645,7 @@ old) that is installed by MacOSX
685645
Now close and reopen your shell to get the updated vars.
686646

687647

688-
5.6. Check out QGIS from SVN
648+
4.6. Check out QGIS from SVN
689649
============================
690650

691651
Now we are going to check out the sources for QGIS. First we will create a
@@ -732,7 +692,7 @@ this:
732692
I suggest you press 'p' to accept the key permanently.
733693

734694

735-
5.7. Configure the build
695+
4.7. Configure the build
736696
========================
737697

738698
CMake supports out of source build so we will create a 'build' dir for the
@@ -762,7 +722,7 @@ Kyngesburye for this hint):
762722

763723

764724

765-
5.8. GEOS Issues
725+
4.8. GEOS Issues
766726
================
767727

768728
I had some issues with GEOS headers so I made the following edits:
@@ -772,7 +732,7 @@ In file /Library/Frameworks/GEOS.framework/Headers/io.h, comment out line 61
772732
In file /Library/Frameworks/GEOS.framework/Headers/geom.h, comment out line 145
773733

774734

775-
5.9. Building
735+
4.9. Building
776736
=============
777737

778738
Now we can start the build process:
@@ -788,11 +748,11 @@ If all built without errors you can then install it:
788748

789749

790750

791-
6. Building on GNU/Linux
751+
5. Building on GNU/Linux
792752
========================
793753

794754

795-
6.1. Building QGIS with Qt4.x
755+
5.1. Building QGIS with Qt4.x
796756
=============================
797757

798758
*Requires:* Ubuntu Edgy / Debian derived distro
@@ -809,7 +769,7 @@ in use for a while, you may need to just skip those steps which are irrelevant
809769
to you.
810770

811771

812-
6.2. Prepare apt
772+
5.2. Prepare apt
813773
================
814774

815775
The packages qgis depends on to build are available in the "universe" component
@@ -828,7 +788,7 @@ Now update your local sources database:
828788

829789

830790

831-
6.3. Install Qt4
791+
5.3. Install Qt4
832792
================
833793

834794

@@ -874,7 +834,7 @@ Use the simple command line dialog that appears after running each of the
874834
above commands to select the Qt4 version of the relevant applications.
875835

876836

877-
6.4. Install additional software dependencies required by QGIS
837+
5.4. Install additional software dependencies required by QGIS
878838
==============================================================
879839

880840

@@ -892,7 +852,7 @@ distributions (e.g. Debian or SuSE) only provide SIP < 4.5 and PyQt4 < 4.1. To i
892852
language bindings you may need to build and install those packages from source.
893853

894854

895-
6.5. GRASS Specific Steps
855+
5.5. GRASS Specific Steps
896856
=========================
897857

898858
/!\ *Note:* If you don't need to build with GRASS support, you can
@@ -907,7 +867,7 @@ Now you can install grass from dapper:
907867
/!\ You may need to explicitly state your grass version e.g. libgdal1-1.3.2-grass
908868

909869

910-
6.6. Setup ccache (Optional)
870+
5.6. Setup ccache (Optional)
911871
============================
912872

913873
You should also setup ccache to speed up compile times:
@@ -919,7 +879,7 @@ You should also setup ccache to speed up compile times:
919879

920880

921881

922-
6.7. Prepare your development environment
882+
5.7. Prepare your development environment
923883
=========================================
924884

925885
As a convention I do all my development work in $HOME/dev/<language>, so in
@@ -934,7 +894,7 @@ this:
934894
This directory path will be assumed for all instructions that follow.
935895

936896

937-
6.8. Check out the QGIS Source Code
897+
5.8. Check out the QGIS Source Code
938898
===================================
939899

940900
There are two ways the source can be checked out. Use the anonymous method
@@ -973,7 +933,7 @@ qgis.org certificate. Press 'p' to accept it permanently:
973933

974934

975935

976-
6.9. Starting the compile
936+
5.9. Starting the compile
977937
=========================
978938

979939
I compile my development version of QGIS into my ~/apps directory to avoid
@@ -1015,7 +975,7 @@ Now on with the build:
1015975
It may take a little while to build depending on your platform.
1016976

1017977

1018-
6.10. Running QGIS
978+
5.10. Running QGIS
1019979
==================
1020980

1021981
Now you can try to run QGIS:
@@ -1028,15 +988,15 @@ If all has worked properly the QGIS application should start up and appear
1028988
on your screen.
1029989

1030990

1031-
7. Creation of MSYS environment for compilation of Quantum GIS
991+
6. Creation of MSYS environment for compilation of Quantum GIS
1032992
==============================================================
1033993

1034994

1035-
7.1. Initial setup
995+
6.1. Initial setup
1036996
==================
1037997

1038998

1039-
7.1.1. MSYS
999+
6.1.1. MSYS
10401000
===========
10411001

10421002
This is the environment that supplies many utilities from UNIX world in Windows and is needed
@@ -1051,7 +1011,7 @@ Install to c:\msys
10511011
All stuff we're going to compile is going to get to this directory (resp. its subdirs).
10521012

10531013

1054-
7.1.2. MinGW
1014+
6.1.2. MinGW
10551015
============
10561016

10571017
Download from here:
@@ -1063,7 +1023,7 @@ Install to c:\msys\mingw
10631023
It suffices to download and install only g++ and mingw-make components.
10641024

10651025

1066-
7.1.3. Flex and Bison
1026+
6.1.3. Flex and Bison
10671027
=====================
10681028

10691029
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
@@ -1079,11 +1039,11 @@ Download the following packages:
10791039
Unpack them all to c:\msys\local
10801040

10811041

1082-
7.2. Installing dependencies
1042+
6.2. Installing dependencies
10831043
============================
10841044

10851045

1086-
7.2.1. Getting ready
1046+
6.2.1. Getting ready
10871047
====================
10881048

10891049
Paul Kelly did a great job and prepared a package of precompiled libraries for GRASS.
@@ -1109,7 +1069,7 @@ Moreover he also left the notes how to compile it (for those interested):
11091069
Unpack the whole package to c:\msys\local
11101070

11111071

1112-
7.2.2. GDAL level one
1072+
6.2.2. GDAL level one
11131073
=====================
11141074

11151075
Since Quantum GIS needs GDAL with GRASS support, we need to compile GDAL
@@ -1174,7 +1134,7 @@ Libtool on windows assumes a line length limit of 8192 for some reason and tries
11741134
Make and make install should be hassle free after this.
11751135

11761136

1177-
7.2.3. GRASS
1137+
6.2.3. GRASS
11781138
============
11791139

11801140
Grab sources from CVS or use a weekly snapshot, see:
@@ -1201,7 +1161,7 @@ By the way, these pages might be useful:
12011161
- http://geni.ath.cx/grass.html
12021162

12031163

1204-
7.2.4. GDAL level two
1164+
6.2.4. GDAL level two
12051165
=====================
12061166

12071167
At this stage, we'll use GDAL sources we've used before, only the compilation will be a bit different.
@@ -1225,7 +1185,7 @@ Then again, edit gdal-config and change line with CONFIG_LIBS
12251185
Now, GDAL should be able to work also with GRASS raster layers.
12261186

12271187

1228-
7.2.5. GEOS
1188+
6.2.5. GEOS
12291189
===========
12301190

12311191
Download the sources:
@@ -1255,7 +1215,7 @@ Now, in MSYS console, go to the source directory and run:
12551215

12561216

12571217

1258-
7.2.6. SQLITE
1218+
6.2.6. SQLITE
12591219
=============
12601220

12611221
You can use precompiled DLL, no need to compile from source:
@@ -1273,7 +1233,7 @@ Then download this archive:
12731233
and copy sqlite3.h to c:\msys\local\include
12741234

12751235

1276-
7.2.7. GSL
1236+
6.2.7. GSL
12771237
==========
12781238

12791239
Download sources:
@@ -1291,7 +1251,7 @@ Run from MSYS console in the source directory:
12911251

12921252

12931253

1294-
7.2.8. EXPAT
1254+
6.2.8. EXPAT
12951255
============
12961256

12971257
Download sources:
@@ -1309,7 +1269,7 @@ Run from MSYS console in the source directory:
13091269

13101270

13111271

1312-
7.2.9. POSTGRES
1272+
6.2.9. POSTGRES
13131273
===============
13141274

13151275
We're going to use precompiled binaries. Use the link below for download:
@@ -1319,26 +1279,30 @@ We're going to use precompiled binaries. Use the link below for download:
13191279
copy contents of pgsql directory from the archive to c:\msys\local
13201280

13211281

1322-
7.3. Cleanup
1282+
6.3. Cleanup
13231283
============
13241284

13251285
We're done with preparation of MSYS environment. Now you can delete all stuff in c:\msys\local\src - it takes quite a lot
13261286
of space and it's not necessary at all.
13271287

13281288

1329-
8. Building with MS Visual Studio
1289+
7. Building with MS Visual Studio
13301290
=================================
13311291

1292+
/!\ This section describes a process where you build all dependencies yourself. See the section
1293+
after this for a simpler procedure where we have all the dependencies you need pre-packaged
1294+
and we focus just on getting Visual Studio Express set up and building QGIS.
1295+
13321296
Note that this does not currently include GRASS or Python plugins.
13331297

13341298

1335-
8.1. Setup Visual Studio
1299+
7.1. Setup Visual Studio
13361300
========================
13371301

13381302
This section describes the setup required to allow Visual Studio to be used to build QGIS.
13391303

13401304

1341-
8.1.1. Express Edition
1305+
7.1.1. Express Edition
13421306
======================
13431307

13441308
The free Express Edition lacks the platform SDK which contains headers and so on that are needed when building QGIS. The platform SDK can be installed as described here:
@@ -1353,7 +1317,7 @@ You will also need to perform the edits described here to remove the need for a
13531317
http://www.codeproject.com/wtl/WTLExpress.asp
13541318

13551319

1356-
8.1.2. All Editions
1320+
7.1.2. All Editions
13571321
===================
13581322

13591323
You will need stdint.h and unistd.h. unistd.h comes with GnuWin32 version of flex & bison binaries (see later). stdint.h can be found here:
@@ -1362,13 +1326,13 @@ You will need stdint.h and unistd.h. unistd.h comes with GnuWin32 version of fle
13621326
Copy both of these to <vsinstalldir>\VC\include.
13631327

13641328

1365-
8.2. Download/Install Dependencies
1329+
7.2. Download/Install Dependencies
13661330
==================================
13671331

13681332
This section describes the downloading and installation of the various QGIS dependencies.
13691333

13701334

1371-
8.2.1. Flex and Bison
1335+
7.2.1. Flex and Bison
13721336
=====================
13731337

13741338
Flex and Bison are tools for generation of parsers, they're needed for GRASS and also QGIS compilation.
@@ -1380,15 +1344,15 @@ Download the following packages and run the installers:
13801344
http://gnuwin32.sourceforge.net/downlinks/bison.php
13811345

13821346

1383-
8.2.2. Qt
1347+
7.2.2. Qt
13841348
=========
13851349

13861350
Build Qt following the instructions here:
13871351

13881352
http://wiki.qgis.org/qgiswiki/Building_QT_4_with_Visual_C%2B%2B_2005
13891353

13901354

1391-
8.2.3. Proj.4
1355+
7.2.3. Proj.4
13921356
=============
13931357

13941358
Get proj.4 source from here:
@@ -1418,7 +1382,7 @@ Install by running the following in the top level directory setting PROJ_DIR as
14181382
This can also be added to a batch file.
14191383

14201384

1421-
8.2.4. GSL
1385+
7.2.4. GSL
14221386
==========
14231387

14241388
Get gsl source from here:
@@ -1427,7 +1391,7 @@ Get gsl source from here:
14271391
Build using the gsl.sln file
14281392

14291393

1430-
8.2.5. GEOS
1394+
7.2.5. GEOS
14311395
===========
14321396

14331397
Get geos from svn (svn checkout http://svn.refractions.net/geos/trunk geos).
@@ -1463,7 +1427,7 @@ Run the following in top level directory, setting GEOS_DIR as appropriate:
14631427
This can also be added to a batch file.
14641428

14651429

1466-
8.2.6. GDAL
1430+
7.2.6. GDAL
14671431
===========
14681432

14691433
Get gdal from svn (svn checkout https://svn.osgeo.org/gdal/branches/1.4/gdal gdal).
@@ -1483,7 +1447,7 @@ and
14831447

14841448

14851449

1486-
8.2.7. PostGIS
1450+
7.2.7. PostGIS
14871451
==============
14881452

14891453
Get PostGIS and the Windows version of PostgreSQL from here:
@@ -1492,7 +1456,7 @@ Get PostGIS and the Windows version of PostgreSQL from here:
14921456
Note the warning about not installing the version of PostGIS that comes with the PostgreSQL installer. Simply run the installers.
14931457

14941458

1495-
8.2.8. Expat
1459+
7.2.8. Expat
14961460
============
14971461

14981462
Get expat from here:
@@ -1503,7 +1467,7 @@ You'll need expat-win32bin-2.0.1.exe.
15031467
Simply run the executable to install expat.
15041468

15051469

1506-
8.2.9. CMake
1470+
7.2.9. CMake
15071471
============
15081472

15091473
Get CMake from here:
@@ -1512,7 +1476,7 @@ Get CMake from here:
15121476
You'll need cmake-<version>-win32-x86.exe. Simply run this to install CMake.
15131477

15141478

1515-
8.3. Building QGIS with CMAKE
1479+
7.3. Building QGIS with CMAKE
15161480
=============================
15171481

15181482
Get QGIS source from svn (svn co https://svn.qgis.org/repos/qgis/trunk/qgis qgis).
@@ -1542,6 +1506,49 @@ Build the ALL_BUILD project. This will build all the QGIS binaries along with al
15421506
You will also either need to add all the dependency dlls to the QGIS install directory or add their respective directories to your PATH.
15431507

15441508

1509+
8. Building under Windows using MSVC Express
1510+
============================================
1511+
1512+
/!\ Note: Building under MSVC is still a work in progress. In particular the
1513+
following dont work yet: python, grass, postgis connections.
1514+
1515+
/!\ This section of the document is in draft form and is not ready to be used
1516+
yet.
1517+
1518+
1519+
8.1. System preparation
1520+
=======================
1521+
1522+
I started with a clean XP install with Service Pack 2 and all patches applied.
1523+
I have already compiled all the dependencies you need for gdal, expat etc,
1524+
so this tutorial wont cover compiling those from source too. Since compiling
1525+
these dependencies was a somewhat painful task I hope my precompiled libs
1526+
will be adequate. If not I suggest you consult the individual projects for
1527+
specific build documentation and support. Lets go over the process in a nutshell
1528+
before we begin:
1529+
1530+
* Install XP (I used a Parallels virtual machine)
1531+
* Install Visual Studio Express 2005 sp1
1532+
* Install the Microsoft Platform SDK
1533+
* Install command line subversion client
1534+
* Install library dependencies bundle
1535+
* Install Qt 4.3.2
1536+
* Check out QGIS sources
1537+
* Compile QGIS
1538+
* Create setup.exe installer for QGIS
1539+
1540+
1541+
8.2. Install Visual Studio Express 2005
1542+
=======================================
1543+
1544+
Get this Visual Studio Express 2005 sp1 for C++ here:
1545+
1546+
http://msdn2.microsoft.com/en-us/express/aa975050.aspx
1547+
1548+
The above page is confusing as it has lots of other stuff on it - just scroll
1549+
down until you find a link labelled "Download Visual C++ 2005 Express SP1 �"
1550+
1551+
15451552
9. Authors and Acknowledgments
15461553
==============================
15471554

‎INSTALL.t2t

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -67,42 +67,6 @@ of cmake and provides some clues to build QGIS.
6767
For complete information, see the wiki at:
6868
http://wiki.qgis.org/qgiswiki/Building_with_CMake
6969

70-
= Building under Windows using MSVC Express =
71-
72-
/!\ Note: Building under MSVC is still a work in progress. In particular the
73-
following dont work yet: python, grass, postgis connections.
74-
75-
== System preparation ==
76-
77-
I started with a clean XP install with Service Pack 2 and all patches applied.
78-
I have already compiled all the dependencies you need for gdal, expat etc,
79-
so this tutorial wont cover compiling those from source too. Since compiling
80-
these dependencies was a somewhat painful task I hope my precompiled libs
81-
will be adequate. If not I suggest you consult the individual projects for
82-
specific build documentation and support. Lets go over the process in a nutshell
83-
before we begin:
84-
85-
* Install XP (I used a Parallels virtual machine)
86-
* Install Visual Studio Express 2005 sp1
87-
* Install the Microsoft Platform SDK
88-
* Install command line subversion client
89-
* Install library dependencies bundle
90-
* Install Qt 4.3.2
91-
* Check out QGIS sources
92-
* Compile QGIS
93-
* Create setup.exe installer for QGIS
94-
95-
96-
== Install Visual Studio Express 2005 ==
97-
98-
Get this Visual Studio Express 2005 sp1 for C++ here:
99-
100-
101-
http://msdn2.microsoft.com/en-us/express/aa975050.aspx
102-
103-
The above page is confusing as it has lots of other stuff on it - just scroll
104-
down until you find a link labelled "Download Visual C++ 2005 Express SP1 �"
105-
10670

10771

10872

@@ -1139,6 +1103,11 @@ of space and it's not necessary at all.
11391103

11401104
= Building with MS Visual Studio =
11411105

1106+
1107+
/!\ This section describes a process where you build all dependencies yourself. See the section
1108+
after this for a simpler procedure where we have all the dependencies you need pre-packaged
1109+
and we focus just on getting Visual Studio Express set up and building QGIS.
1110+
11421111
Note that this does not currently include GRASS or Python plugins.
11431112

11441113
== Setup Visual Studio ==
@@ -1303,6 +1272,45 @@ Build the ALL_BUILD project. This will build all the QGIS binaries along with al
13031272

13041273
You will also either need to add all the dependency dlls to the QGIS install directory or add their respective directories to your PATH.
13051274

1275+
= Building under Windows using MSVC Express =
1276+
1277+
/!\ Note: Building under MSVC is still a work in progress. In particular the
1278+
following dont work yet: python, grass, postgis connections.
1279+
1280+
/!\ This section of the document is in draft form and is not ready to be used
1281+
yet.
1282+
1283+
== System preparation ==
1284+
1285+
I started with a clean XP install with Service Pack 2 and all patches applied.
1286+
I have already compiled all the dependencies you need for gdal, expat etc,
1287+
so this tutorial wont cover compiling those from source too. Since compiling
1288+
these dependencies was a somewhat painful task I hope my precompiled libs
1289+
will be adequate. If not I suggest you consult the individual projects for
1290+
specific build documentation and support. Lets go over the process in a nutshell
1291+
before we begin:
1292+
1293+
* Install XP (I used a Parallels virtual machine)
1294+
* Install Visual Studio Express 2005 sp1
1295+
* Install the Microsoft Platform SDK
1296+
* Install command line subversion client
1297+
* Install library dependencies bundle
1298+
* Install Qt 4.3.2
1299+
* Check out QGIS sources
1300+
* Compile QGIS
1301+
* Create setup.exe installer for QGIS
1302+
1303+
1304+
== Install Visual Studio Express 2005 ==
1305+
1306+
Get this Visual Studio Express 2005 sp1 for C++ here:
1307+
1308+
1309+
http://msdn2.microsoft.com/en-us/express/aa975050.aspx
1310+
1311+
The above page is confusing as it has lots of other stuff on it - just scroll
1312+
down until you find a link labelled "Download Visual C++ 2005 Express SP1 �"
1313+
13061314

13071315
= Authors and Acknowledgments =
13081316

0 commit comments

Comments
 (0)
Please sign in to comment.