mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Update references to Qt4 in msys build instructions to Qt5
(untested)
This commit is contained in:
parent
078d68fb7f
commit
4330120223
24
doc/msys.t2t
24
doc/msys.t2t
@ -39,18 +39,18 @@ it, just point the installer to c:\msys\mingw
|
||||
|
||||
When Qt installation is complete:
|
||||
|
||||
Edit C:\Qt\4.8.0\bin\qtvars.bat and add the following lines:
|
||||
Edit C:\Qt\5.9.1\bin\qtvars.bat and add the following lines:
|
||||
|
||||
```
|
||||
set PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib
|
||||
set PATH=%PATH%;"C:\Program Files\Subversion\bin"
|
||||
```
|
||||
|
||||
I suggest you also add C:\Qt\4.8.0\bin\ to your Environment Variables Path in
|
||||
I suggest you also add C:\Qt\5.9.1\bin\ to your Environment Variables Path in
|
||||
the windows system preferences.
|
||||
|
||||
If you plan to do some debugging, you'll need to compile debug version of Qt:
|
||||
C:\Qt\4.8.0\bin\qtvars.bat compile_debug
|
||||
C:\Qt\5.9.1\bin\qtvars.bat compile_debug
|
||||
|
||||
Note: there is a problem when compiling debug version of Qt 4.7, the script ends with
|
||||
this message "mingw32-make: *** No rule to make target `debug'. Stop.". To
|
||||
@ -58,7 +58,7 @@ compile the debug version you have to go out of src directory and execute the
|
||||
following command:
|
||||
|
||||
```
|
||||
c:\Qt\4.8.0 make
|
||||
c:\Qt\5.9.1 make
|
||||
```
|
||||
|
||||
=== Flex and Bison ===
|
||||
@ -70,11 +70,11 @@ http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16424
|
||||
=== Python ===
|
||||
|
||||
Follow this section in case you would like to use Python bindings for QGIS. To
|
||||
be able to compile bindings, you need to compile SIP and PyQt4 from sources as
|
||||
be able to compile bindings, you need to compile SIP and PyQt5 from sources as
|
||||
their installer doesn't include some development files which are necessary.
|
||||
|
||||
Note that even if you compile without the Python bindings, Python3 is still
|
||||
a necessary dependancy for building QGIS.
|
||||
a necessary dependency for building QGIS.
|
||||
|
||||
==== Download and install Python - use Windows installer ====
|
||||
|
||||
@ -82,7 +82,7 @@ a necessary dependancy for building QGIS.
|
||||
|
||||
http://python.org/download/
|
||||
|
||||
==== Download SIP and PyQt4 sources ====
|
||||
==== Download SIP and PyQt5 sources ====
|
||||
|
||||
http://www.riverbankcomputing.com/software/sip/download
|
||||
http://www.riverbankcomputing.com/software/pyqt/download
|
||||
@ -93,7 +93,7 @@ to get versions that match your current Qt installed version.
|
||||
==== Compile SIP ====
|
||||
|
||||
```
|
||||
c:\Qt\4.8.0\bin\qtvars.bat
|
||||
c:\Qt\5.9.1\bin\qtvars.bat
|
||||
python configure.py -p win32-g++
|
||||
make
|
||||
make install
|
||||
@ -102,7 +102,7 @@ make install
|
||||
==== Compile PyQt ====
|
||||
|
||||
```
|
||||
c:\Qt\4.8.0\bin\qtvars.bat
|
||||
c:\Qt\5.9.1\bin\qtvars.bat
|
||||
python configure.py
|
||||
make
|
||||
make install
|
||||
@ -110,7 +110,7 @@ make install
|
||||
|
||||
==== Final python notes ====
|
||||
|
||||
/!\ You can delete the directories with unpacked SIP and PyQt4 sources after a
|
||||
/!\ You can delete the directories with unpacked SIP and PyQt5 sources after a
|
||||
successful install, they're not needed anymore.
|
||||
|
||||
=== git ===
|
||||
@ -151,10 +151,10 @@ Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have one
|
||||
already. Add paths to compiler and our MSYS environment:
|
||||
|
||||
```
|
||||
c:\Qt\4.8.0\bin\qtvars.bat
|
||||
c:\Qt\5.9.1\bin\qtvars.bat
|
||||
```
|
||||
|
||||
For ease of use add c:\Qt\4.8.0\bin\ to your system path in system
|
||||
For ease of use add c:\Qt\5.9.1\bin\ to your system path in system
|
||||
properties so you can just type qtvars.bat when you open the cmd console.
|
||||
Create build directory and set it as current directory:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user