posts - 319, comments - 22, trackbacks - 0, articles - 11
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Building PySide on Microsoft Windows

Posted on 2012-01-14 21:08 RTY 阅读(435) 评论(0)  编辑 收藏 引用 所属分类: QtPython

Building PySide on Microsoft Windows

Prerequisites

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:\repositories\packaging\setuptools”. 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:
  1.   c:\repositories\packaging\setuptools>c:\Python27\python.exe build.py --q c:\Qt\4.7.3\bin\qmake.exe
  2.  
To build the latest development binaries:
  1.   c:\repositories\packaging\setuptools>c:\Python27\python.exe build.py --m dev -q c:\Qt\4.7.3\bin\qmake.exe
  2.  
All build.py parameters:
  1.    -<package_version> Specify package version. Default is latest stable version (1.0.4)
  2.    -d                   Download latest sources from git repository
  3.    -<pyside_version>  Specify what version of modules to download from git repository:
  4.                          'dev' (master tag) or 'stable' (1.0.4 tag)Default is 'stable'.
  5.    -<qmake_path>      Locate qmake
  6.    -e                   Check the environment
  7.    -b                   Specify what module to build
  8.    -o                   Create a distribution package only using existing binaries
  9.    
  • After the successful build, the final binary distribution can be found in sub-folder “dist”:
    1.   c:\repositories\packaging\setuptools\dist\PySide-1.0.4qt473.win32-py2.7.exe
    2.  

Categories:


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理