Prerequisites
- MS Visual Studio Express 2008 [microsoft.com]
- NOTE: Visual Studio Express 2010 is not supported
- CMake [cmake.org]
- Git [code.google.com]
- Python 2.6 or 2.7 [python.org]
NOTE: Be sure that git.exe and cmake.exe are all in your PATH.
Build
- Open “Visual Studio Command Prompt”: [Start Menu]->Programs->Microsoft Visual C++ 2008 Express Edition->Visual Studio Tools
- Get build scripts from repository http://qt.gitorious.org/pyside/packaging and go to folder “c: epositoriespackagingsetuptools”. The script can automatically download the sources, compile them, and create the installer, all in one step.
- Run the build.py script (it must be run from “Visual Studio Command Prompt”):
To build the latest stable binaries for Python 2.7 and Qt 4.7.3, run the script with parameters:
-
c: epositoriespackagingsetuptools>c:Python27python.exe build.py -d -q c:Qt4.7.3inqmake.exe
-
To build the latest development binaries:
-
c: epositoriespackagingsetuptools>c:Python27python.exe build.py -d -m dev -q c:Qt4.7.3inqmake.exe
-
All build.py parameters:
-
-p <package_version> Specify package version. Default is latest stable version (1.0.4)
-
-d Download latest sources from git repository
-
-m <pyside_version> Specify what version of modules to download from git repository:
-
'dev' (master tag) or 'stable' (1.0.4 tag). Default is 'stable'.
-
-q <qmake_path> Locate qmake
-
-e Check the environment
-
-b Specify what module to build
-
-o Create a distribution package only using existing binaries
-
- After the successful build, the final binary distribution can be found in sub-folder “dist”:
-
c: epositoriespackagingsetuptoolsdistPySide-1.0.4qt473.win32-py2.7.exe
-
-
Categories:
http://www.cppblog.com/lauer3912/archive/2012/01/14/164187.html