I have fixed the problem with other way,the normal installation only to install
Python and PyQt,but after I download the new version PyQt and install it,I can
not tell why the PyQt can not install successfully because is a binary files which
can not trace.
belowed is my solution which is manually installed,I have to install Qt and any
other files manually,but It works now.
I test successfully on a clean XP (virtual machine on virtualbox)
This document is up-to-date for the following versions:
- MinGW-4.4.0
- Qt-4.8.4
- Python-2.7.4
- sip-4.14.6
- Nmake 1.5
- PyQt4 4.10.2
- QScintilla-2.7.1
Detailed Instructions
==============
Installing MinGW 4.4.0
---------------------------
Pay attention to the version of MinGW,the high version will cause belowed
error when you install Qt 4.8.4:
There is a problem with your MinGW instanllation:
The install could not find a valid D:\MyTools\Qt\MinGW\include\w32api.h
(Only version with W32API 3.13 are supported)
You will need an install of MinGW that contains ``mingw32-make.exe``.
Install MinGW using the binaries from the MinGW website. I placed
mine in ``C:\MinGW``.
- Make sure you have::
C:\MinGW\bin/mingw32-make.exe
C:\MinGW\bin/g++.exe
Installing Qt 4.8.4
---------------------
qt-win-opensource-4.8.4-mingw.exe
- Grab the binary installer (.exe) for the latest Qt release on
TrollTech's webpage.
- Execute the installation, with or without MinGW depending on if you
already have it.
This will place Qt in ``C:\Qt\<version>`` by default.
Installing Python 2.7.4
---------------------------
- Download the Python MSI binary from the python.org website and run
it, and install it (typically in ``C:\Python27\python.exe``).
Setting up for Build
-----------------------
You MUST use the ``cmd.exe`` shell, and not Cygwin's bash nor MinGW
nor MKS not anything else.
Start ``cmd.exe`` and set your PATH to something clean that contains
both MinGW and Qt::
set
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
C:\Qt\4.8.4\bin;C:\MinGW\bin
Verify your PATH configuration by running these two commands::
g++ -v
qmake -v
Building and Installing SIP
-------------------------------
- Download and unpack the SIP snapshot source for Windows.
- Configure it, making sure to use the ``-p`` option (otherwise the
build runs in an infinite loop)::
C:\sip-4.14.6> C:/Python27/python configure.py -p win32-g++
C:\sip-4.14.6> mingw32-make
C:\sip-4.14.6> mingw32-make install
This should install the following files in your Python library::
C:\Python27\include\sip.h
C:\Python27\Lib\site-packages\sip.pyd
C:\Python27\Lib\site-packages\sipconfig.py
C:\Python27\Lib\site-packages\sipconfig.pyc
C:\Python27\Lib\site-packages\sipdistutils.py
C:\Python27\sip.exe
Building and Installing PyQt-win-gpl-snapshot-4.10.2
---------------------------------------------------------------
Using the same shell setup as above,
- Download and unpack the PyQt4 snapshot source for Windows.
- Configure it::
C:\PyQt-win-gpl-snapshot-4.10.2> C:/Python27/python configure.py -w
Do you accept the terms of the license? yes
This should complete succesfully.
Note: you should not have to set any variable. QTDIR is now
obsolete. QMAKESPEC should be found automatically, but if it is not,
you can probably safely use the ``-p win32-g++`` option.
- Compile it::
C:\PyQt-win-gpl-snapshot-4.10.2> mingw32-make
- Install it::
C:\PyQt-win-gpl-snapshot-4.10.2> mingw32-make install
NMake
---------
download NMAKE 1.5
Run it and will generate 3 files,copy nmake.exe and nmake.err to windows
system32
QScintilla
-----------
Before compiling QScintilla on Windows you should remove the Qsci
directory containing the QScintilla header files from any previous installation.
This is because the Makefile generated by qmake will find these older header
files instead of the new ones.
Depending on the compiler you are using you may need to run nmake rather
than make.
If you have built a Windows DLL then you probably also want to run:
copy %QTDIR%\lib\qscintilla2.dll %QTDIR%\bin
Open "Qt Command Prompt"
cd the Qt4 path:
qmake qscintilla.pro
nmake
nmake install
Then go to QScintilla-gpl-2.7.1 find the Python folder:
python3 configure.py
make
make install
Eric4.5.10
------------
Install Eric4 with install.py
|