|
1 | 1 | Procedure for setup of a windows build environment for QGIS |
2 | 2 | Tim Sutton and Godofredo Contreras 2006 |
3 | 3 | CMake additions Magnus Homann 2007 |
| 4 | + Python additions Martin Dobias 2007 |
4 | 5 | With thanks to Tisham Dhar for preparing the initial msys environment |
5 | 6 | --------------------------------------------------------------------------------- |
6 | 7 |
|
@@ -49,16 +50,35 @@ Python stuff: (optional) |
49 | 50 | ------------- |
50 | 51 |
|
51 | 52 | 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. |
52 | 55 |
|
53 | 56 | *) Download and install Python - use Windows installer |
54 | 57 | (It doesn't matter to what folder you'll install it) |
55 | 58 |
|
56 | 59 | http://python.org/download/ |
57 | 60 |
|
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 |
60 | 62 |
|
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. |
62 | 82 |
|
63 | 83 |
|
64 | 84 | Subversion: |
|
0 commit comments