Skip to content

Commit 300ab29

Browse files
author
wonder
committed
Corrected section about python bindings.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6930 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eba0254 commit 300ab29

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README_windows.txt

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Procedure for setup of a windows build environment for QGIS
22
Tim Sutton and Godofredo Contreras 2006
33
CMake additions Magnus Homann 2007
4+
Python additions Martin Dobias 2007
45
With thanks to Tisham Dhar for preparing the initial msys environment
56
---------------------------------------------------------------------------------
67

@@ -49,16 +50,35 @@ Python stuff: (optional)
4950
-------------
5051

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

5356
*) Download and install Python - use Windows installer
5457
(It doesn't matter to what folder you'll install it)
5558

5659
http://python.org/download/
5760

58-
*) Download and install PyQt4 - use binary package for Windows
59-
(Binary package includes also SIP - no need to compile it manually)
61+
*) Download SIP and PyQt4 sources
6062

61-
http://riverbankcomputing.co.uk/pyqt/download.php
63+
http://www.riverbankcomputing.com/Downloads/sip4/sip-4.6.zip
64+
http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-win-gpl-4.2.zip
65+
66+
*) Unpack SIP to a temporary directory, open console (cmd.exe) and compile:
67+
68+
> c:\Qt\4.2.3\bin\qtvars.bat
69+
> python configure.py -p win32-g++
70+
> make
71+
> make install
72+
73+
*) Unpack PyQt to a temporary directory, open console (cmd.exe) and compile:
74+
75+
> c:\Qt\4.2.3\bin\qtvars.bat
76+
> python configure.py
77+
> make
78+
> make install
79+
80+
*) You can delete the directories with unpacked SIP and PyQt4 sources
81+
after a successfull install, they're not needed anymore.
6282

6383

6484
Subversion:

0 commit comments

Comments
 (0)